@forge/cli 0.0.0-experimental-3b4aabe → 0.0.0-experimental-2b3dfe1

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.
Files changed (267) hide show
  1. package/CHANGELOG.md +11 -7
  2. package/npm-shrinkwrap.json +196 -4237
  3. package/out/analytics-client/analytics-client.d.ts +0 -24
  4. package/out/analytics-client/analytics-client.d.ts.map +1 -1
  5. package/out/analytics-client/analytics-client.js +0 -115
  6. package/out/analytics-client/analytics-message-handler.d.ts +1 -5
  7. package/out/analytics-client/analytics-message-handler.d.ts.map +1 -1
  8. package/out/analytics-client/analytics-message-handler.js +2 -30
  9. package/out/autocomplete/autocomplete-config.json +2 -242
  10. package/out/bin/cli.d.ts +0 -1
  11. package/out/bin/cli.d.ts.map +1 -1
  12. package/out/bin/cli.js +1 -4
  13. package/out/bin/postinstall.d.ts +0 -1
  14. package/out/bin/postinstall.js +1 -22
  15. package/package.json +2 -7
  16. package/out/command-line/anon-user-id.d.ts +0 -3
  17. package/out/command-line/anon-user-id.d.ts.map +0 -1
  18. package/out/command-line/anon-user-id.js +0 -17
  19. package/out/command-line/command.d.ts +0 -81
  20. package/out/command-line/command.d.ts.map +0 -1
  21. package/out/command-line/command.js +0 -382
  22. package/out/command-line/controller/assertUnreachable.d.ts +0 -2
  23. package/out/command-line/controller/assertUnreachable.d.ts.map +0 -1
  24. package/out/command-line/controller/assertUnreachable.js +0 -7
  25. package/out/command-line/controller/autocomplete-controller.d.ts +0 -12
  26. package/out/command-line/controller/autocomplete-controller.d.ts.map +0 -1
  27. package/out/command-line/controller/autocomplete-controller.js +0 -54
  28. package/out/command-line/controller/deploy-controller.d.ts +0 -43
  29. package/out/command-line/controller/deploy-controller.d.ts.map +0 -1
  30. package/out/command-line/controller/deploy-controller.js +0 -139
  31. package/out/command-line/controller/feedback-controller.d.ts +0 -9
  32. package/out/command-line/controller/feedback-controller.d.ts.map +0 -1
  33. package/out/command-line/controller/feedback-controller.js +0 -19
  34. package/out/command-line/controller/getNodeVersion.d.ts +0 -2
  35. package/out/command-line/controller/getNodeVersion.d.ts.map +0 -1
  36. package/out/command-line/controller/getNodeVersion.js +0 -7
  37. package/out/command-line/controller/install-controller.d.ts +0 -35
  38. package/out/command-line/controller/install-controller.d.ts.map +0 -1
  39. package/out/command-line/controller/install-controller.js +0 -154
  40. package/out/command-line/controller/lint-controller.d.ts +0 -9
  41. package/out/command-line/controller/lint-controller.d.ts.map +0 -1
  42. package/out/command-line/controller/lint-controller.js +0 -20
  43. package/out/command-line/controller/pre-command-controller.d.ts +0 -25
  44. package/out/command-line/controller/pre-command-controller.d.ts.map +0 -1
  45. package/out/command-line/controller/pre-command-controller.js +0 -57
  46. package/out/command-line/controller/prerequisites-controller.d.ts +0 -11
  47. package/out/command-line/controller/prerequisites-controller.d.ts.map +0 -1
  48. package/out/command-line/controller/prerequisites-controller.js +0 -34
  49. package/out/command-line/controller/settings-controller.d.ts +0 -19
  50. package/out/command-line/controller/settings-controller.d.ts.map +0 -1
  51. package/out/command-line/controller/settings-controller.js +0 -48
  52. package/out/command-line/controller/stubController.d.ts +0 -9
  53. package/out/command-line/controller/stubController.d.ts.map +0 -1
  54. package/out/command-line/controller/stubController.js +0 -15
  55. package/out/command-line/controller/tunnel-controller.d.ts +0 -14
  56. package/out/command-line/controller/tunnel-controller.d.ts.map +0 -1
  57. package/out/command-line/controller/tunnel-controller.js +0 -43
  58. package/out/command-line/dependency-injection.d.ts +0 -69
  59. package/out/command-line/dependency-injection.d.ts.map +0 -1
  60. package/out/command-line/dependency-injection.js +0 -188
  61. package/out/command-line/environment.d.ts +0 -2
  62. package/out/command-line/environment.d.ts.map +0 -1
  63. package/out/command-line/environment.js +0 -15
  64. package/out/command-line/errors.d.ts +0 -6
  65. package/out/command-line/errors.d.ts.map +0 -1
  66. package/out/command-line/errors.js +0 -12
  67. package/out/command-line/index.d.ts +0 -5
  68. package/out/command-line/index.d.ts.map +0 -1
  69. package/out/command-line/index.js +0 -66
  70. package/out/command-line/register-app-commands.d.ts +0 -10
  71. package/out/command-line/register-app-commands.d.ts.map +0 -1
  72. package/out/command-line/register-app-commands.js +0 -128
  73. package/out/command-line/register-authentication-command.d.ts +0 -16
  74. package/out/command-line/register-authentication-command.d.ts.map +0 -1
  75. package/out/command-line/register-authentication-command.js +0 -92
  76. package/out/command-line/register-autocomplete-commands.d.ts +0 -3
  77. package/out/command-line/register-autocomplete-commands.d.ts.map +0 -1
  78. package/out/command-line/register-autocomplete-commands.js +0 -13
  79. package/out/command-line/register-deployment-commands.d.ts +0 -22
  80. package/out/command-line/register-deployment-commands.d.ts.map +0 -1
  81. package/out/command-line/register-deployment-commands.js +0 -15
  82. package/out/command-line/register-environment-variables-commands.d.ts +0 -3
  83. package/out/command-line/register-environment-variables-commands.d.ts.map +0 -1
  84. package/out/command-line/register-environment-variables-commands.js +0 -99
  85. package/out/command-line/register-feedback-commands.d.ts +0 -3
  86. package/out/command-line/register-feedback-commands.d.ts.map +0 -1
  87. package/out/command-line/register-feedback-commands.js +0 -31
  88. package/out/command-line/register-installation-commands.d.ts +0 -6
  89. package/out/command-line/register-installation-commands.d.ts.map +0 -1
  90. package/out/command-line/register-installation-commands.js +0 -140
  91. package/out/command-line/register-lint-command.d.ts +0 -8
  92. package/out/command-line/register-lint-command.d.ts.map +0 -1
  93. package/out/command-line/register-lint-command.js +0 -15
  94. package/out/command-line/register-log-commands.d.ts +0 -4
  95. package/out/command-line/register-log-commands.d.ts.map +0 -1
  96. package/out/command-line/register-log-commands.js +0 -138
  97. package/out/command-line/register-providers-commands.d.ts +0 -3
  98. package/out/command-line/register-providers-commands.d.ts.map +0 -1
  99. package/out/command-line/register-providers-commands.js +0 -43
  100. package/out/command-line/register-settings-commands.d.ts +0 -3
  101. package/out/command-line/register-settings-commands.d.ts.map +0 -1
  102. package/out/command-line/register-settings-commands.js +0 -37
  103. package/out/command-line/register-tunnel-commands.d.ts +0 -3
  104. package/out/command-line/register-tunnel-commands.d.ts.map +0 -1
  105. package/out/command-line/register-tunnel-commands.js +0 -14
  106. package/out/command-line/register-webtrigger-commands.d.ts +0 -3
  107. package/out/command-line/register-webtrigger-commands.d.ts.map +0 -1
  108. package/out/command-line/register-webtrigger-commands.js +0 -55
  109. package/out/command-line/unique-machine-id.d.ts +0 -3
  110. package/out/command-line/unique-machine-id.d.ts.map +0 -1
  111. package/out/command-line/unique-machine-id.js +0 -18
  112. package/out/command-line/version-info.d.ts +0 -8
  113. package/out/command-line/version-info.d.ts.map +0 -1
  114. package/out/command-line/version-info.js +0 -34
  115. package/out/command-line/view/analytics-settings-view.d.ts +0 -7
  116. package/out/command-line/view/analytics-settings-view.d.ts.map +0 -1
  117. package/out/command-line/view/analytics-settings-view.js +0 -18
  118. package/out/command-line/view/deploy-view.d.ts +0 -21
  119. package/out/command-line/view/deploy-view.d.ts.map +0 -1
  120. package/out/command-line/view/deploy-view.js +0 -58
  121. package/out/command-line/view/install-view.d.ts +0 -18
  122. package/out/command-line/view/install-view.d.ts.map +0 -1
  123. package/out/command-line/view/install-view.js +0 -55
  124. package/out/command-line/view/lint-view.d.ts +0 -12
  125. package/out/command-line/view/lint-view.d.ts.map +0 -1
  126. package/out/command-line/view/lint-view.js +0 -31
  127. package/out/command-line/view/lite-lint-view.d.ts +0 -10
  128. package/out/command-line/view/lite-lint-view.d.ts.map +0 -1
  129. package/out/command-line/view/lite-lint-view.js +0 -18
  130. package/out/command-line/view/settings-view.d.ts +0 -8
  131. package/out/command-line/view/settings-view.d.ts.map +0 -1
  132. package/out/command-line/view/settings-view.js +0 -21
  133. package/out/command-line/view/tunnel-view.d.ts +0 -18
  134. package/out/command-line/view/tunnel-view.d.ts.map +0 -1
  135. package/out/command-line/view/tunnel-view.js +0 -89
  136. package/out/deploy/deployer/deploy-monitor-graphql-client.d.ts +0 -24
  137. package/out/deploy/deployer/deploy-monitor-graphql-client.d.ts.map +0 -1
  138. package/out/deploy/deployer/deploy-monitor-graphql-client.js +0 -57
  139. package/out/deploy/deployer/deployer.d.ts +0 -31
  140. package/out/deploy/deployer/deployer.d.ts.map +0 -1
  141. package/out/deploy/deployer/deployer.js +0 -154
  142. package/out/deploy/deployer/index.d.ts +0 -4
  143. package/out/deploy/deployer/index.d.ts.map +0 -1
  144. package/out/deploy/deployer/index.js +0 -6
  145. package/out/deploy/deployer/trigger-deploy-graphql-client.d.ts +0 -19
  146. package/out/deploy/deployer/trigger-deploy-graphql-client.d.ts.map +0 -1
  147. package/out/deploy/deployer/trigger-deploy-graphql-client.js +0 -45
  148. package/out/deploy/index.d.ts +0 -5
  149. package/out/deploy/index.d.ts.map +0 -1
  150. package/out/deploy/index.js +0 -7
  151. package/out/deploy/package-upload-deploy.d.ts +0 -18
  152. package/out/deploy/package-upload-deploy.d.ts.map +0 -1
  153. package/out/deploy/package-upload-deploy.js +0 -28
  154. package/out/deploy/packager/archiver.d.ts +0 -24
  155. package/out/deploy/packager/archiver.d.ts.map +0 -1
  156. package/out/deploy/packager/archiver.js +0 -62
  157. package/out/deploy/packager/index.d.ts +0 -3
  158. package/out/deploy/packager/index.d.ts.map +0 -1
  159. package/out/deploy/packager/index.js +0 -5
  160. package/out/deploy/packager/packager.d.ts +0 -35
  161. package/out/deploy/packager/packager.d.ts.map +0 -1
  162. package/out/deploy/packager/packager.js +0 -61
  163. package/out/deploy/uploader/artifact-graphql-client.d.ts +0 -26
  164. package/out/deploy/uploader/artifact-graphql-client.d.ts.map +0 -1
  165. package/out/deploy/uploader/artifact-graphql-client.js +0 -92
  166. package/out/deploy/uploader/index.d.ts +0 -3
  167. package/out/deploy/uploader/index.d.ts.map +0 -1
  168. package/out/deploy/uploader/index.js +0 -5
  169. package/out/deploy/uploader/uploader.d.ts +0 -19
  170. package/out/deploy/uploader/uploader.d.ts.map +0 -1
  171. package/out/deploy/uploader/uploader.js +0 -43
  172. package/out/environment-variables/delete-environment-variable.d.ts +0 -18
  173. package/out/environment-variables/delete-environment-variable.d.ts.map +0 -1
  174. package/out/environment-variables/delete-environment-variable.js +0 -14
  175. package/out/environment-variables/graphql-client.d.ts +0 -16
  176. package/out/environment-variables/graphql-client.d.ts.map +0 -1
  177. package/out/environment-variables/graphql-client.js +0 -105
  178. package/out/environment-variables/list-environment-variables.d.ts +0 -22
  179. package/out/environment-variables/list-environment-variables.d.ts.map +0 -1
  180. package/out/environment-variables/list-environment-variables.js +0 -14
  181. package/out/environment-variables/set-environment-variable.d.ts +0 -20
  182. package/out/environment-variables/set-environment-variable.d.ts.map +0 -1
  183. package/out/environment-variables/set-environment-variable.js +0 -14
  184. package/out/installations/graphql-client.d.ts +0 -60
  185. package/out/installations/graphql-client.d.ts.map +0 -1
  186. package/out/installations/graphql-client.js +0 -408
  187. package/out/installations/install-app-site.d.ts +0 -21
  188. package/out/installations/install-app-site.d.ts.map +0 -1
  189. package/out/installations/install-app-site.js +0 -19
  190. package/out/installations/shared.d.ts +0 -5
  191. package/out/installations/shared.d.ts.map +0 -1
  192. package/out/installations/shared.js +0 -19
  193. package/out/installations/uninstall-app.d.ts +0 -25
  194. package/out/installations/uninstall-app.d.ts.map +0 -1
  195. package/out/installations/uninstall-app.js +0 -43
  196. package/out/migration-keys/graphql-client.d.ts +0 -8
  197. package/out/migration-keys/graphql-client.d.ts.map +0 -1
  198. package/out/migration-keys/graphql-client.js +0 -55
  199. package/out/providers/configure-provider.d.ts +0 -19
  200. package/out/providers/configure-provider.d.ts.map +0 -1
  201. package/out/providers/configure-provider.js +0 -14
  202. package/out/providers/graphql-client.d.ts +0 -12
  203. package/out/providers/graphql-client.d.ts.map +0 -1
  204. package/out/providers/graphql-client.js +0 -47
  205. package/out/service/cached-config-service.d.ts +0 -8
  206. package/out/service/cached-config-service.d.ts.map +0 -1
  207. package/out/service/cached-config-service.js +0 -16
  208. package/out/service/command-suggestion-service.d.ts +0 -4
  209. package/out/service/command-suggestion-service.d.ts.map +0 -1
  210. package/out/service/command-suggestion-service.js +0 -17
  211. package/out/service/docker-service.d.ts +0 -24
  212. package/out/service/docker-service.d.ts.map +0 -1
  213. package/out/service/docker-service.js +0 -71
  214. package/out/service/installation-service.d.ts +0 -51
  215. package/out/service/installation-service.d.ts.map +0 -1
  216. package/out/service/installation-service.js +0 -89
  217. package/out/service/lint-service.d.ts +0 -23
  218. package/out/service/lint-service.d.ts.map +0 -1
  219. package/out/service/lint-service.js +0 -39
  220. package/out/service/lite-lint-service.d.ts +0 -10
  221. package/out/service/lite-lint-service.d.ts.map +0 -1
  222. package/out/service/lite-lint-service.js +0 -27
  223. package/out/service/migration-keys-service.d.ts +0 -19
  224. package/out/service/migration-keys-service.d.ts.map +0 -1
  225. package/out/service/migration-keys-service.js +0 -14
  226. package/out/service/port-finding-service.d.ts +0 -12
  227. package/out/service/port-finding-service.d.ts.map +0 -1
  228. package/out/service/port-finding-service.js +0 -34
  229. package/out/service/resource-packaging-service.d.ts +0 -46
  230. package/out/service/resource-packaging-service.d.ts.map +0 -1
  231. package/out/service/resource-packaging-service.js +0 -128
  232. package/out/service/resources-uploader-service.d.ts +0 -16
  233. package/out/service/resources-uploader-service.d.ts.map +0 -1
  234. package/out/service/resources-uploader-service.js +0 -34
  235. package/out/service/tunnel-analytics-service.d.ts +0 -11
  236. package/out/service/tunnel-analytics-service.d.ts.map +0 -1
  237. package/out/service/tunnel-analytics-service.js +0 -24
  238. package/out/service/tunnel-service.d.ts +0 -49
  239. package/out/service/tunnel-service.d.ts.map +0 -1
  240. package/out/service/tunnel-service.js +0 -190
  241. package/out/webtrigger/get-webtrigger-url.d.ts +0 -27
  242. package/out/webtrigger/get-webtrigger-url.d.ts.map +0 -1
  243. package/out/webtrigger/get-webtrigger-url.js +0 -26
  244. package/out/webtrigger/graphql-client.d.ts +0 -14
  245. package/out/webtrigger/graphql-client.d.ts.map +0 -1
  246. package/out/webtrigger/graphql-client.js +0 -52
  247. package/out/workers/analytics-message-worker.d.ts +0 -12
  248. package/out/workers/analytics-message-worker.d.ts.map +0 -1
  249. package/out/workers/analytics-message-worker.js +0 -29
  250. package/out/workers/forge-cli-workers.d.ts +0 -2
  251. package/out/workers/forge-cli-workers.d.ts.map +0 -1
  252. package/out/workers/forge-cli-workers.js +0 -21
  253. package/out/workers/tunnel-clean-up-worker.d.ts +0 -8
  254. package/out/workers/tunnel-clean-up-worker.d.ts.map +0 -1
  255. package/out/workers/tunnel-clean-up-worker.js +0 -31
  256. package/out/workers/version-check-worker.d.ts +0 -8
  257. package/out/workers/version-check-worker.d.ts.map +0 -1
  258. package/out/workers/version-check-worker.js +0 -20
  259. package/out/workers/worker-info.d.ts +0 -8
  260. package/out/workers/worker-info.d.ts.map +0 -1
  261. package/out/workers/worker-info.js +0 -14
  262. package/out/workers/worker.d.ts +0 -6
  263. package/out/workers/worker.d.ts.map +0 -1
  264. package/out/workers/worker.js +0 -7
  265. package/out/workers/workers-starter.d.ts +0 -5
  266. package/out/workers/workers-starter.d.ts.map +0 -1
  267. package/out/workers/workers-starter.js +0 -22
@@ -1,28 +1,4 @@
1
- import { PersonalApiCredentialsValidated, Logger } from '@forge/cli-shared';
2
- import { Storage } from '../storage/local-file-storage';
3
- import { CachedConfigService } from '../service/cached-config-service';
4
1
  export declare type AttributeMapper<T> = (val: T) => T | undefined;
5
2
  export declare class AnalyticsClientReporter {
6
- private readonly storage;
7
- private readonly logger;
8
- private readonly configService;
9
- constructor(storage: Storage, logger: Logger, configService: CachedConfigService);
10
- private eventSource;
11
- reportInvoke(cmdName: string, anonymousId: string): void;
12
- reportSuccess(cmdName: string, cred: PersonalApiCredentialsValidated | string, attributes: {
13
- [key: string]: any;
14
- }): void;
15
- reportFailure(cmdName: string, cred: string | PersonalApiCredentialsValidated, attributes: {
16
- [key: string]: any;
17
- }, e: Error): void;
18
- private processAnalyticsEvent;
19
- private _getUserId;
20
- private _getErrorDetails;
21
- private _asContainer;
22
- private _nodeVersion;
23
- private _machineId;
24
- private _asAttribute;
25
- private _getAttributes;
26
- private _getContainer;
27
3
  }
28
4
  //# sourceMappingURL=analytics-client.d.ts.map
@@ -1 +1 @@
1
- {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AOtB"}
1
+ {"version":3,"file":"analytics-client.d.ts","sourceRoot":"","sources":["../../src/analytics-client/analytics-client.ts"],"names":[],"mappings":"AAAA,oBAAY,eAAe,CAAC,CAAC,IAAI,CAAC,GAAG,EAAE,CAAC,KAAK,CAAC,GAAG,SAAS,CAAC;AAE3D,qBAAa,uBAAuB;CAAG"}
@@ -1,121 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.AnalyticsClientReporter = void 0;
4
- const tslib_1 = require("tslib");
5
- const analytics_node_client_1 = require("@forge/util/packages/analytics-node-client");
6
- const os = tslib_1.__importStar(require("os"));
7
- const cs_ari_1 = require("@forge/util/packages/cs-ari");
8
- const analytics_message_handler_1 = require("./analytics-message-handler");
9
- const uuid = require("uuid");
10
- const cli_shared_1 = require("@forge/cli-shared");
11
- const unique_machine_id_1 = require("../command-line/unique-machine-id");
12
- const Identity = (value) => value;
13
- function appAidOrUndefined(appAri) {
14
- try {
15
- return cs_ari_1.parseAppAri(cs_ari_1.parse(appAri)).appId;
16
- }
17
- catch (e) {
18
- return undefined;
19
- }
20
- }
21
4
  class AnalyticsClientReporter {
22
- constructor(storage, logger, configService) {
23
- this.storage = storage;
24
- this.logger = logger;
25
- this.configService = configService;
26
- this.eventSource = {
27
- source: 'forge/cli',
28
- action: 'invoked'
29
- };
30
- }
31
- reportInvoke(cmdName, anonymousId) {
32
- this.processAnalyticsEvent({
33
- id: uuid(),
34
- eventType: analytics_message_handler_1.EventType.UI,
35
- event: {
36
- anonymousId,
37
- timestamp: new Date(),
38
- os: {
39
- name: os.platform(),
40
- version: os.release()
41
- },
42
- uiEvent: Object.assign(Object.assign({}, this.eventSource), { actionSubject: cmdName, attributes: this._getAttributes({}) })
43
- }
44
- });
45
- }
46
- reportSuccess(cmdName, cred, attributes) {
47
- this.processAnalyticsEvent({
48
- id: uuid(),
49
- eventType: analytics_message_handler_1.EventType.TRACK,
50
- event: Object.assign(Object.assign({ timestamp: new Date(), os: {
51
- name: os.platform(),
52
- version: os.release()
53
- } }, this._getUserId(cred)), { trackEvent: Object.assign(Object.assign({}, this.eventSource), { actionSubject: cmdName, attributes: this._getAttributes(attributes), containers: this._getContainer(attributes) }) })
54
- });
55
- }
56
- reportFailure(cmdName, cred, attributes, e) {
57
- this.processAnalyticsEvent({
58
- id: uuid(),
59
- eventType: analytics_message_handler_1.EventType.OPERATIONAL,
60
- event: Object.assign(Object.assign({ timestamp: new Date(), os: {
61
- name: os.platform(),
62
- version: os.release()
63
- } }, this._getUserId(cred)), { operationalEvent: Object.assign(Object.assign({}, this.eventSource), { actionSubject: cmdName, attributes: Object.assign(Object.assign({}, this._getAttributes(attributes)), this._getErrorDetails(e)), containers: this._getContainer(attributes) }) })
64
- });
65
- }
66
- processAnalyticsEvent(analyticsEvent) {
67
- if (this.configService.getAnalyticsPreferences() === false) {
68
- return;
69
- }
70
- if (process.env.FORGE_DEV_DOCKER_TUNNEL || process.env.FORGE_DEV_TUNNEL) {
71
- this.logger.trace(`\nAnalytics event: ${JSON.stringify(analyticsEvent, null, 2)}`);
72
- }
73
- else {
74
- this.storage.addAnalyticsEvent(analyticsEvent);
75
- }
76
- }
77
- _getUserId(cred) {
78
- return typeof cred === 'string'
79
- ? {
80
- anonymousId: cred
81
- }
82
- : {
83
- userIdType: analytics_node_client_1.userTypes.ATLASSIAN_ACCOUNT,
84
- userId: cred.accountId
85
- };
86
- }
87
- _getErrorDetails(e) {
88
- if (e instanceof cli_shared_1.GraphQlMutationError) {
89
- return { error: e.getCode() };
90
- }
91
- return { error: e.constructor.name };
92
- }
93
- _asContainer(attrValue, containerType, type, mapper = Identity) {
94
- const mappedValue = mapper(attrValue);
95
- return mappedValue
96
- ? {
97
- [containerType]: {
98
- id: mappedValue,
99
- type
100
- }
101
- }
102
- : undefined;
103
- }
104
- _nodeVersion() {
105
- return { node: process.version };
106
- }
107
- _machineId() {
108
- return { machineId: unique_machine_id_1.getMachineId() };
109
- }
110
- _asAttribute(attrValue, name, mapper = Identity) {
111
- const mappedValue = mapper(attrValue);
112
- return mappedValue ? { [name]: mappedValue } : {};
113
- }
114
- _getAttributes(attributes) {
115
- return Object.assign(Object.assign(Object.assign(Object.assign({}, attributes), this._asAttribute(attributes.appId, 'appId', appAidOrUndefined)), this._nodeVersion()), this._machineId());
116
- }
117
- _getContainer(attributes) {
118
- return Object.assign(Object.assign(Object.assign({}, this._asContainer(attributes.appId, 'app', 'appId', appAidOrUndefined)), this._asContainer(attributes.appEnv, 'appEnv', 'environment')), this._asContainer(attributes.product, 'product', 'product'));
119
- }
120
5
  }
121
6
  exports.AnalyticsClientReporter = AnalyticsClientReporter;
@@ -1,4 +1,3 @@
1
- import { OperationalEvent, TrackEvent, UIEvent } from '@forge/util/packages/analytics-node-client';
2
1
  export declare enum EventType {
3
2
  TRACK = "track",
4
3
  OPERATIONAL = "operational",
@@ -7,15 +6,12 @@ export declare enum EventType {
7
6
  export interface AnalyticsMessage {
8
7
  id: string;
9
8
  eventType: EventType;
10
- event: UIEvent | TrackEvent | OperationalEvent;
9
+ event: unknown;
11
10
  }
12
11
  export interface MessageHandler<T> {
13
12
  handleMessage(message: T): Promise<void>;
14
13
  }
15
14
  export declare class AnalyticsMessageHandler implements MessageHandler<AnalyticsMessage> {
16
- private readonly environment?;
17
- constructor(environment?: string | undefined);
18
- private readonly aClient;
19
15
  handleMessage: (message: AnalyticsMessage | undefined) => Promise<void>;
20
16
  }
21
17
  //# sourceMappingURL=analytics-message-handler.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"analytics-message-handler.d.ts","sourceRoot":"","sources":["../../src/analytics-client/analytics-message-handler.ts"],"names":[],"mappings":"AAAA,OAAO,EAGL,gBAAgB,EAChB,UAAU,EACV,OAAO,EACR,MAAM,4CAA4C,CAAC;AAEpD,oBAAY,SAAS;IACnB,KAAK,UAAU;IACf,WAAW,gBAAgB;IAC3B,EAAE,OAAO;CACV;AAED,MAAM,WAAW,gBAAgB;IAC/B,EAAE,EAAE,MAAM,CAAC;IACX,SAAS,EAAE,SAAS,CAAC;IACrB,KAAK,EAAE,OAAO,GAAG,UAAU,GAAG,gBAAgB,CAAC;CAChD;AAED,MAAM,WAAW,cAAc,CAAC,CAAC;IAC/B,aAAa,CAAC,OAAO,EAAE,CAAC,GAAG,OAAO,CAAC,IAAI,CAAC,CAAC;CAC1C;AAED,qBAAa,uBAAwB,YAAW,cAAc,CAAC,gBAAgB,CAAC;IAClE,OAAO,CAAC,QAAQ,CAAC,WAAW,CAAC;gBAAZ,WAAW,CAAC,oBAAQ;IAEjD,OAAO,CAAC,QAAQ,CAAC,OAAO,CAMrB;IAOI,aAAa,YAAmB,gBAAgB,GAAG,SAAS,KAAG,OAAO,CAAC,IAAI,CAAC,CAmBjF;CACH"}
1
+ {"version":3,"file":"analytics-message-handler.d.ts","sourceRoot":"","sources":["../../src/analytics-client/analytics-message-handler.ts"],"names":[],"mappings":"AAAA,oBAAY,SAAS;IACnB,KAAK,UAAU;IACf,WAAW,gBAAgB;IAC3B,EAAE,OAAO;CACV;AAED,MAAM,WAAW,gBAAgB;IAC/B,EAAE,EAAE,MAAM,CAAC;IACX,SAAS,EAAE,SAAS,CAAC;IACrB,KAAK,EAAE,OAAO,CAAC;CAChB;AAED,MAAM,WAAW,cAAc,CAAC,CAAC;IAC/B,aAAa,CAAC,OAAO,EAAE,CAAC,GAAG,OAAO,CAAC,IAAI,CAAC,CAAC;CAC1C;AAED,qBAAa,uBAAwB,YAAW,cAAc,CAAC,gBAAgB,CAAC;IAMvE,aAAa,YAAmB,gBAAgB,GAAG,SAAS,KAAG,OAAO,CAAC,IAAI,CAAC,CAAW;CAC/F"}
@@ -1,7 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.AnalyticsMessageHandler = exports.EventType = void 0;
4
- const analytics_node_client_1 = require("@forge/util/packages/analytics-node-client");
5
4
  var EventType;
6
5
  (function (EventType) {
7
6
  EventType["TRACK"] = "track";
@@ -9,35 +8,8 @@ var EventType;
9
8
  EventType["UI"] = "ui";
10
9
  })(EventType = exports.EventType || (exports.EventType = {}));
11
10
  class AnalyticsMessageHandler {
12
- constructor(environment) {
13
- this.environment = environment;
14
- this.aClient = 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
- };
11
+ constructor() {
12
+ this.handleMessage = async (message) => void 0;
41
13
  }
42
14
  }
43
15
  exports.AnalyticsMessageHandler = AnalyticsMessageHandler;
@@ -1,243 +1,3 @@
1
1
  {
2
- "commands": {
3
- "autocomplete": {
4
- "--verbose": {
5
- "requireUserArg": false
6
- },
7
- "--help": {
8
- "requireUserArg": false
9
- }
10
- },
11
- "create": {
12
- "--verbose": {
13
- "requireUserArg": false
14
- },
15
- "--template": {
16
- "requireUserArg": true
17
- },
18
- "--directory": {
19
- "requireUserArg": true
20
- },
21
- "--help": {
22
- "requireUserArg": false
23
- }
24
- },
25
- "deploy": {
26
- "--verbose": {
27
- "requireUserArg": false
28
- },
29
- "--no-verify": {
30
- "requireUserArg": false
31
- },
32
- "--environment": {
33
- "requireUserArg": true
34
- },
35
- "--help": {
36
- "requireUserArg": false
37
- }
38
- },
39
- "feedback": {
40
- "--verbose": {
41
- "requireUserArg": false
42
- },
43
- "--help": {
44
- "requireUserArg": false
45
- }
46
- },
47
- "install": {
48
- "--verbose": {
49
- "requireUserArg": false
50
- },
51
- "--environment": {
52
- "requireUserArg": true
53
- },
54
- "--site": {
55
- "requireUserArg": true
56
- },
57
- "--product": {
58
- "requireUserArg": true
59
- },
60
- "--upgrade": {
61
- "requireUserArg": false
62
- },
63
- "--confirm-scopes": {
64
- "requireUserArg": false
65
- },
66
- "--help": {
67
- "requireUserArg": false
68
- }
69
- },
70
- "install:list": {
71
- "--verbose": {
72
- "requireUserArg": false
73
- },
74
- "--help": {
75
- "requireUserArg": false
76
- }
77
- },
78
- "lint": {
79
- "--verbose": {
80
- "requireUserArg": false
81
- },
82
- "--fix": {
83
- "requireUserArg": false
84
- },
85
- "--environment": {
86
- "requireUserArg": true
87
- },
88
- "--help": {
89
- "requireUserArg": false
90
- }
91
- },
92
- "login": {
93
- "--verbose": {
94
- "requireUserArg": false
95
- },
96
- "--email": {
97
- "requireUserArg": true
98
- },
99
- "--token": {
100
- "requireUserArg": true
101
- },
102
- "--help": {
103
- "requireUserArg": false
104
- }
105
- },
106
- "logout": {
107
- "--verbose": {
108
- "requireUserArg": false
109
- },
110
- "--help": {
111
- "requireUserArg": false
112
- }
113
- },
114
- "logs": {
115
- "--verbose": {
116
- "requireUserArg": false
117
- },
118
- "--environment": {
119
- "requireUserArg": true
120
- },
121
- "--invocation": {
122
- "requireUserArg": true
123
- },
124
- "--limit": {
125
- "requireUserArg": true
126
- },
127
- "--since": {
128
- "requireUserArg": true
129
- },
130
- "--grouped": {
131
- "requireUserArg": false
132
- },
133
- "--help": {
134
- "requireUserArg": false
135
- }
136
- },
137
- "providers": {
138
- "--verbose": {
139
- "requireUserArg": false
140
- },
141
- "--help": {
142
- "requireUserArg": false
143
- }
144
- },
145
- "register": {
146
- "--verbose": {
147
- "requireUserArg": false
148
- },
149
- "--help": {
150
- "requireUserArg": false
151
- }
152
- },
153
- "settings": {
154
- "--verbose": {
155
- "requireUserArg": false
156
- },
157
- "--help": {
158
- "requireUserArg": false
159
- }
160
- },
161
- "tunnel": {
162
- "--verbose": {
163
- "requireUserArg": false
164
- },
165
- "--debug": {
166
- "requireUserArg": false
167
- },
168
- "--help": {
169
- "requireUserArg": false
170
- }
171
- },
172
- "uninstall": {
173
- "--verbose": {
174
- "requireUserArg": false
175
- },
176
- "--help": {
177
- "requireUserArg": false
178
- }
179
- },
180
- "variables": {
181
- "--verbose": {
182
- "requireUserArg": false
183
- },
184
- "--help": {
185
- "requireUserArg": false
186
- }
187
- },
188
- "variables:list": {
189
- "--verbose": {
190
- "requireUserArg": false
191
- },
192
- "--help": {
193
- "requireUserArg": false
194
- }
195
- },
196
- "variables:set": {
197
- "--verbose": {
198
- "requireUserArg": false
199
- },
200
- "--help": {
201
- "requireUserArg": false
202
- }
203
- },
204
- "variables:unset": {
205
- "--verbose": {
206
- "requireUserArg": false
207
- },
208
- "--help": {
209
- "requireUserArg": false
210
- }
211
- },
212
- "webtrigger": {
213
- "--verbose": {
214
- "requireUserArg": false
215
- },
216
- "--functionKey": {
217
- "requireUserArg": true
218
- },
219
- "--help": {
220
- "requireUserArg": false
221
- }
222
- },
223
- "whoami": {
224
- "--verbose": {
225
- "requireUserArg": false
226
- },
227
- "--help": {
228
- "requireUserArg": false
229
- }
230
- }
231
- },
232
- "options": {
233
- "--version": {
234
- "requireUserArg": false
235
- },
236
- "--verbose": {
237
- "requireUserArg": false
238
- },
239
- "--help": {
240
- "requireUserArg": false
241
- }
242
- }
243
- }
2
+ "This file is auto generated at build time.": "You can find it in the out/ folder."
3
+ }
package/out/bin/cli.d.ts CHANGED
@@ -1,3 +1,2 @@
1
1
  #!/usr/bin/env node
2
- import '../autocomplete';
3
2
  //# sourceMappingURL=cli.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"cli.d.ts","sourceRoot":"","sources":["../../src/bin/cli.ts"],"names":[],"mappings":";AAEA,OAAO,iBAAiB,CAAC"}
1
+ {"version":3,"file":"cli.d.ts","sourceRoot":"","sources":["../../src/bin/cli.ts"],"names":[],"mappings":""}
package/out/bin/cli.js CHANGED
@@ -1,6 +1,3 @@
1
1
  #!/usr/bin/env node
2
2
  "use strict";
3
- Object.defineProperty(exports, "__esModule", { value: true });
4
- require("../autocomplete");
5
- const command_line_1 = require("../command-line");
6
- command_line_1.main();
3
+ console.log('wow');
@@ -1,2 +1 @@
1
- export {};
2
1
  //# sourceMappingURL=postinstall.d.ts.map
@@ -1,23 +1,2 @@
1
1
  "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- const analytics_client_1 = require("../analytics-client/analytics-client");
4
- const cli_shared_1 = require("@forge/cli-shared");
5
- const local_file_storage_1 = require("../storage/local-file-storage");
6
- const workers_starter_1 = require("../workers/workers-starter");
7
- const version_info_1 = require("../command-line/version-info");
8
- const anon_user_id_1 = require("../command-line/anon-user-id");
9
- const isSupportedShell_1 = require("../autocomplete/isSupportedShell");
10
- const unique_machine_id_1 = require("../command-line/unique-machine-id");
11
- const cached_config_service_1 = require("../service/cached-config-service");
12
- const ui = new cli_shared_1.CommandLineUI(() => true);
13
- const cachedConf = cli_shared_1.CachedConf.getCache(unique_machine_id_1.FORGE_CLI_PACKAGE);
14
- const configService = new cached_config_service_1.CachedConfigService(cachedConf);
15
- const analyticsClientReporter = new analytics_client_1.AnalyticsClientReporter(new local_file_storage_1.LocalFileStorage(), ui, configService);
16
- const cliDetails = version_info_1.getCLIDetails();
17
- const attributes = { version: cliDetails === null || cliDetails === void 0 ? void 0 : cliDetails.version };
18
- const anonId = anon_user_id_1.getAnonId(true);
19
- analyticsClientReporter.reportSuccess('postinstall', anonId, attributes);
20
- if (isSupportedShell_1.isSupportedShell()) {
21
- ui.info(cli_shared_1.Text.autocomplete.postinstall);
22
- }
23
- new workers_starter_1.WorkersStarter(undefined);
2
+ console.log('postinstall');
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@forge/cli",
3
- "version": "0.0.0-experimental-3b4aabe",
3
+ "version": "0.0.0-experimental-2b3dfe1",
4
4
  "description": "A command line interface for managing Atlassian-hosted apps",
5
5
  "author": "Atlassian",
6
6
  "license": "UNLICENSED",
@@ -14,15 +14,10 @@
14
14
  "compile": "tsc -b -v",
15
15
  "dev": "NODE_ENV=development ts-node src/bin/cli.ts",
16
16
  "inspect": "node -r ts-node/register --inspect-brk src/bin/cli.ts",
17
- "postbuild": "chmod +x out/bin/*.js && ts-node scripts/configureAutocomplete.ts",
17
+ "postbuild": "chmod +x out/bin/*.js",
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": "0.0.0-experimental-3b4aabe",
22
- "@forge/cli-shared": "0.0.0-experimental-3b4aabe",
23
- "@forge/lint": "0.0.0-experimental-3b4aabe",
24
- "@forge/manifest": "0.0.0-experimental-3b4aabe",
25
- "@forge/util": "1.2.0",
26
21
  "ajv": "^6.12.5",
27
22
  "archiver": "^5.2.0",
28
23
  "case": "^1.6.2",
@@ -1,3 +0,0 @@
1
- export declare function getAnonId(createNew: true): string;
2
- export declare function getAnonId(createNew?: false): string | undefined;
3
- //# sourceMappingURL=anon-user-id.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"anon-user-id.d.ts","sourceRoot":"","sources":["../../src/command-line/anon-user-id.ts"],"names":[],"mappings":"AAOA,wBAAgB,SAAS,CAAC,SAAS,EAAE,IAAI,GAAG,MAAM,CAAC;AACnD,wBAAgB,SAAS,CAAC,SAAS,CAAC,EAAE,KAAK,GAAG,MAAM,GAAG,SAAS,CAAC"}
@@ -1,17 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.getAnonId = void 0;
4
- const tslib_1 = require("tslib");
5
- const uuid_1 = tslib_1.__importDefault(require("uuid"));
6
- const cli_shared_1 = require("@forge/cli-shared");
7
- const ANON_ID_CACHE_KEY = 'anonId';
8
- function getAnonId(createNew = false) {
9
- const cachedConf = cli_shared_1.CachedConf.getCache('@forge/cli');
10
- return cachedConf.cached(ANON_ID_CACHE_KEY, () => {
11
- if (!createNew) {
12
- return undefined;
13
- }
14
- return uuid_1.default();
15
- });
16
- }
17
- exports.getAnonId = getAnonId;
@@ -1,81 +0,0 @@
1
- import commander, { CommanderError, OutputConfiguration } from 'commander';
2
- import { AnalyticsClientReporter } from '../analytics-client/analytics-client';
3
- import { PersonalApiCredentialsValidated } from '@forge/cli-shared';
4
- import { UI } from '@forge/cli-shared';
5
- import { CLIDetails } from '@forge/cli-shared';
6
- import { PreCommandController } from './controller/pre-command-controller';
7
- import { StubController } from './controller/stubController';
8
- declare type PreconditionCallback = (...args: any[]) => any;
9
- declare type ActionResult = Promise<{
10
- creds?: PersonalApiCredentialsValidated;
11
- analytics: any;
12
- } | void>;
13
- export declare class WrapperError extends CommanderError {
14
- private readonly commandName;
15
- constructor(error: CommanderError, commandName: string);
16
- getCommandName: () => string;
17
- }
18
- export interface ErrorWithAnalytics {
19
- getAttributes: () => Record<string, string | string[]>;
20
- }
21
- export declare class Command {
22
- private readonly ui;
23
- private readonly analyticsClient;
24
- private readonly preCommandController;
25
- private readonly cliDetails;
26
- private readonly expectsArguments;
27
- private readonly analyticsName?;
28
- get verbose(): boolean;
29
- static reportHelp: (cmd: Command, cmdError: WrapperError) => Promise<undefined>;
30
- private static isError;
31
- private static isHelpTriggered;
32
- private static isVersionTriggered;
33
- private static isUnknownCommand;
34
- private static isExcessCommands;
35
- private static concatenateNames;
36
- private readonly cmd;
37
- private newCommand;
38
- private requiresAuthentication;
39
- private requiresAnalyticsConsent;
40
- private requiredOptionFlags;
41
- private preconditionFn;
42
- private options;
43
- private commands;
44
- constructor(ui: UI, analyticsClient: AnalyticsClientReporter, preCommandController: PreCommandController, cliDetails: CLIDetails | undefined, cmd?: commander.Command, expectsArguments?: boolean, analyticsName?: string | undefined);
45
- version(str: string, flags?: string): this;
46
- command(name: string, opts?: commander.CommandOptions): Command;
47
- deprecatedCommand(oldName: string, newName: string, stubController: StubController): void;
48
- getAnalyticsName(): string | undefined;
49
- deprecate(newCommand: string): this;
50
- description(desc: string): this;
51
- option(flags: string, description: string, defaultValue?: any): this;
52
- option(flags: string, description: string, fn: (userValue: any, defaultValue?: any) => any, defaultValue?: any): this;
53
- precondition(fn: PreconditionCallback): this;
54
- requireManifestFile(): this;
55
- requireAppId(): this;
56
- nonInteractiveOption(...args: string[]): this;
57
- action(fn: (...args: any[]) => ActionResult): this;
58
- parse(argv: string[]): Promise<undefined>;
59
- exitOverride: (listener: (err: any) => void) => this;
60
- getDefinedCommands(): commander.Command[];
61
- getDefinedOptions(): commander.Option[];
62
- getCmdName(): string;
63
- getCommands(): Command[];
64
- environmentOption(): this;
65
- siteAndProductOption(): this;
66
- requireNoAuthentication(): this;
67
- requireNoAnalyticsConsent(): this;
68
- private satisfiesNonInteractiveOptions;
69
- actionProcessor: (cb: (...cbArgs: any[]) => ActionResult, ...args: any[]) => Promise<void>;
70
- configureOutput(obj: OutputConfiguration): this;
71
- private checkPreconditions;
72
- private checkAuthentication;
73
- private checkVersion;
74
- private validateContext;
75
- private findLastValidCommand;
76
- private outputRelevantHelp;
77
- private unknownCommand;
78
- private assertValidArgs;
79
- }
80
- export {};
81
- //# sourceMappingURL=command.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"command.d.ts","sourceRoot":"","sources":["../../src/command-line/command.ts"],"names":[],"mappings":"AAAA,OAAO,SAAS,EAAE,EAAE,cAAc,EAAU,mBAAmB,EAAE,MAAM,WAAW,CAAC;AAEnF,OAAO,EAAE,uBAAuB,EAAE,MAAM,sCAAsC,CAAC;AAC/E,OAAO,EAA+B,+BAA+B,EAAE,MAAM,mBAAmB,CAAC;AASjG,OAAO,EAAQ,EAAE,EAAmB,MAAM,mBAAmB,CAAC;AAI9D,OAAO,EAAE,UAAU,EAAE,MAAM,mBAAmB,CAAC;AAG/C,OAAO,EAAE,oBAAoB,EAAE,MAAM,qCAAqC,CAAC;AAE3E,OAAO,EAAE,cAAc,EAAE,MAAM,6BAA6B,CAAC;AAE7D,aAAK,oBAAoB,GAAG,CAAC,GAAG,IAAI,EAAE,GAAG,EAAE,KAAK,GAAG,CAA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