@forge/cli 0.0.0-experimental-c3effe3 → 0.0.0-experimental-820808c
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 +21 -7
- package/npm-shrinkwrap.json +111 -5108
- package/out/analytics-client/analytics-client.d.ts +0 -24
- package/out/analytics-client/analytics-client.d.ts.map +1 -1
- package/out/analytics-client/analytics-client.js +0 -115
- package/out/analytics-client/analytics-message-handler.d.ts +1 -5
- package/out/analytics-client/analytics-message-handler.d.ts.map +1 -1
- package/out/analytics-client/analytics-message-handler.js +2 -30
- package/out/autocomplete/autocomplete-config.json +2 -242
- package/out/bin/cli.d.ts +0 -1
- package/out/bin/cli.d.ts.map +1 -1
- package/out/bin/cli.js +1 -4
- package/out/bin/postinstall.d.ts +0 -1
- package/out/bin/postinstall.js +1 -22
- package/out/storage/local-file-storage.d.ts +0 -2
- package/out/storage/local-file-storage.d.ts.map +1 -1
- package/out/storage/local-file-storage.js +1 -9
- package/package.json +3 -44
- package/out/autocomplete/index.d.ts +0 -5
- package/out/autocomplete/index.d.ts.map +0 -1
- package/out/autocomplete/index.js +0 -40
- package/out/autocomplete/types.d.ts +0 -14
- package/out/autocomplete/types.d.ts.map +0 -1
- package/out/autocomplete/types.js +0 -2
- package/out/autocomplete/util.d.ts +0 -6
- package/out/autocomplete/util.d.ts.map +0 -1
- package/out/autocomplete/util.js +0 -13
- package/out/command-line/anon-user-id.d.ts +0 -3
- package/out/command-line/anon-user-id.d.ts.map +0 -1
- package/out/command-line/anon-user-id.js +0 -17
- package/out/command-line/command.d.ts +0 -81
- package/out/command-line/command.d.ts.map +0 -1
- package/out/command-line/command.js +0 -382
- package/out/command-line/controller/assertUnreachable.d.ts +0 -2
- package/out/command-line/controller/assertUnreachable.d.ts.map +0 -1
- package/out/command-line/controller/assertUnreachable.js +0 -7
- package/out/command-line/controller/autocomplete-controller.d.ts +0 -12
- package/out/command-line/controller/autocomplete-controller.d.ts.map +0 -1
- package/out/command-line/controller/autocomplete-controller.js +0 -54
- package/out/command-line/controller/deploy-controller.d.ts +0 -43
- package/out/command-line/controller/deploy-controller.d.ts.map +0 -1
- package/out/command-line/controller/deploy-controller.js +0 -139
- package/out/command-line/controller/feedback-controller.d.ts +0 -9
- package/out/command-line/controller/feedback-controller.d.ts.map +0 -1
- package/out/command-line/controller/feedback-controller.js +0 -19
- package/out/command-line/controller/getNodeVersion.d.ts +0 -2
- package/out/command-line/controller/getNodeVersion.d.ts.map +0 -1
- package/out/command-line/controller/getNodeVersion.js +0 -7
- package/out/command-line/controller/install-controller.d.ts +0 -35
- package/out/command-line/controller/install-controller.d.ts.map +0 -1
- package/out/command-line/controller/install-controller.js +0 -154
- package/out/command-line/controller/lint-controller.d.ts +0 -9
- package/out/command-line/controller/lint-controller.d.ts.map +0 -1
- package/out/command-line/controller/lint-controller.js +0 -20
- package/out/command-line/controller/pre-command-controller.d.ts +0 -25
- package/out/command-line/controller/pre-command-controller.d.ts.map +0 -1
- package/out/command-line/controller/pre-command-controller.js +0 -57
- package/out/command-line/controller/prerequisites-controller.d.ts +0 -11
- package/out/command-line/controller/prerequisites-controller.d.ts.map +0 -1
- package/out/command-line/controller/prerequisites-controller.js +0 -34
- package/out/command-line/controller/settings-controller.d.ts +0 -19
- package/out/command-line/controller/settings-controller.d.ts.map +0 -1
- package/out/command-line/controller/settings-controller.js +0 -48
- package/out/command-line/controller/stubController.d.ts +0 -9
- package/out/command-line/controller/stubController.d.ts.map +0 -1
- package/out/command-line/controller/stubController.js +0 -15
- package/out/command-line/controller/tunnel-controller.d.ts +0 -14
- package/out/command-line/controller/tunnel-controller.d.ts.map +0 -1
- package/out/command-line/controller/tunnel-controller.js +0 -43
- package/out/command-line/dependency-injection.d.ts +0 -69
- package/out/command-line/dependency-injection.d.ts.map +0 -1
- package/out/command-line/dependency-injection.js +0 -188
- package/out/command-line/environment.d.ts +0 -2
- package/out/command-line/environment.d.ts.map +0 -1
- package/out/command-line/environment.js +0 -15
- package/out/command-line/errors.d.ts +0 -6
- package/out/command-line/errors.d.ts.map +0 -1
- package/out/command-line/errors.js +0 -12
- package/out/command-line/index.d.ts +0 -5
- package/out/command-line/index.d.ts.map +0 -1
- package/out/command-line/index.js +0 -66
- package/out/command-line/register-app-commands.d.ts +0 -10
- package/out/command-line/register-app-commands.d.ts.map +0 -1
- package/out/command-line/register-app-commands.js +0 -128
- package/out/command-line/register-authentication-command.d.ts +0 -16
- package/out/command-line/register-authentication-command.d.ts.map +0 -1
- package/out/command-line/register-authentication-command.js +0 -92
- package/out/command-line/register-autocomplete-commands.d.ts +0 -3
- package/out/command-line/register-autocomplete-commands.d.ts.map +0 -1
- package/out/command-line/register-autocomplete-commands.js +0 -13
- package/out/command-line/register-deployment-commands.d.ts +0 -22
- package/out/command-line/register-deployment-commands.d.ts.map +0 -1
- package/out/command-line/register-deployment-commands.js +0 -15
- package/out/command-line/register-environment-variables-commands.d.ts +0 -3
- package/out/command-line/register-environment-variables-commands.d.ts.map +0 -1
- package/out/command-line/register-environment-variables-commands.js +0 -99
- package/out/command-line/register-feedback-commands.d.ts +0 -3
- package/out/command-line/register-feedback-commands.d.ts.map +0 -1
- package/out/command-line/register-feedback-commands.js +0 -31
- package/out/command-line/register-installation-commands.d.ts +0 -6
- package/out/command-line/register-installation-commands.d.ts.map +0 -1
- package/out/command-line/register-installation-commands.js +0 -140
- package/out/command-line/register-lint-command.d.ts +0 -8
- package/out/command-line/register-lint-command.d.ts.map +0 -1
- package/out/command-line/register-lint-command.js +0 -15
- package/out/command-line/register-log-commands.d.ts +0 -4
- package/out/command-line/register-log-commands.d.ts.map +0 -1
- package/out/command-line/register-log-commands.js +0 -138
- package/out/command-line/register-providers-commands.d.ts +0 -3
- package/out/command-line/register-providers-commands.d.ts.map +0 -1
- package/out/command-line/register-providers-commands.js +0 -43
- package/out/command-line/register-settings-commands.d.ts +0 -3
- package/out/command-line/register-settings-commands.d.ts.map +0 -1
- package/out/command-line/register-settings-commands.js +0 -37
- package/out/command-line/register-tunnel-commands.d.ts +0 -3
- package/out/command-line/register-tunnel-commands.d.ts.map +0 -1
- package/out/command-line/register-tunnel-commands.js +0 -14
- package/out/command-line/register-webtrigger-commands.d.ts +0 -3
- package/out/command-line/register-webtrigger-commands.d.ts.map +0 -1
- package/out/command-line/register-webtrigger-commands.js +0 -55
- package/out/command-line/unique-machine-id.d.ts +0 -3
- package/out/command-line/unique-machine-id.d.ts.map +0 -1
- package/out/command-line/unique-machine-id.js +0 -18
- package/out/command-line/version-info.d.ts +0 -8
- package/out/command-line/version-info.d.ts.map +0 -1
- package/out/command-line/version-info.js +0 -34
- package/out/command-line/view/analytics-settings-view.d.ts +0 -7
- package/out/command-line/view/analytics-settings-view.d.ts.map +0 -1
- package/out/command-line/view/analytics-settings-view.js +0 -18
- package/out/command-line/view/deploy-view.d.ts +0 -21
- package/out/command-line/view/deploy-view.d.ts.map +0 -1
- package/out/command-line/view/deploy-view.js +0 -58
- package/out/command-line/view/install-view.d.ts +0 -18
- package/out/command-line/view/install-view.d.ts.map +0 -1
- package/out/command-line/view/install-view.js +0 -55
- package/out/command-line/view/lint-view.d.ts +0 -12
- package/out/command-line/view/lint-view.d.ts.map +0 -1
- package/out/command-line/view/lint-view.js +0 -31
- package/out/command-line/view/lite-lint-view.d.ts +0 -10
- package/out/command-line/view/lite-lint-view.d.ts.map +0 -1
- package/out/command-line/view/lite-lint-view.js +0 -18
- package/out/command-line/view/settings-view.d.ts +0 -8
- package/out/command-line/view/settings-view.d.ts.map +0 -1
- package/out/command-line/view/settings-view.js +0 -21
- package/out/command-line/view/tunnel-view.d.ts +0 -18
- package/out/command-line/view/tunnel-view.d.ts.map +0 -1
- package/out/command-line/view/tunnel-view.js +0 -89
- package/out/deploy/deployer/deploy-monitor-graphql-client.d.ts +0 -24
- package/out/deploy/deployer/deploy-monitor-graphql-client.d.ts.map +0 -1
- package/out/deploy/deployer/deploy-monitor-graphql-client.js +0 -57
- package/out/deploy/deployer/deployer.d.ts +0 -31
- package/out/deploy/deployer/deployer.d.ts.map +0 -1
- package/out/deploy/deployer/deployer.js +0 -154
- package/out/deploy/deployer/index.d.ts +0 -4
- package/out/deploy/deployer/index.d.ts.map +0 -1
- package/out/deploy/deployer/index.js +0 -6
- package/out/deploy/deployer/trigger-deploy-graphql-client.d.ts +0 -19
- package/out/deploy/deployer/trigger-deploy-graphql-client.d.ts.map +0 -1
- package/out/deploy/deployer/trigger-deploy-graphql-client.js +0 -45
- package/out/deploy/index.d.ts +0 -5
- package/out/deploy/index.d.ts.map +0 -1
- package/out/deploy/index.js +0 -7
- package/out/deploy/package-upload-deploy.d.ts +0 -18
- package/out/deploy/package-upload-deploy.d.ts.map +0 -1
- package/out/deploy/package-upload-deploy.js +0 -28
- package/out/deploy/packager/archiver.d.ts +0 -24
- package/out/deploy/packager/archiver.d.ts.map +0 -1
- package/out/deploy/packager/archiver.js +0 -62
- package/out/deploy/packager/index.d.ts +0 -3
- package/out/deploy/packager/index.d.ts.map +0 -1
- package/out/deploy/packager/index.js +0 -5
- package/out/deploy/packager/packager.d.ts +0 -35
- package/out/deploy/packager/packager.d.ts.map +0 -1
- package/out/deploy/packager/packager.js +0 -61
- package/out/deploy/uploader/artifact-graphql-client.d.ts +0 -26
- package/out/deploy/uploader/artifact-graphql-client.d.ts.map +0 -1
- package/out/deploy/uploader/artifact-graphql-client.js +0 -92
- package/out/deploy/uploader/index.d.ts +0 -3
- package/out/deploy/uploader/index.d.ts.map +0 -1
- package/out/deploy/uploader/index.js +0 -5
- package/out/deploy/uploader/uploader.d.ts +0 -19
- package/out/deploy/uploader/uploader.d.ts.map +0 -1
- package/out/deploy/uploader/uploader.js +0 -43
- package/out/environment-variables/delete-environment-variable.d.ts +0 -18
- package/out/environment-variables/delete-environment-variable.d.ts.map +0 -1
- package/out/environment-variables/delete-environment-variable.js +0 -14
- package/out/environment-variables/graphql-client.d.ts +0 -16
- package/out/environment-variables/graphql-client.d.ts.map +0 -1
- package/out/environment-variables/graphql-client.js +0 -105
- package/out/environment-variables/list-environment-variables.d.ts +0 -22
- package/out/environment-variables/list-environment-variables.d.ts.map +0 -1
- package/out/environment-variables/list-environment-variables.js +0 -14
- package/out/environment-variables/set-environment-variable.d.ts +0 -20
- package/out/environment-variables/set-environment-variable.d.ts.map +0 -1
- package/out/environment-variables/set-environment-variable.js +0 -14
- package/out/installations/graphql-client.d.ts +0 -60
- package/out/installations/graphql-client.d.ts.map +0 -1
- package/out/installations/graphql-client.js +0 -408
- package/out/installations/install-app-site.d.ts +0 -21
- package/out/installations/install-app-site.d.ts.map +0 -1
- package/out/installations/install-app-site.js +0 -19
- package/out/installations/shared.d.ts +0 -5
- package/out/installations/shared.d.ts.map +0 -1
- package/out/installations/shared.js +0 -19
- package/out/installations/uninstall-app.d.ts +0 -25
- package/out/installations/uninstall-app.d.ts.map +0 -1
- package/out/installations/uninstall-app.js +0 -43
- package/out/migration-keys/graphql-client.d.ts +0 -8
- package/out/migration-keys/graphql-client.d.ts.map +0 -1
- package/out/migration-keys/graphql-client.js +0 -55
- package/out/providers/configure-provider.d.ts +0 -19
- package/out/providers/configure-provider.d.ts.map +0 -1
- package/out/providers/configure-provider.js +0 -14
- package/out/providers/graphql-client.d.ts +0 -12
- package/out/providers/graphql-client.d.ts.map +0 -1
- package/out/providers/graphql-client.js +0 -47
- package/out/service/cached-config-service.d.ts +0 -8
- package/out/service/cached-config-service.d.ts.map +0 -1
- package/out/service/cached-config-service.js +0 -16
- package/out/service/command-suggestion-service.d.ts +0 -4
- package/out/service/command-suggestion-service.d.ts.map +0 -1
- package/out/service/command-suggestion-service.js +0 -17
- package/out/service/docker-service.d.ts +0 -24
- package/out/service/docker-service.d.ts.map +0 -1
- package/out/service/docker-service.js +0 -71
- package/out/service/installation-service.d.ts +0 -51
- package/out/service/installation-service.d.ts.map +0 -1
- package/out/service/installation-service.js +0 -89
- package/out/service/lint-service.d.ts +0 -23
- package/out/service/lint-service.d.ts.map +0 -1
- package/out/service/lint-service.js +0 -39
- package/out/service/lite-lint-service.d.ts +0 -10
- package/out/service/lite-lint-service.d.ts.map +0 -1
- package/out/service/lite-lint-service.js +0 -27
- package/out/service/migration-keys-service.d.ts +0 -19
- package/out/service/migration-keys-service.d.ts.map +0 -1
- package/out/service/migration-keys-service.js +0 -14
- package/out/service/port-finding-service.d.ts +0 -12
- package/out/service/port-finding-service.d.ts.map +0 -1
- package/out/service/port-finding-service.js +0 -34
- package/out/service/resource-packaging-service.d.ts +0 -46
- package/out/service/resource-packaging-service.d.ts.map +0 -1
- package/out/service/resource-packaging-service.js +0 -128
- package/out/service/resources-uploader-service.d.ts +0 -16
- package/out/service/resources-uploader-service.d.ts.map +0 -1
- package/out/service/resources-uploader-service.js +0 -34
- package/out/service/tunnel-analytics-service.d.ts +0 -11
- package/out/service/tunnel-analytics-service.d.ts.map +0 -1
- package/out/service/tunnel-analytics-service.js +0 -24
- package/out/service/tunnel-service.d.ts +0 -49
- package/out/service/tunnel-service.d.ts.map +0 -1
- package/out/service/tunnel-service.js +0 -190
- package/out/webtrigger/get-webtrigger-url.d.ts +0 -27
- package/out/webtrigger/get-webtrigger-url.d.ts.map +0 -1
- package/out/webtrigger/get-webtrigger-url.js +0 -26
- package/out/webtrigger/graphql-client.d.ts +0 -14
- package/out/webtrigger/graphql-client.d.ts.map +0 -1
- package/out/webtrigger/graphql-client.js +0 -52
- package/out/workers/analytics-message-worker.d.ts +0 -12
- package/out/workers/analytics-message-worker.d.ts.map +0 -1
- package/out/workers/analytics-message-worker.js +0 -29
- package/out/workers/forge-cli-workers.d.ts +0 -2
- package/out/workers/forge-cli-workers.d.ts.map +0 -1
- package/out/workers/forge-cli-workers.js +0 -21
- package/out/workers/tunnel-clean-up-worker.d.ts +0 -8
- package/out/workers/tunnel-clean-up-worker.d.ts.map +0 -1
- package/out/workers/tunnel-clean-up-worker.js +0 -31
- package/out/workers/version-check-worker.d.ts +0 -8
- package/out/workers/version-check-worker.d.ts.map +0 -1
- package/out/workers/version-check-worker.js +0 -20
- package/out/workers/worker-info.d.ts +0 -8
- package/out/workers/worker-info.d.ts.map +0 -1
- package/out/workers/worker-info.js +0 -14
- package/out/workers/worker.d.ts +0 -6
- package/out/workers/worker.d.ts.map +0 -1
- package/out/workers/worker.js +0 -7
- package/out/workers/workers-starter.d.ts +0 -5
- package/out/workers/workers-starter.d.ts.map +0 -1
- 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
|
-
{"version":3,"file":"analytics-client.d.ts","sourceRoot":"","sources":["../../src/analytics-client/analytics-client.ts"],"names":[],"mappings":"
|
|
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:
|
|
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,
|
|
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(
|
|
13
|
-
this.
|
|
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
|
-
|
|
3
|
-
|
|
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
package/out/bin/cli.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"cli.d.ts","sourceRoot":"","sources":["../../src/bin/cli.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"cli.d.ts","sourceRoot":"","sources":["../../src/bin/cli.ts"],"names":[],"mappings":""}
|
package/out/bin/cli.js
CHANGED
package/out/bin/postinstall.d.ts
CHANGED
package/out/bin/postinstall.js
CHANGED
|
@@ -1,23 +1,2 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
|
|
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');
|
|
@@ -6,9 +6,7 @@ export interface Storage {
|
|
|
6
6
|
getAnalyticsEvent(file: string): Promise<AnalyticsMessage | undefined>;
|
|
7
7
|
}
|
|
8
8
|
export declare class LocalFileStorage implements Storage {
|
|
9
|
-
private static STORAGE_PATHS;
|
|
10
9
|
private static FOLDER;
|
|
11
|
-
constructor();
|
|
12
10
|
addAnalyticsEvent(message: AnalyticsMessage): void;
|
|
13
11
|
getAnalyticsEvent(file: string): Promise<AnalyticsMessage | undefined>;
|
|
14
12
|
getAnalytics(): string[];
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"local-file-storage.d.ts","sourceRoot":"","sources":["../../src/storage/local-file-storage.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,gBAAgB,EAAE,MAAM,+CAA+C,CAAC;
|
|
1
|
+
{"version":3,"file":"local-file-storage.d.ts","sourceRoot":"","sources":["../../src/storage/local-file-storage.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,gBAAgB,EAAE,MAAM,+CAA+C,CAAC;AAIjF,MAAM,WAAW,OAAO;IACtB,iBAAiB,CAAC,OAAO,EAAE,gBAAgB,GAAG,IAAI,CAAC;IACnD,oBAAoB,CAAC,IAAI,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC,CAAC;IAClD,YAAY,IAAI,MAAM,EAAE,CAAC;IACzB,iBAAiB,CAAC,IAAI,EAAE,MAAM,GAAG,OAAO,CAAC,gBAAgB,GAAG,SAAS,CAAC,CAAC;CACxE;AAGD,qBAAa,gBAAiB,YAAW,OAAO;IAC9C,OAAO,CAAC,MAAM,CAAC,MAAM,CAAM;IAE3B,iBAAiB,CAAC,OAAO,EAAE,gBAAgB,GAAG,IAAI;IAQ5C,iBAAiB,CAAC,IAAI,EAAE,MAAM,GAAG,OAAO,CAAC,gBAAgB,GAAG,SAAS,CAAC;IAgB5E,YAAY,IAAI,MAAM,EAAE;IASlB,oBAAoB,CAAC,IAAI,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC;CAOxD"}
|
|
@@ -4,14 +4,7 @@ exports.LocalFileStorage = void 0;
|
|
|
4
4
|
const tslib_1 = require("tslib");
|
|
5
5
|
const path_1 = tslib_1.__importDefault(require("path"));
|
|
6
6
|
const fs = tslib_1.__importStar(require("fs"));
|
|
7
|
-
const env_paths_1 = tslib_1.__importDefault(require("env-paths"));
|
|
8
|
-
const mkdirp_1 = tslib_1.__importDefault(require("mkdirp"));
|
|
9
7
|
class LocalFileStorage {
|
|
10
|
-
constructor() {
|
|
11
|
-
if (!fs.existsSync(LocalFileStorage.FOLDER)) {
|
|
12
|
-
mkdirp_1.default.sync(LocalFileStorage.FOLDER);
|
|
13
|
-
}
|
|
14
|
-
}
|
|
15
8
|
addAnalyticsEvent(message) {
|
|
16
9
|
try {
|
|
17
10
|
fs.writeFileSync(path_1.default.join(LocalFileStorage.FOLDER, `${message.id}.json`), JSON.stringify(message));
|
|
@@ -49,5 +42,4 @@ class LocalFileStorage {
|
|
|
49
42
|
}
|
|
50
43
|
}
|
|
51
44
|
exports.LocalFileStorage = LocalFileStorage;
|
|
52
|
-
LocalFileStorage.
|
|
53
|
-
LocalFileStorage.FOLDER = LocalFileStorage.STORAGE_PATHS.data;
|
|
45
|
+
LocalFileStorage.FOLDER = '';
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@forge/cli",
|
|
3
|
-
"version": "0.0.0-experimental-
|
|
3
|
+
"version": "0.0.0-experimental-820808c",
|
|
4
4
|
"description": "A command line interface for managing Atlassian-hosted apps",
|
|
5
5
|
"author": "Atlassian",
|
|
6
6
|
"license": "UNLICENSED",
|
|
@@ -14,62 +14,21 @@
|
|
|
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
|
|
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-c3effe3",
|
|
22
|
-
"@forge/cli-shared": "0.0.0-experimental-c3effe3",
|
|
23
|
-
"@forge/lint": "0.0.0-experimental-c3effe3",
|
|
24
|
-
"@forge/manifest": "0.0.0-experimental-c3effe3",
|
|
25
|
-
"@forge/util": "1.2.0",
|
|
26
|
-
"ajv": "^6.12.5",
|
|
27
|
-
"archiver": "^5.2.0",
|
|
28
|
-
"case": "^1.6.2",
|
|
29
|
-
"cheerio": "^0.22.0",
|
|
30
|
-
"cli-table3": "^0.6.1",
|
|
31
|
-
"command-exists": "^1.2.8",
|
|
32
|
-
"commander": "^7.0.0",
|
|
33
|
-
"cross-spawn": "^7.0.1",
|
|
34
|
-
"dayjs": "^1.9.7",
|
|
35
|
-
"didyoumean": "^1.2.1",
|
|
36
|
-
"env-paths": "^2.2.0",
|
|
37
|
-
"fs-extra": "^8.1.0",
|
|
38
|
-
"hidefile": "^3.0.0",
|
|
39
|
-
"latest-version": "^5.1.0",
|
|
40
|
-
"lodash": "^4.17.20",
|
|
41
|
-
"mkdirp": "^1.0.3",
|
|
42
|
-
"node-fetch": "2.6.1",
|
|
43
|
-
"node-machine-id": "^1.1.12",
|
|
44
|
-
"omelette": "^0.4.15-1",
|
|
45
|
-
"ora": "^4.0.3",
|
|
46
|
-
"portfinder": "^1.0.25",
|
|
47
|
-
"sanitize-filename": "^1.6.3",
|
|
48
|
-
"semver": "^6.3.0",
|
|
49
21
|
"tmp": "^0.1.0",
|
|
50
|
-
"tslib": "^1.11.0"
|
|
51
|
-
"uuid": "^3.4.0"
|
|
22
|
+
"tslib": "^1.11.0"
|
|
52
23
|
},
|
|
53
24
|
"devDependencies": {
|
|
54
|
-
"@types/archiver": "^5.1.0",
|
|
55
|
-
"@types/cheerio": "^0.22.21",
|
|
56
|
-
"@types/command-exists": "^1.2.0",
|
|
57
|
-
"@types/cross-spawn": "^6.0.1",
|
|
58
|
-
"@types/didyoumean": "^1.2.0",
|
|
59
|
-
"@types/fs-extra": "^8.0.1",
|
|
60
|
-
"@types/hidefile": "^3.0.0",
|
|
61
25
|
"@types/inquirer": "^6.5.0",
|
|
62
26
|
"@types/jest": "^26.0.0",
|
|
63
27
|
"@types/js-yaml": "^3.12.2",
|
|
64
28
|
"@types/minimatch": "^3.0.3",
|
|
65
|
-
"@types/mkdirp": "^1.0.0",
|
|
66
29
|
"@types/node": "^12.12.63",
|
|
67
|
-
"@types/node-fetch": "^2.5.7",
|
|
68
|
-
"@types/omelette": "^0.4.1",
|
|
69
|
-
"@types/semver": "^6.0.1",
|
|
70
30
|
"@types/tmp": "^0.1.0",
|
|
71
31
|
"@types/unzipper": "^0.10.1",
|
|
72
|
-
"@types/uuid": "^3.4.7",
|
|
73
32
|
"@types/webpack": "^5.28.0",
|
|
74
33
|
"jest-fixtures": "^0.6.0",
|
|
75
34
|
"memfs": "^3.4.1"
|
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
import omelette from 'omelette';
|
|
2
|
-
import { AutocompleteConfig } from './types';
|
|
3
|
-
export declare const processAutocompleteFactory: (autocompleteConfig: AutocompleteConfig) => (_: any, { line, reply }: any) => void;
|
|
4
|
-
export declare const autocomplete: omelette.Instance;
|
|
5
|
-
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/autocomplete/index.ts"],"names":[],"mappings":"AAAA,OAAO,QAAQ,MAAM,UAAU,CAAC;AAEhC,OAAO,EAAE,kBAAkB,EAAE,MAAM,SAAS,CAAC;AAM7C,eAAO,MAAM,0BAA0B,uBAAwB,kBAAkB,SAC/C,GAAG,mBAAmB,GAAG,SAuC1D,CAAC;AAEF,eAAO,MAAM,YAAY,mBAAsD,CAAC"}
|