@forge/cli 9.0.1-next.0-experimental-6835792 → 9.1.0
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 +84 -10
- package/npm-shrinkwrap.json +53 -102
- package/out/analytics-client/analytics-client.js +39 -12
- package/out/analytics-client/analytics-message-handler.js +28 -27
- package/out/autocomplete/autocomplete-config.json +2 -2
- package/out/autocomplete/index.js +1 -2
- package/out/autocomplete/util.js +1 -1
- package/out/bin/postinstall.js +1 -1
- package/out/command-line/command.js +132 -116
- package/out/command-line/controller/autocomplete-controller.js +1 -0
- package/out/command-line/controller/default-environment-controller.js +8 -0
- package/out/command-line/controller/deploy-controller.js +25 -9
- package/out/command-line/controller/feedback-controller.js +2 -0
- package/out/command-line/controller/install-controller.js +11 -5
- package/out/command-line/controller/lint-controller.js +3 -1
- package/out/command-line/controller/pre-command-controller.js +6 -0
- package/out/command-line/controller/prerequisites-controller.d.ts.map +1 -1
- package/out/command-line/controller/prerequisites-controller.js +4 -1
- package/out/command-line/controller/settings-controller.js +60 -57
- package/out/command-line/controller/tunnel-controller.d.ts +0 -1
- package/out/command-line/controller/tunnel-controller.d.ts.map +1 -1
- package/out/command-line/controller/tunnel-controller.js +15 -18
- package/out/command-line/dependency-injection.d.ts.map +1 -1
- package/out/command-line/dependency-injection.js +6 -5
- package/out/command-line/errors.js +1 -0
- package/out/command-line/index.js +2 -2
- package/out/command-line/register-authentication-command.js +1 -1
- package/out/command-line/register-environment-variables-commands.js +6 -8
- package/out/command-line/register-installation-commands.js +5 -7
- package/out/command-line/register-log-commands.js +1 -1
- package/out/command-line/register-settings-commands.js +3 -5
- package/out/command-line/register-storage-commands.js +1 -2
- package/out/command-line/register-tunnel-commands.js +2 -2
- package/out/command-line/sentry.js +4 -1
- package/out/command-line/version-info.js +1 -1
- package/out/command-line/view/analytics-settings-view.js +1 -0
- package/out/command-line/view/deploy-view.js +1 -0
- package/out/command-line/view/install-view.js +1 -0
- package/out/command-line/view/lint-view.js +2 -0
- package/out/command-line/view/lite-lint-view.js +2 -0
- package/out/command-line/view/settings-view.js +1 -0
- package/out/command-line/view/tunnel-view.js +4 -4
- package/out/deploy/deployer/deploy-monitor-graphql-client.js +2 -1
- package/out/deploy/deployer/deployer.js +13 -6
- package/out/deploy/deployer/trigger-deploy-graphql-client.js +1 -0
- package/out/deploy/package-upload-deploy.js +4 -0
- package/out/deploy/packager/archiver.js +19 -15
- package/out/deploy/packager/nativeui-bundler.js +6 -1
- package/out/deploy/packager/packager.js +7 -1
- package/out/deploy/packager/runtime-bundler.d.ts +3 -2
- package/out/deploy/packager/runtime-bundler.d.ts.map +1 -1
- package/out/deploy/packager/runtime-bundler.js +14 -5
- package/out/deploy/uploader/artifact-graphql-client.js +1 -0
- package/out/deploy/uploader/uploader.js +5 -0
- package/out/entities/graphql-client.js +2 -2
- package/out/entities/list-indexes.js +1 -0
- package/out/environment/create-environment.js +6 -1
- package/out/environment/delete-environment.js +6 -1
- package/out/environment/graphql-client.js +6 -3
- package/out/environment/list-environment.js +2 -0
- package/out/environment-variables/delete-environment-variable.js +6 -1
- package/out/environment-variables/graphql-client.js +1 -0
- package/out/environment-variables/list-environment-variables.js +6 -1
- package/out/environment-variables/set-environment-variable.js +6 -1
- package/out/installations/graphql-client.js +29 -22
- package/out/installations/install-app-site.js +2 -0
- package/out/installations/site-translation/cloudid-products.js +1 -0
- package/out/installations/uninstall-app.js +2 -0
- package/out/migration-keys/graphql-client.js +4 -4
- package/out/providers/configure-provider.js +6 -1
- package/out/providers/graphql-client.js +1 -0
- package/out/service/cached-config-service.js +1 -0
- package/out/service/custom-entities-service.js +4 -2
- package/out/service/docker-service.js +5 -1
- package/out/service/installation-service.js +7 -4
- package/out/service/lint-service.js +2 -0
- package/out/service/lite-lint-service.js +2 -0
- package/out/service/migration-keys-service.js +2 -0
- package/out/service/port-finding-service.js +1 -0
- package/out/service/resource-packaging-service.js +5 -0
- package/out/service/resources-uploader-service.js +2 -0
- package/out/service/tunnel-analytics-service.js +10 -3
- package/out/service/tunnel-service.d.ts.map +1 -1
- package/out/service/tunnel-service.js +22 -10
- package/out/storage/local-file-storage.js +2 -2
- package/out/webtrigger/get-webtrigger-url.js +4 -0
- package/out/webtrigger/graphql-client.js +2 -1
- package/out/workers/analytics-message-worker.js +3 -0
- package/out/workers/version-check-worker.js +1 -0
- package/package.json +8 -9
package/CHANGELOG.md
CHANGED
|
@@ -1,21 +1,95 @@
|
|
|
1
1
|
# @forge/cli
|
|
2
2
|
|
|
3
|
-
## 9.
|
|
3
|
+
## 9.1.0
|
|
4
4
|
|
|
5
5
|
### Minor Changes
|
|
6
6
|
|
|
7
|
-
-
|
|
7
|
+
- 83e1cd7: Add environment variable parsing in the manifest
|
|
8
8
|
|
|
9
9
|
### Patch Changes
|
|
10
10
|
|
|
11
|
-
-
|
|
12
|
-
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
11
|
+
- eb06eca: Break more dependencies between SDK and runtime
|
|
12
|
+
- c6f6422: Use runtime options from templates correctly
|
|
13
|
+
- Updated dependencies [eb06eca]
|
|
14
|
+
- Updated dependencies [f8a4714]
|
|
15
|
+
- Updated dependencies [2204a73]
|
|
16
|
+
- Updated dependencies [83e1cd7]
|
|
17
|
+
- Updated dependencies [c6f6422]
|
|
18
|
+
- Updated dependencies [314d732]
|
|
19
|
+
- @forge/bundler@4.15.10
|
|
20
|
+
- @forge/runtime@5.6.1
|
|
21
|
+
- @forge/tunnel@5.0.1
|
|
22
|
+
- @forge/util@1.4.3
|
|
23
|
+
- @forge/cli-shared@4.0.0
|
|
24
|
+
- @forge/manifest@7.1.0
|
|
25
|
+
- @forge/lint@5.0.1
|
|
26
|
+
|
|
27
|
+
## 9.1.0-next.6
|
|
28
|
+
|
|
29
|
+
### Patch Changes
|
|
30
|
+
|
|
31
|
+
- @forge/bundler@4.15.10-next.5
|
|
32
|
+
- @forge/tunnel@5.0.1-next.6
|
|
33
|
+
|
|
34
|
+
## 9.1.0-next.5
|
|
35
|
+
|
|
36
|
+
### Patch Changes
|
|
37
|
+
|
|
38
|
+
- eb06eca: Break more dependencies between SDK and runtime
|
|
39
|
+
- Updated dependencies [eb06eca]
|
|
40
|
+
- @forge/bundler@4.15.10-next.4
|
|
41
|
+
- @forge/runtime@5.6.1-next.1
|
|
42
|
+
- @forge/tunnel@5.0.1-next.5
|
|
43
|
+
|
|
44
|
+
## 9.1.0-next.4
|
|
45
|
+
|
|
46
|
+
### Minor Changes
|
|
47
|
+
|
|
48
|
+
- 83e1cd7: Add environment variable parsing in the manifest
|
|
49
|
+
|
|
50
|
+
### Patch Changes
|
|
51
|
+
|
|
52
|
+
- Updated dependencies [83e1cd7]
|
|
53
|
+
- @forge/cli-shared@4.0.0-next.3
|
|
54
|
+
- @forge/manifest@7.1.0-next.1
|
|
55
|
+
- @forge/bundler@4.15.10-next.3
|
|
56
|
+
- @forge/lint@5.0.1-next.3
|
|
57
|
+
- @forge/tunnel@5.0.1-next.4
|
|
58
|
+
|
|
59
|
+
## 9.0.1-next.3
|
|
60
|
+
|
|
61
|
+
### Patch Changes
|
|
62
|
+
|
|
63
|
+
- Updated dependencies [2204a73]
|
|
64
|
+
- @forge/cli-shared@3.26.1-next.2
|
|
65
|
+
- @forge/bundler@4.15.10-next.2
|
|
66
|
+
- @forge/lint@5.0.1-next.2
|
|
67
|
+
- @forge/tunnel@5.0.1-next.3
|
|
68
|
+
|
|
69
|
+
## 9.0.1-next.2
|
|
70
|
+
|
|
71
|
+
### Patch Changes
|
|
72
|
+
|
|
73
|
+
- Updated dependencies [f8a4714]
|
|
74
|
+
- @forge/node-runtime@0.11.1-next.0
|
|
75
|
+
- @forge/runtime@5.6.1-next.0
|
|
76
|
+
- @forge/util@1.4.3-next.0
|
|
77
|
+
- @forge/bundler@4.15.10-next.1
|
|
78
|
+
- @forge/tunnel@5.0.1-next.2
|
|
79
|
+
- @forge/cli-shared@3.26.1-next.1
|
|
80
|
+
- @forge/manifest@7.0.1-next.0
|
|
81
|
+
- @forge/lint@5.0.1-next.1
|
|
82
|
+
|
|
83
|
+
## 9.0.1-next.1
|
|
84
|
+
|
|
85
|
+
### Patch Changes
|
|
86
|
+
|
|
87
|
+
- c6f6422: Use runtime options from templates correctly
|
|
88
|
+
- Updated dependencies [c6f6422]
|
|
89
|
+
- @forge/cli-shared@3.26.1-next.0
|
|
90
|
+
- @forge/bundler@4.15.10-next.0
|
|
91
|
+
- @forge/lint@5.0.1-next.0
|
|
92
|
+
- @forge/tunnel@5.0.1-next.1
|
|
19
93
|
|
|
20
94
|
## 9.0.1-next.0
|
|
21
95
|
|
package/npm-shrinkwrap.json
CHANGED
|
@@ -1,24 +1,23 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@forge/cli",
|
|
3
|
-
"version": "9.
|
|
3
|
+
"version": "9.1.0",
|
|
4
4
|
"lockfileVersion": 3,
|
|
5
5
|
"requires": true,
|
|
6
6
|
"packages": {
|
|
7
7
|
"": {
|
|
8
8
|
"name": "@forge/cli",
|
|
9
|
-
"version": "9.
|
|
9
|
+
"version": "9.1.0",
|
|
10
10
|
"hasInstallScript": true,
|
|
11
11
|
"license": "UNLICENSED",
|
|
12
12
|
"dependencies": {
|
|
13
|
-
"@forge/bundler": "4.15.
|
|
14
|
-
"@forge/cli-shared": "
|
|
13
|
+
"@forge/bundler": "4.15.10",
|
|
14
|
+
"@forge/cli-shared": "4.0.0",
|
|
15
15
|
"@forge/egress": "1.2.13",
|
|
16
|
-
"@forge/lint": "5.0.
|
|
17
|
-
"@forge/manifest": "7.
|
|
18
|
-
"@forge/
|
|
19
|
-
"@forge/
|
|
20
|
-
"@forge/
|
|
21
|
-
"@forge/util": "1.4.2",
|
|
16
|
+
"@forge/lint": "5.0.1",
|
|
17
|
+
"@forge/manifest": "7.1.0",
|
|
18
|
+
"@forge/runtime": "5.6.1",
|
|
19
|
+
"@forge/tunnel": "5.0.1",
|
|
20
|
+
"@forge/util": "1.4.3",
|
|
22
21
|
"@sentry/node": "7.100.1",
|
|
23
22
|
"ajv": "^8.12.0",
|
|
24
23
|
"archiver": "^6.0.2",
|
|
@@ -878,9 +877,9 @@
|
|
|
878
877
|
"integrity": "sha512-zG50ZRzbKyWHVb/XjI6iCIyyDNmSHdlclvehMjFZ/A3qpHExjSCjaszeY6gBDJKD2GORKKjQ3LS1UyRpiVVvkA=="
|
|
879
878
|
},
|
|
880
879
|
"node_modules/@forge/bundler": {
|
|
881
|
-
"version": "4.15.
|
|
882
|
-
"resolved": "https://registry.npmjs.org/@forge/bundler/-/bundler-4.15.
|
|
883
|
-
"integrity": "sha512-
|
|
880
|
+
"version": "4.15.10",
|
|
881
|
+
"resolved": "https://registry.npmjs.org/@forge/bundler/-/bundler-4.15.10.tgz",
|
|
882
|
+
"integrity": "sha512-d9OxFNraARzgneWJYqdY7aQVbfDBa6aRXt8R48lOxVQz6tDfAO5d2kPVJkG+wjIGQUXiCK3fP5Xuribeh+irTQ==",
|
|
884
883
|
"dependencies": {
|
|
885
884
|
"@babel/core": "^7.24.0",
|
|
886
885
|
"@babel/plugin-transform-class-properties": "^7.23.3",
|
|
@@ -889,12 +888,11 @@
|
|
|
889
888
|
"@babel/plugin-transform-optional-chaining": "^7.23.4",
|
|
890
889
|
"@babel/plugin-transform-react-jsx": "^7.23.4",
|
|
891
890
|
"@babel/preset-typescript": "^7.23.3",
|
|
892
|
-
"@forge/api": "3.
|
|
891
|
+
"@forge/api": "3.5.0",
|
|
893
892
|
"@forge/babel-plugin-transform-ui": "1.1.18",
|
|
894
|
-
"@forge/cli-shared": "
|
|
895
|
-
"@forge/lint": "5.0.
|
|
896
|
-
"@forge/
|
|
897
|
-
"@forge/util": "1.4.2",
|
|
893
|
+
"@forge/cli-shared": "4.0.0",
|
|
894
|
+
"@forge/lint": "5.0.1",
|
|
895
|
+
"@forge/util": "1.4.3",
|
|
898
896
|
"assert": "^2.1.0",
|
|
899
897
|
"babel-loader": "^8.3.0",
|
|
900
898
|
"browserify-zlib": "^0.2.0",
|
|
@@ -932,14 +930,14 @@
|
|
|
932
930
|
}
|
|
933
931
|
},
|
|
934
932
|
"node_modules/@forge/bundler/node_modules/@forge/api": {
|
|
935
|
-
"version": "3.
|
|
936
|
-
"resolved": "https://registry.npmjs.org/@forge/api/-/api-3.
|
|
937
|
-
"integrity": "sha512-
|
|
933
|
+
"version": "3.5.0",
|
|
934
|
+
"resolved": "https://registry.npmjs.org/@forge/api/-/api-3.5.0.tgz",
|
|
935
|
+
"integrity": "sha512-FNEa1IgpB5P5P4rMchIoyUt4pXafyoJWu1dN4yWaYLIiOPTiVvn4ZfyYKQIEoKNDeTqBsqOGY0z2norSyrUeAA==",
|
|
938
936
|
"dependencies": {
|
|
939
937
|
"@forge/auth": "0.0.5",
|
|
940
938
|
"@forge/egress": "1.2.13",
|
|
941
939
|
"@forge/storage": "1.5.15",
|
|
942
|
-
"@forge/util": "1.4.
|
|
940
|
+
"@forge/util": "1.4.3",
|
|
943
941
|
"@types/node-fetch": "^2.6.11",
|
|
944
942
|
"node-fetch": "2.7.0"
|
|
945
943
|
}
|
|
@@ -950,12 +948,12 @@
|
|
|
950
948
|
"integrity": "sha512-n4AWXkzMA4Pv4nam+dTu7PHgDQtMwaAF2MalOWF323zGvYKS/gZJY+7efJq0DLP783iTfjvYT879EHhCrfvEXA=="
|
|
951
949
|
},
|
|
952
950
|
"node_modules/@forge/cli-shared": {
|
|
953
|
-
"version": "
|
|
954
|
-
"resolved": "https://registry.npmjs.org/@forge/cli-shared/-/cli-shared-
|
|
955
|
-
"integrity": "sha512-
|
|
951
|
+
"version": "4.0.0",
|
|
952
|
+
"resolved": "https://registry.npmjs.org/@forge/cli-shared/-/cli-shared-4.0.0.tgz",
|
|
953
|
+
"integrity": "sha512-EM9U6g6fc2peA8MGg7bcc7uMoIt3vdctJhT441HcpxysHKpDokQGiXWGHQtO1+SlUjNzUfj9tmFAfj66XoOT9Q==",
|
|
956
954
|
"dependencies": {
|
|
957
|
-
"@forge/manifest": "7.
|
|
958
|
-
"@forge/util": "1.4.
|
|
955
|
+
"@forge/manifest": "7.1.0",
|
|
956
|
+
"@forge/util": "1.4.3",
|
|
959
957
|
"@sentry/node": "7.100.1",
|
|
960
958
|
"adm-zip": "^0.5.10",
|
|
961
959
|
"array.prototype.flatmap": "^1.3.2",
|
|
@@ -988,9 +986,9 @@
|
|
|
988
986
|
}
|
|
989
987
|
},
|
|
990
988
|
"node_modules/@forge/csp": {
|
|
991
|
-
"version": "3.2.1
|
|
992
|
-
"resolved": "https://registry.npmjs.org/@forge/csp/-/csp-3.2.1
|
|
993
|
-
"integrity": "sha512-
|
|
989
|
+
"version": "3.2.1",
|
|
990
|
+
"resolved": "https://registry.npmjs.org/@forge/csp/-/csp-3.2.1.tgz",
|
|
991
|
+
"integrity": "sha512-eNzJTqyf4KarGC2uFJcof7WNoA80pYvVWBRkDi8ZZcwSy8094sqTpcWGK0cS8fwHT1b2DfwCnofhBNJGsIQi9w==",
|
|
994
992
|
"dependencies": {
|
|
995
993
|
"cheerio": "^0.22.0",
|
|
996
994
|
"content-security-policy-parser": "^0.4.1"
|
|
@@ -1005,13 +1003,13 @@
|
|
|
1005
1003
|
}
|
|
1006
1004
|
},
|
|
1007
1005
|
"node_modules/@forge/lint": {
|
|
1008
|
-
"version": "5.0.
|
|
1009
|
-
"resolved": "https://registry.npmjs.org/@forge/lint/-/lint-5.0.
|
|
1010
|
-
"integrity": "sha512-
|
|
1006
|
+
"version": "5.0.1",
|
|
1007
|
+
"resolved": "https://registry.npmjs.org/@forge/lint/-/lint-5.0.1.tgz",
|
|
1008
|
+
"integrity": "sha512-5Uxp9GeYgUYtkOI3O7Zr58Lvhh+OKN2wrZ65l9ZagR/29VFp6fFix5mAwSULhBLAjkKH3LewFPIhepYeYhTjJQ==",
|
|
1011
1009
|
"dependencies": {
|
|
1012
|
-
"@forge/cli-shared": "
|
|
1010
|
+
"@forge/cli-shared": "4.0.0",
|
|
1013
1011
|
"@forge/egress": "1.2.13",
|
|
1014
|
-
"@forge/manifest": "7.
|
|
1012
|
+
"@forge/manifest": "7.1.0",
|
|
1015
1013
|
"@typescript-eslint/typescript-estree": "^5.62.0",
|
|
1016
1014
|
"array.prototype.flatmap": "^1.3.2",
|
|
1017
1015
|
"atlassian-openapi": "^1.0.18",
|
|
@@ -1020,11 +1018,12 @@
|
|
|
1020
1018
|
}
|
|
1021
1019
|
},
|
|
1022
1020
|
"node_modules/@forge/manifest": {
|
|
1023
|
-
"version": "7.
|
|
1024
|
-
"resolved": "https://registry.npmjs.org/@forge/manifest/-/manifest-7.
|
|
1025
|
-
"integrity": "sha512-
|
|
1021
|
+
"version": "7.1.0",
|
|
1022
|
+
"resolved": "https://registry.npmjs.org/@forge/manifest/-/manifest-7.1.0.tgz",
|
|
1023
|
+
"integrity": "sha512-R5+M0D7WafDW9tQrwziUlEujPqFXaI1+u5DnT6qcBH5cE/aoUJyiONtw5Mba4OFuCL3atlM8uIqJ2d726yIW4g==",
|
|
1026
1024
|
"dependencies": {
|
|
1027
|
-
"@forge/util": "1.4.
|
|
1025
|
+
"@forge/util": "1.4.3",
|
|
1026
|
+
"@sentry/node": "7.100.1",
|
|
1028
1027
|
"ajv": "^8.12.0",
|
|
1029
1028
|
"ajv-formats": "2.1.1",
|
|
1030
1029
|
"cheerio": "^0.22.0",
|
|
@@ -1036,41 +1035,12 @@
|
|
|
1036
1035
|
"yaml": "^2.3.4"
|
|
1037
1036
|
}
|
|
1038
1037
|
},
|
|
1039
|
-
"node_modules/@forge/node-runtime": {
|
|
1040
|
-
"version": "0.11.0-experimental-6835792",
|
|
1041
|
-
"resolved": "https://registry.npmjs.org/@forge/node-runtime/-/node-runtime-0.11.0-experimental-6835792.tgz",
|
|
1042
|
-
"integrity": "sha512-PBSm+XDRnKu4UB/l85q9EFky/NzzNR1BarJPa+LeWLP2ErKv2sWsxYrR241BK8pO03alRFxOAMxgCVWz4t80LA==",
|
|
1043
|
-
"dependencies": {
|
|
1044
|
-
"@forge/api": "3.4.0-experimental-6835792",
|
|
1045
|
-
"@forge/runtime": "5.6.0-experimental-6835792",
|
|
1046
|
-
"agentkeepalive": "^4.5.0",
|
|
1047
|
-
"uuid": "^9.0.1"
|
|
1048
|
-
}
|
|
1049
|
-
},
|
|
1050
|
-
"node_modules/@forge/node-runtime/node_modules/@forge/api": {
|
|
1051
|
-
"version": "3.4.0-experimental-6835792",
|
|
1052
|
-
"resolved": "https://registry.npmjs.org/@forge/api/-/api-3.4.0-experimental-6835792.tgz",
|
|
1053
|
-
"integrity": "sha512-Sh3YAA2CJPBq2o1sdyita92DJcNzhCx5qx+W85iNp03e4c8yFvBD4fug6SNX7WtsAitsPdubX06pY4fYgVyRdQ==",
|
|
1054
|
-
"dependencies": {
|
|
1055
|
-
"@forge/auth": "0.0.5",
|
|
1056
|
-
"@forge/egress": "1.2.13",
|
|
1057
|
-
"@forge/storage": "1.5.15",
|
|
1058
|
-
"@forge/util": "1.4.2",
|
|
1059
|
-
"@types/node-fetch": "^2.6.11",
|
|
1060
|
-
"node-fetch": "2.7.0"
|
|
1061
|
-
}
|
|
1062
|
-
},
|
|
1063
|
-
"node_modules/@forge/node-runtime/node_modules/@forge/storage": {
|
|
1064
|
-
"version": "1.5.15",
|
|
1065
|
-
"resolved": "https://registry.npmjs.org/@forge/storage/-/storage-1.5.15.tgz",
|
|
1066
|
-
"integrity": "sha512-n4AWXkzMA4Pv4nam+dTu7PHgDQtMwaAF2MalOWF323zGvYKS/gZJY+7efJq0DLP783iTfjvYT879EHhCrfvEXA=="
|
|
1067
|
-
},
|
|
1068
1038
|
"node_modules/@forge/runtime": {
|
|
1069
|
-
"version": "5.6.
|
|
1070
|
-
"resolved": "https://registry.npmjs.org/@forge/runtime/-/runtime-5.6.
|
|
1071
|
-
"integrity": "sha512-
|
|
1039
|
+
"version": "5.6.1",
|
|
1040
|
+
"resolved": "https://registry.npmjs.org/@forge/runtime/-/runtime-5.6.1.tgz",
|
|
1041
|
+
"integrity": "sha512-uo3y5g/DOA3KDG+cOrz4TRdoBCfbGMlOXAlik8QT4ih+mViRsI9ZhzVJIwUL3dAknDvvcPhKzEJwlqg/VL9G7A==",
|
|
1072
1042
|
"dependencies": {
|
|
1073
|
-
"@forge/util": "1.4.
|
|
1043
|
+
"@forge/util": "1.4.3",
|
|
1074
1044
|
"fp-ts": "^2.16.2",
|
|
1075
1045
|
"io-ts": "^2.2.21",
|
|
1076
1046
|
"io-ts-reporters": "^2.0.1",
|
|
@@ -1081,14 +1051,14 @@
|
|
|
1081
1051
|
}
|
|
1082
1052
|
},
|
|
1083
1053
|
"node_modules/@forge/tunnel": {
|
|
1084
|
-
"version": "5.0.1
|
|
1085
|
-
"resolved": "https://registry.npmjs.org/@forge/tunnel/-/tunnel-5.0.1
|
|
1086
|
-
"integrity": "sha512-
|
|
1087
|
-
"dependencies": {
|
|
1088
|
-
"@forge/bundler": "4.15.
|
|
1089
|
-
"@forge/cli-shared": "
|
|
1090
|
-
"@forge/csp": "3.2.1
|
|
1091
|
-
"@forge/runtime": "5.6.
|
|
1054
|
+
"version": "5.0.1",
|
|
1055
|
+
"resolved": "https://registry.npmjs.org/@forge/tunnel/-/tunnel-5.0.1.tgz",
|
|
1056
|
+
"integrity": "sha512-wnB4/zLJmYb8f/muBo/77cR6j7IQNeq5MLvRHJ6W3QR9pPnDnybrIQDumJivAncqnBEEiJT+L9oENZ5H6En6yg==",
|
|
1057
|
+
"dependencies": {
|
|
1058
|
+
"@forge/bundler": "4.15.10",
|
|
1059
|
+
"@forge/cli-shared": "4.0.0",
|
|
1060
|
+
"@forge/csp": "3.2.1",
|
|
1061
|
+
"@forge/runtime": "5.6.1",
|
|
1092
1062
|
"express": "^4.18.3",
|
|
1093
1063
|
"express-intercept": "^1.1.0",
|
|
1094
1064
|
"http-proxy-middleware": "^2.0.6",
|
|
@@ -1101,9 +1071,9 @@
|
|
|
1101
1071
|
}
|
|
1102
1072
|
},
|
|
1103
1073
|
"node_modules/@forge/util": {
|
|
1104
|
-
"version": "1.4.
|
|
1105
|
-
"resolved": "https://registry.npmjs.org/@forge/util/-/util-1.4.
|
|
1106
|
-
"integrity": "sha512-
|
|
1074
|
+
"version": "1.4.3",
|
|
1075
|
+
"resolved": "https://registry.npmjs.org/@forge/util/-/util-1.4.3.tgz",
|
|
1076
|
+
"integrity": "sha512-CdnsuTv5cl8cifwaBkrw2l1dWHcQ08+/KSyattgucNrO4ci2cJPUQMJWo08XTLqZ2Na79xsGMjTY9bcb6h5LUA==",
|
|
1107
1077
|
"dependencies": {
|
|
1108
1078
|
"ts-is-present": "^1.2.2",
|
|
1109
1079
|
"webpack": "5.90.3",
|
|
@@ -2044,17 +2014,6 @@
|
|
|
2044
2014
|
"node": ">=6.0"
|
|
2045
2015
|
}
|
|
2046
2016
|
},
|
|
2047
|
-
"node_modules/agentkeepalive": {
|
|
2048
|
-
"version": "4.5.0",
|
|
2049
|
-
"resolved": "https://registry.npmjs.org/agentkeepalive/-/agentkeepalive-4.5.0.tgz",
|
|
2050
|
-
"integrity": "sha1-JnOtE4mzxBjFogxdc2T5PKBL6SM= sha512-5GG/5IbQQpC9FpkRGsSvZI5QYeSCzlJHdpBQntCsuTOxhKD8lqKhrleg2Yi7yvMIf82Ycmmqln9U8V9qwEiJew==",
|
|
2051
|
-
"dependencies": {
|
|
2052
|
-
"humanize-ms": "^1.2.1"
|
|
2053
|
-
},
|
|
2054
|
-
"engines": {
|
|
2055
|
-
"node": ">= 8.0.0"
|
|
2056
|
-
}
|
|
2057
|
-
},
|
|
2058
2017
|
"node_modules/ajv": {
|
|
2059
2018
|
"version": "8.12.0",
|
|
2060
2019
|
"resolved": "https://registry.npmjs.org/ajv/-/ajv-8.12.0.tgz",
|
|
@@ -5370,14 +5329,6 @@
|
|
|
5370
5329
|
"node": ">=10.17.0"
|
|
5371
5330
|
}
|
|
5372
5331
|
},
|
|
5373
|
-
"node_modules/humanize-ms": {
|
|
5374
|
-
"version": "1.2.1",
|
|
5375
|
-
"resolved": "https://registry.npmjs.org/humanize-ms/-/humanize-ms-1.2.1.tgz",
|
|
5376
|
-
"integrity": "sha1-xG4xWaKT9riW2ikxbYtv6Lt5u+0= sha512-Fl70vYtsAFb/C06PTS9dZBo7ihau+Tu/DNCk/OyHhea07S+aeMWpFFkUaXRa8fI+ScZbEI8dfSxwY7gxZ9SAVQ==",
|
|
5377
|
-
"dependencies": {
|
|
5378
|
-
"ms": "^2.0.0"
|
|
5379
|
-
}
|
|
5380
|
-
},
|
|
5381
5332
|
"node_modules/hyperdyperid": {
|
|
5382
5333
|
"version": "1.2.0",
|
|
5383
5334
|
"resolved": "https://registry.npmjs.org/hyperdyperid/-/hyperdyperid-1.2.0.tgz",
|
|
@@ -20,30 +20,41 @@ function appAidOrUndefined(appAri) {
|
|
|
20
20
|
}
|
|
21
21
|
}
|
|
22
22
|
class AnalyticsClientReporter {
|
|
23
|
+
storage;
|
|
24
|
+
logger;
|
|
25
|
+
configService;
|
|
23
26
|
constructor(storage, logger, configService) {
|
|
24
27
|
this.storage = storage;
|
|
25
28
|
this.logger = logger;
|
|
26
29
|
this.configService = configService;
|
|
27
|
-
this.source = 'forge/cli';
|
|
28
30
|
}
|
|
31
|
+
source = 'forge/cli';
|
|
29
32
|
reportSuccess(cmdName, cred, attributes) {
|
|
30
33
|
this.processAnalyticsEvent({
|
|
31
34
|
id: (0, uuid_1.v4)(),
|
|
32
35
|
eventType: analytics_message_handler_1.EventType.TRACK,
|
|
33
|
-
event:
|
|
36
|
+
event: {
|
|
37
|
+
timestamp: new Date(),
|
|
38
|
+
os: {
|
|
34
39
|
name: os.platform(),
|
|
35
40
|
version: os.release()
|
|
36
|
-
}
|
|
41
|
+
},
|
|
42
|
+
...this._getUserId(cred),
|
|
43
|
+
trackEvent: {
|
|
37
44
|
source: this.source,
|
|
38
45
|
action: 'invoked',
|
|
39
46
|
actionSubject: cmdName,
|
|
40
47
|
attributes: this._getAttributes(attributes),
|
|
41
48
|
containers: this._getContainer(attributes)
|
|
42
|
-
}
|
|
49
|
+
}
|
|
50
|
+
}
|
|
43
51
|
});
|
|
44
52
|
}
|
|
45
53
|
reportFailure(cmdName, cred, attributes, e) {
|
|
46
|
-
attributes =
|
|
54
|
+
attributes = {
|
|
55
|
+
...attributes,
|
|
56
|
+
...this._getErrorDetails(e)
|
|
57
|
+
};
|
|
47
58
|
this.reportOperationalEvent('invoked', cmdName, cred, attributes);
|
|
48
59
|
}
|
|
49
60
|
reportCommandInvoke(cmdName, cred, attributes) {
|
|
@@ -51,7 +62,7 @@ class AnalyticsClientReporter {
|
|
|
51
62
|
}
|
|
52
63
|
reportInvokeFailure(cmdName, cred, attributes, e) {
|
|
53
64
|
if (e) {
|
|
54
|
-
attributes =
|
|
65
|
+
attributes = { ...attributes, ...this._getErrorListDetails(e) };
|
|
55
66
|
}
|
|
56
67
|
this.reportOperationalEvent('cmdInvokeFailed', cmdName, cred, attributes);
|
|
57
68
|
}
|
|
@@ -59,16 +70,23 @@ class AnalyticsClientReporter {
|
|
|
59
70
|
this.processAnalyticsEvent({
|
|
60
71
|
id: (0, uuid_1.v4)(),
|
|
61
72
|
eventType: analytics_message_handler_1.EventType.OPERATIONAL,
|
|
62
|
-
event:
|
|
73
|
+
event: {
|
|
74
|
+
timestamp: new Date(),
|
|
75
|
+
os: {
|
|
63
76
|
name: os.platform(),
|
|
64
77
|
version: os.release()
|
|
65
|
-
}
|
|
78
|
+
},
|
|
79
|
+
...this._getUserId(cred),
|
|
80
|
+
operationalEvent: {
|
|
66
81
|
source: this.source,
|
|
67
82
|
action,
|
|
68
83
|
actionSubject,
|
|
69
|
-
attributes:
|
|
84
|
+
attributes: {
|
|
85
|
+
...this._getAttributes(attributes)
|
|
86
|
+
},
|
|
70
87
|
containers: this._getContainer(attributes)
|
|
71
|
-
}
|
|
88
|
+
}
|
|
89
|
+
}
|
|
72
90
|
});
|
|
73
91
|
}
|
|
74
92
|
processAnalyticsEvent(analyticsEvent) {
|
|
@@ -133,10 +151,19 @@ class AnalyticsClientReporter {
|
|
|
133
151
|
return mappedValue ? { [name]: mappedValue } : {};
|
|
134
152
|
}
|
|
135
153
|
_getAttributes(attributes) {
|
|
136
|
-
return
|
|
154
|
+
return {
|
|
155
|
+
...attributes,
|
|
156
|
+
...this._asAttribute(attributes.appId, 'appId', appAidOrUndefined),
|
|
157
|
+
...this._nodeVersion(),
|
|
158
|
+
...this._machineId()
|
|
159
|
+
};
|
|
137
160
|
}
|
|
138
161
|
_getContainer(attributes) {
|
|
139
|
-
return
|
|
162
|
+
return {
|
|
163
|
+
...this._asContainer(attributes.appId, 'app', 'appId', appAidOrUndefined),
|
|
164
|
+
...this._asContainer(attributes.appEnv, 'appEnv', 'environment'),
|
|
165
|
+
...this._asContainer(attributes.product, 'product', 'product')
|
|
166
|
+
};
|
|
140
167
|
}
|
|
141
168
|
}
|
|
142
169
|
exports.AnalyticsClientReporter = AnalyticsClientReporter;
|
|
@@ -9,35 +9,36 @@ var EventType;
|
|
|
9
9
|
EventType["UI"] = "ui";
|
|
10
10
|
})(EventType = exports.EventType || (exports.EventType = {}));
|
|
11
11
|
class AnalyticsMessageHandler {
|
|
12
|
+
environment;
|
|
12
13
|
constructor(environment) {
|
|
13
14
|
this.environment = environment;
|
|
14
|
-
this.aClient = (0, analytics_node_client_1.analyticsClient)({
|
|
15
|
-
env: this.environment || 'prod',
|
|
16
|
-
product: 'forge',
|
|
17
|
-
subproduct: 'cli',
|
|
18
|
-
flushAt: 1,
|
|
19
|
-
flushInterval: 1
|
|
20
|
-
});
|
|
21
|
-
this.handleMessage = async (message) => {
|
|
22
|
-
if (!message) {
|
|
23
|
-
return;
|
|
24
|
-
}
|
|
25
|
-
try {
|
|
26
|
-
switch (message.eventType) {
|
|
27
|
-
case EventType.TRACK:
|
|
28
|
-
await this.aClient.sendTrackEvent(message.event);
|
|
29
|
-
break;
|
|
30
|
-
case EventType.OPERATIONAL:
|
|
31
|
-
await this.aClient.sendOperationalEvent(message.event);
|
|
32
|
-
break;
|
|
33
|
-
case EventType.UI:
|
|
34
|
-
await this.aClient.sendUIEvent(message.event);
|
|
35
|
-
break;
|
|
36
|
-
}
|
|
37
|
-
}
|
|
38
|
-
catch (e) {
|
|
39
|
-
}
|
|
40
|
-
};
|
|
41
15
|
}
|
|
16
|
+
aClient = (0, analytics_node_client_1.analyticsClient)({
|
|
17
|
+
env: this.environment || 'prod',
|
|
18
|
+
product: 'forge',
|
|
19
|
+
subproduct: 'cli',
|
|
20
|
+
flushAt: 1,
|
|
21
|
+
flushInterval: 1
|
|
22
|
+
});
|
|
23
|
+
handleMessage = async (message) => {
|
|
24
|
+
if (!message) {
|
|
25
|
+
return;
|
|
26
|
+
}
|
|
27
|
+
try {
|
|
28
|
+
switch (message.eventType) {
|
|
29
|
+
case EventType.TRACK:
|
|
30
|
+
await this.aClient.sendTrackEvent(message.event);
|
|
31
|
+
break;
|
|
32
|
+
case EventType.OPERATIONAL:
|
|
33
|
+
await this.aClient.sendOperationalEvent(message.event);
|
|
34
|
+
break;
|
|
35
|
+
case EventType.UI:
|
|
36
|
+
await this.aClient.sendUIEvent(message.event);
|
|
37
|
+
break;
|
|
38
|
+
}
|
|
39
|
+
}
|
|
40
|
+
catch (e) {
|
|
41
|
+
}
|
|
42
|
+
};
|
|
42
43
|
}
|
|
43
44
|
exports.AnalyticsMessageHandler = AnalyticsMessageHandler;
|
|
@@ -177,10 +177,10 @@
|
|
|
177
177
|
"--debug": {
|
|
178
178
|
"requireUserArg": false
|
|
179
179
|
},
|
|
180
|
-
"--
|
|
180
|
+
"--debugStartingPort": {
|
|
181
181
|
"requireUserArg": true
|
|
182
182
|
},
|
|
183
|
-
"--
|
|
183
|
+
"--debugFunctionHandlers": {
|
|
184
184
|
"requireUserArg": true
|
|
185
185
|
},
|
|
186
186
|
"--help": {
|
|
@@ -8,7 +8,6 @@ const util_1 = require("./util");
|
|
|
8
8
|
const autocompleteConfig = autocomplete_config_json_1.default;
|
|
9
9
|
const processAutocompleteFactory = (autocompleteConfig) => {
|
|
10
10
|
const processAutocomplete = (_, { line, reply }) => {
|
|
11
|
-
var _a;
|
|
12
11
|
const splitLine = line.split(' ');
|
|
13
12
|
const numArgs = splitLine.length;
|
|
14
13
|
if (numArgs === 2) {
|
|
@@ -25,7 +24,7 @@ const processAutocompleteFactory = (autocompleteConfig) => {
|
|
|
25
24
|
}
|
|
26
25
|
const commandOptions = autocompleteConfig.commands[command];
|
|
27
26
|
const lastArg = splitLine.slice(-2, -1)[0];
|
|
28
|
-
if (
|
|
27
|
+
if (commandOptions[lastArg]?.requireUserArg) {
|
|
29
28
|
return;
|
|
30
29
|
}
|
|
31
30
|
const userOptionsSelected = (0, util_1.getUserOptionsSelectedFromSplitLine)(splitLine);
|
package/out/autocomplete/util.js
CHANGED
|
@@ -6,7 +6,7 @@ const getUserOptionsSelectedFromSplitLine = (splitLine) => {
|
|
|
6
6
|
};
|
|
7
7
|
exports.getUserOptionsSelectedFromSplitLine = getUserOptionsSelectedFromSplitLine;
|
|
8
8
|
const getRemainingOptions = (commandOptions, userSelectedOptions) => {
|
|
9
|
-
const commandOptionsClone =
|
|
9
|
+
const commandOptionsClone = { ...commandOptions };
|
|
10
10
|
for (const option of userSelectedOptions) {
|
|
11
11
|
delete commandOptionsClone[option];
|
|
12
12
|
}
|
package/out/bin/postinstall.js
CHANGED
|
@@ -13,7 +13,7 @@ const cachedConf = cli_shared_1.CachedConf.getCache(cli_shared_1.CONFIG_PROJECT_
|
|
|
13
13
|
const configService = new cached_config_service_1.CachedConfigService(cachedConf);
|
|
14
14
|
const analyticsClientReporter = new analytics_client_1.AnalyticsClientReporter(new local_file_storage_1.LocalFileStorage(), ui, configService);
|
|
15
15
|
const cliDetails = (0, version_info_1.getCLIDetails)();
|
|
16
|
-
const attributes = { version: cliDetails
|
|
16
|
+
const attributes = { version: cliDetails?.version };
|
|
17
17
|
const anonId = (0, anon_user_id_1.getAnonId)(true);
|
|
18
18
|
analyticsClientReporter.reportSuccess('postinstall', anonId, attributes);
|
|
19
19
|
if ((0, isSupportedShell_1.isSupportedShell)()) {
|