@forge/cli-shared 10.0.0-next.12 → 10.0.0-next.14
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 +12 -0
- package/out/app-logs/graphql-client.d.ts +2 -2
- package/out/app-logs/graphql-client.d.ts.map +1 -1
- package/out/app-logs/graphql-client.js +9 -17
- package/out/app-logs/index.d.ts +2 -2
- package/out/app-logs/index.d.ts.map +1 -1
- package/out/app-logs/index.js +2 -5
- package/out/app-logs/view-logs.d.ts +4 -4
- package/out/app-logs/view-logs.d.ts.map +1 -1
- package/out/app-logs/view-logs.js +8 -12
- package/out/apps/app-config.d.ts +2 -2
- package/out/apps/app-config.d.ts.map +1 -1
- package/out/apps/app-config.js +13 -20
- package/out/apps/create-an-app.d.ts +4 -4
- package/out/apps/create-an-app.d.ts.map +1 -1
- package/out/apps/create-an-app.js +6 -11
- package/out/apps/create-app-graphql-client.d.ts +2 -2
- package/out/apps/create-app-graphql-client.d.ts.map +1 -1
- package/out/apps/create-app-graphql-client.js +9 -14
- package/out/apps/get-app-owner.d.ts +4 -4
- package/out/apps/get-app-owner.d.ts.map +1 -1
- package/out/apps/get-app-owner.js +8 -13
- package/out/apps/index.d.ts +9 -9
- package/out/apps/index.d.ts.map +1 -1
- package/out/apps/index.js +9 -12
- package/out/apps/package-installer.d.ts +1 -1
- package/out/apps/package-installer.d.ts.map +1 -1
- package/out/apps/package-installer.js +9 -14
- package/out/apps/register-app.d.ts +4 -4
- package/out/apps/register-app.d.ts.map +1 -1
- package/out/apps/register-app.js +9 -13
- package/out/apps/sites.js +1 -4
- package/out/apps/template-module.js +27 -33
- package/out/apps/template.d.ts +3 -3
- package/out/apps/template.d.ts.map +1 -1
- package/out/apps/template.js +36 -47
- package/out/ari/ari.js +48 -63
- package/out/ari/index.d.ts +1 -1
- package/out/ari/index.d.ts.map +1 -1
- package/out/ari/index.js +1 -4
- package/out/auth/authenticator.js +2 -6
- package/out/auth/index.d.ts +3 -3
- package/out/auth/index.d.ts.map +1 -1
- package/out/auth/index.js +3 -6
- package/out/auth/instruction.js +3 -6
- package/out/auth/personal/credential-store.d.ts +20 -26
- package/out/auth/personal/credential-store.d.ts.map +1 -1
- package/out/auth/personal/credential-store.js +219 -141
- package/out/auth/personal/index.d.ts +6 -6
- package/out/auth/personal/index.d.ts.map +1 -1
- package/out/auth/personal/index.js +6 -9
- package/out/auth/personal/login.d.ts +3 -3
- package/out/auth/personal/login.d.ts.map +1 -1
- package/out/auth/personal/login.js +1 -5
- package/out/auth/personal/logout.d.ts +1 -1
- package/out/auth/personal/logout.d.ts.map +1 -1
- package/out/auth/personal/logout.js +1 -5
- package/out/auth/personal/me-graphql-client.d.ts +3 -3
- package/out/auth/personal/me-graphql-client.d.ts.map +1 -1
- package/out/auth/personal/me-graphql-client.js +7 -12
- package/out/auth/personal/token-authenticator.d.ts +3 -3
- package/out/auth/personal/token-authenticator.d.ts.map +1 -1
- package/out/auth/personal/token-authenticator.js +10 -14
- package/out/auth/personal/user-repository.d.ts +4 -4
- package/out/auth/personal/user-repository.d.ts.map +1 -1
- package/out/auth/personal/user-repository.js +5 -9
- package/out/cache/cached-conf.d.ts.map +1 -1
- package/out/cache/cached-conf.js +5 -10
- package/out/cache/index.d.ts +1 -1
- package/out/cache/index.d.ts.map +1 -1
- package/out/cache/index.js +1 -4
- package/out/config/config-codec-types.js +1 -2
- package/out/config/config-file-section-reader.d.ts +3 -3
- package/out/config/config-file-section-reader.d.ts.map +1 -1
- package/out/config/config-file-section-reader.js +4 -10
- package/out/config/config-file-section-writer.d.ts +3 -3
- package/out/config/config-file-section-writer.d.ts.map +1 -1
- package/out/config/config-file-section-writer.js +2 -7
- package/out/config/config-file.d.ts +3 -3
- package/out/config/config-file.d.ts.map +1 -1
- package/out/config/config-file.js +40 -49
- package/out/config/config-section.js +4 -11
- package/out/config/config.d.ts +1 -1
- package/out/config/config.d.ts.map +1 -1
- package/out/config/config.js +7 -13
- package/out/config/index.d.ts +6 -6
- package/out/config/index.d.ts.map +1 -1
- package/out/config/index.js +6 -9
- package/out/file-system/archiver.d.ts +2 -2
- package/out/file-system/archiver.d.ts.map +1 -1
- package/out/file-system/archiver.js +20 -29
- package/out/file-system/file-system-reader.d.ts.map +1 -1
- package/out/file-system/file-system-reader.js +21 -26
- package/out/file-system/file-system-writer.js +5 -10
- package/out/file-system/index.d.ts +5 -5
- package/out/file-system/index.d.ts.map +1 -1
- package/out/file-system/index.js +5 -8
- package/out/file-system/util.js +1 -4
- package/out/file-system/zip-accessor.js +3 -8
- package/out/graphql/app-environment-graphql-client.d.ts +2 -2
- package/out/graphql/app-environment-graphql-client.d.ts.map +1 -1
- package/out/graphql/app-environment-graphql-client.js +10 -16
- package/out/graphql/app-oauth-client-id-graphql-client.d.ts +1 -1
- package/out/graphql/app-oauth-client-id-graphql-client.d.ts.map +1 -1
- package/out/graphql/app-oauth-client-id-graphql-client.js +6 -10
- package/out/graphql/debugging-graphql-runner.d.ts +2 -2
- package/out/graphql/debugging-graphql-runner.d.ts.map +1 -1
- package/out/graphql/debugging-graphql-runner.js +5 -10
- package/out/graphql/gateway.js +15 -23
- package/out/graphql/get-mutation-error.js +4 -8
- package/out/graphql/gql/gql.d.ts +82 -82
- package/out/graphql/gql/gql.d.ts.map +1 -1
- package/out/graphql/gql/gql.js +2 -6
- package/out/graphql/gql/graphql.d.ts +4 -0
- package/out/graphql/gql/graphql.d.ts.map +1 -1
- package/out/graphql/gql/graphql.js +83 -88
- package/out/graphql/gql/index.d.ts +1 -1
- package/out/graphql/gql/index.d.ts.map +1 -1
- package/out/graphql/gql/index.js +1 -4
- package/out/graphql/graphql-client.js +1 -2
- package/out/graphql/graphql-domain-types.d.ts +1 -1
- package/out/graphql/graphql-domain-types.d.ts.map +1 -1
- package/out/graphql/graphql-domain-types.js +1 -2
- package/out/graphql/graphql-runtime-enums.js +16 -19
- package/out/graphql/index.d.ts +12 -12
- package/out/graphql/index.d.ts.map +1 -1
- package/out/graphql/index.js +12 -17
- package/out/graphql/minimal-graphql-runner.d.ts +4 -4
- package/out/graphql/minimal-graphql-runner.d.ts.map +1 -1
- package/out/graphql/minimal-graphql-runner.js +31 -40
- package/out/graphql/mutation-aware-graphql-client.d.ts +2 -2
- package/out/graphql/mutation-aware-graphql-client.d.ts.map +1 -1
- package/out/graphql/mutation-aware-graphql-client.js +4 -10
- package/out/graphql/path-based-graphql-client-resolver.d.ts +1 -1
- package/out/graphql/path-based-graphql-client-resolver.d.ts.map +1 -1
- package/out/graphql/path-based-graphql-client-resolver.js +3 -7
- package/out/http-client/feedback-post-client.js +1 -5
- package/out/http-client/file-uploader.d.ts +1 -1
- package/out/http-client/file-uploader.d.ts.map +1 -1
- package/out/http-client/file-uploader.js +11 -18
- package/out/http-client/global-edge-http-client.js +8 -14
- package/out/http-client/index.d.ts +5 -5
- package/out/http-client/index.d.ts.map +1 -1
- package/out/http-client/index.js +5 -8
- package/out/http-client/node-request.js +10 -16
- package/out/http-client/trace.js +1 -4
- package/out/index.d.ts +13 -13
- package/out/index.d.ts.map +1 -1
- package/out/index.js +13 -16
- package/out/service/bridge-script-service.js +5 -9
- package/out/service/i18n-resource-bundling-service.js +24 -30
- package/out/service/iframe-resizer-script-service.js +5 -9
- package/out/service/index.d.ts +5 -5
- package/out/service/index.d.ts.map +1 -1
- package/out/service/index.js +5 -8
- package/out/service/statsig-service.d.ts +1 -1
- package/out/service/statsig-service.d.ts.map +1 -1
- package/out/service/statsig-service.js +9 -15
- package/out/service/supported-products-service.d.ts +2 -2
- package/out/service/supported-products-service.d.ts.map +1 -1
- package/out/service/supported-products-service.js +13 -18
- package/out/shared/assertUnreachable.js +1 -4
- package/out/shared/assistant-cli.d.ts +1 -1
- package/out/shared/assistant-cli.d.ts.map +1 -1
- package/out/shared/assistant-cli.js +15 -24
- package/out/shared/cli-details.js +6 -11
- package/out/shared/developer-console.js +12 -18
- package/out/shared/directories.js +4 -8
- package/out/shared/environment.d.ts +1 -1
- package/out/shared/environment.d.ts.map +1 -1
- package/out/shared/environment.js +19 -25
- package/out/shared/error-handling.d.ts +1 -1
- package/out/shared/error-handling.d.ts.map +1 -1
- package/out/shared/error-handling.js +24 -44
- package/out/shared/forge-cli-attribution.js +6 -11
- package/out/shared/index.d.ts +13 -13
- package/out/shared/index.d.ts.map +1 -1
- package/out/shared/index.js +13 -16
- package/out/shared/installations.js +1 -4
- package/out/shared/pause.js +1 -5
- package/out/shared/product.d.ts.map +1 -1
- package/out/shared/product.js +5 -10
- package/out/shared/read-app-config-files.d.ts +1 -1
- package/out/shared/read-app-config-files.d.ts.map +1 -1
- package/out/shared/read-app-config-files.js +6 -12
- package/out/shared/runner-signals.js +1 -5
- package/out/shared/test.d.ts +1 -1
- package/out/shared/test.d.ts.map +1 -1
- package/out/shared/test.js +24 -29
- package/out/tunnel/docker-compose-lifecycle.d.ts +3 -3
- package/out/tunnel/docker-compose-lifecycle.d.ts.map +1 -1
- package/out/tunnel/docker-compose-lifecycle.js +53 -70
- package/out/tunnel/index.d.ts +2 -2
- package/out/tunnel/index.d.ts.map +1 -1
- package/out/tunnel/index.js +2 -5
- package/out/tunnel/tunnel-options.js +13 -18
- package/out/ui/command-line-ui.d.ts +2 -2
- package/out/ui/command-line-ui.d.ts.map +1 -1
- package/out/ui/command-line-ui.js +53 -58
- package/out/ui/hint-rotation.d.ts +2 -2
- package/out/ui/hint-rotation.d.ts.map +1 -1
- package/out/ui/hint-rotation.js +2 -6
- package/out/ui/index.d.ts +8 -8
- package/out/ui/index.d.ts.map +1 -1
- package/out/ui/index.js +8 -11
- package/out/ui/log-color.js +16 -20
- package/out/ui/log-symbols.js +10 -13
- package/out/ui/logger.js +2 -6
- package/out/ui/multiple-table-prompt.d.ts +1 -1
- package/out/ui/multiple-table-prompt.d.ts.map +1 -1
- package/out/ui/multiple-table-prompt.js +13 -20
- package/out/ui/runtime-log.js +12 -16
- package/out/ui/single-table-prompt.d.ts +1 -1
- package/out/ui/single-table-prompt.d.ts.map +1 -1
- package/out/ui/single-table-prompt.js +12 -19
- package/out/ui/table-prompt.d.ts +1 -1
- package/out/ui/table-prompt.d.ts.map +1 -1
- package/out/ui/table-prompt.js +11 -16
- package/out/ui/table.d.ts.map +1 -1
- package/out/ui/table.js +4 -7
- package/out/ui/text.d.ts +4 -13
- package/out/ui/text.d.ts.map +1 -1
- package/out/ui/text.js +213 -242
- package/out/ui/ui.d.ts +2 -2
- package/out/ui/ui.d.ts.map +1 -1
- package/out/ui/ui.js +1 -2
- package/package.json +2 -2
|
@@ -1,15 +1,8 @@
|
|
|
1
1
|
import * as t from 'io-ts';
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import { Logger } from '../../ui';
|
|
5
|
-
import { UserRepository } from './user-repository';
|
|
2
|
+
import { UserError } from '../../shared/index.js';
|
|
3
|
+
import { UserRepository } from './user-repository.js';
|
|
6
4
|
export declare const EMAIL_KEY = "FORGE_EMAIL";
|
|
7
5
|
export declare const API_TOKEN_KEY = "FORGE_API_TOKEN";
|
|
8
|
-
export interface Keytar {
|
|
9
|
-
getPassword(service: string, account: string): Promise<string | null>;
|
|
10
|
-
setPassword(service: string, account: string, password: string): Promise<void>;
|
|
11
|
-
deletePassword(service: string, account: string): Promise<void>;
|
|
12
|
-
}
|
|
13
6
|
export declare const personalApiCredentialsShape: t.TypeC<{
|
|
14
7
|
email: t.StringC;
|
|
15
8
|
token: t.StringC;
|
|
@@ -24,10 +17,8 @@ export type PersonalApiCredentialsValidated = t.TypeOf<typeof personalApiCredent
|
|
|
24
17
|
export declare class NoTokenInStoreError extends UserError {
|
|
25
18
|
constructor();
|
|
26
19
|
}
|
|
27
|
-
export declare class
|
|
28
|
-
constructor();
|
|
29
|
-
}
|
|
30
|
-
export declare class KeytarAccessError extends UserError {
|
|
20
|
+
export declare class CredentialStoreSecurityError extends UserError {
|
|
21
|
+
constructor(cause?: unknown);
|
|
31
22
|
}
|
|
32
23
|
export interface CredentialGetter {
|
|
33
24
|
getCredentials(): Promise<PersonalApiCredentialsValidated>;
|
|
@@ -36,22 +27,25 @@ export interface CredentialStore extends CredentialGetter {
|
|
|
36
27
|
setCredentials(credentials: PersonalApiCredentialsValidated): Promise<void>;
|
|
37
28
|
deleteCredentials(): Promise<void>;
|
|
38
29
|
}
|
|
39
|
-
export
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
private readonly keytar;
|
|
43
|
-
private readonly cachedConfig;
|
|
30
|
+
export type CredentialStoreCommandRunner = (command: string, args: readonly string[]) => Promise<string>;
|
|
31
|
+
export declare function getCredentialsFilePath(currentPlatform?: NodeJS.Platform, environment?: NodeJS.ProcessEnv, userHome?: string): string;
|
|
32
|
+
export declare class FileCredentialStore implements CredentialStore {
|
|
44
33
|
private readonly userRepository;
|
|
45
|
-
private
|
|
46
|
-
|
|
47
|
-
private
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
34
|
+
private readonly account;
|
|
35
|
+
private readonly credentialsFilePath;
|
|
36
|
+
private readonly currentPlatform;
|
|
37
|
+
private readonly commandRunner;
|
|
38
|
+
private windowsUserSid;
|
|
39
|
+
constructor(userRepository: UserRepository, account: string, credentialsFilePath?: string, currentPlatform?: NodeJS.Platform, commandRunner?: CredentialStoreCommandRunner);
|
|
40
|
+
private getWindowsUserSid;
|
|
41
|
+
private applyWindowsAcl;
|
|
42
|
+
private secureWindowsStorage;
|
|
43
|
+
private securePosixStorage;
|
|
44
|
+
private secureStorage;
|
|
45
|
+
private readCredentialsFile;
|
|
52
46
|
getCredentials(): Promise<PersonalApiCredentialsValidated>;
|
|
53
47
|
setCredentials(credentials: PersonalApiCredentialsValidated): Promise<void>;
|
|
54
48
|
deleteCredentials(): Promise<void>;
|
|
55
49
|
}
|
|
56
|
-
export declare function getCredentialStore(
|
|
50
|
+
export declare function getCredentialStore(userRepository: UserRepository): CredentialStore;
|
|
57
51
|
//# sourceMappingURL=credential-store.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"credential-store.d.ts","sourceRoot":"","sources":["../../../src/auth/personal/credential-store.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"credential-store.d.ts","sourceRoot":"","sources":["../../../src/auth/personal/credential-store.ts"],"names":[],"mappings":"AAMA,OAAO,KAAK,CAAC,MAAM,OAAO,CAAC;AAE3B,OAAO,EAAE,SAAS,EAAE,MAAM,uBAAuB,CAAC;AAElD,OAAO,EAAE,cAAc,EAAE,MAAM,sBAAsB,CAAC;AAEtD,eAAO,MAAM,SAAS,gBAAgB,CAAC;AACvC,eAAO,MAAM,aAAa,oBAAoB,CAAC;AAiB/C,eAAO,MAAM,2BAA2B;;;EAGtC,CAAC;AAEH,eAAO,MAAM,oCAAoC;;;;EAI/C,CAAC;AAEH,MAAM,MAAM,sBAAsB,GAAG,CAAC,CAAC,MAAM,CAAC,OAAO,2BAA2B,CAAC,CAAC;AAClF,MAAM,MAAM,+BAA+B,GAAG,CAAC,CAAC,MAAM,CAAC,OAAO,oCAAoC,CAAC,CAAC;AAEpG,qBAAa,mBAAoB,SAAQ,SAAS;;CAIjD;AAED,qBAAa,4BAA6B,SAAQ,SAAS;gBAC7C,KAAK,CAAC,EAAE,OAAO;CAI5B;AAED,MAAM,WAAW,gBAAgB;IAC/B,cAAc,IAAI,OAAO,CAAC,+BAA+B,CAAC,CAAC;CAC5D;AAED,MAAM,WAAW,eAAgB,SAAQ,gBAAgB;IACvD,cAAc,CAAC,WAAW,EAAE,+BAA+B,GAAG,OAAO,CAAC,IAAI,CAAC,CAAC;IAE5E,iBAAiB,IAAI,OAAO,CAAC,IAAI,CAAC,CAAC;CACpC;AAID,MAAM,MAAM,4BAA4B,GAAG,CAAC,OAAO,EAAE,MAAM,EAAE,IAAI,EAAE,SAAS,MAAM,EAAE,KAAK,OAAO,CAAC,MAAM,CAAC,CAAC;AAezG,wBAAgB,sBAAsB,CACpC,eAAe,kBAAa,EAC5B,WAAW,GAAE,MAAM,CAAC,UAAwB,EAC5C,QAAQ,SAAY,GACnB,MAAM,CAwBR;AAED,qBAAa,mBAAoB,YAAW,eAAe;IAIvD,OAAO,CAAC,QAAQ,CAAC,cAAc;IAC/B,OAAO,CAAC,QAAQ,CAAC,OAAO;IACxB,OAAO,CAAC,QAAQ,CAAC,mBAAmB;IACpC,OAAO,CAAC,QAAQ,CAAC,eAAe;IAChC,OAAO,CAAC,QAAQ,CAAC,aAAa;IAPhC,OAAO,CAAC,cAAc,CAA8B;gBAGjC,cAAc,EAAE,cAAc,EAC9B,OAAO,EAAE,MAAM,EACf,mBAAmB,SAA2B,EAC9C,eAAe,kBAAa,EAC5B,aAAa,GAAE,4BAAwD;YAG5E,iBAAiB;YAWjB,eAAe;YAaf,oBAAoB;YA0BpB,kBAAkB;YAiDlB,aAAa;YAab,mBAAmB;IA4B3B,cAAc,IAAI,OAAO,CAAC,+BAA+B,CAAC;IAkB1D,cAAc,CAAC,WAAW,EAAE,+BAA+B,GAAG,OAAO,CAAC,IAAI,CAAC;IAiB3E,iBAAiB,IAAI,OAAO,CAAC,IAAI,CAAC;CA2BzC;AAED,wBAAgB,kBAAkB,CAAC,cAAc,EAAE,cAAc,GAAG,eAAe,CAElF"}
|
|
@@ -1,191 +1,269 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
const
|
|
12
|
-
const
|
|
13
|
-
const
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
const
|
|
17
|
-
const
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
return require('keytar');
|
|
29
|
-
}
|
|
30
|
-
catch {
|
|
31
|
-
return null;
|
|
32
|
-
}
|
|
33
|
-
}
|
|
34
|
-
exports.personalApiCredentialsShape = t.type({
|
|
1
|
+
import { execFile } from 'child_process';
|
|
2
|
+
import { promises as fs } from 'fs';
|
|
3
|
+
import { homedir, platform } from 'os';
|
|
4
|
+
import path from 'path';
|
|
5
|
+
import { promisify } from 'util';
|
|
6
|
+
import { isLeft } from 'fp-ts/lib/Either.js';
|
|
7
|
+
import * as t from 'io-ts';
|
|
8
|
+
import { getEnvironmentConfig } from '../../graphql/index.js';
|
|
9
|
+
import { UserError } from '../../shared/index.js';
|
|
10
|
+
import { Text } from '../../ui/index.js';
|
|
11
|
+
export const EMAIL_KEY = 'FORGE_EMAIL';
|
|
12
|
+
export const API_TOKEN_KEY = 'FORGE_API_TOKEN';
|
|
13
|
+
const CREDENTIALS_FILE_NAME = 'credentials.json';
|
|
14
|
+
const CREDENTIALS_DIRECTORY_MODE = 0o700;
|
|
15
|
+
const CREDENTIALS_FILE_MODE = 0o600;
|
|
16
|
+
const PERMISSION_BITS_MASK = 0o777;
|
|
17
|
+
const WINDOWS_SYSTEM_SID = 'S-1-5-18';
|
|
18
|
+
const WINDOWS_ADMINISTRATORS_SID = 'S-1-5-32-544';
|
|
19
|
+
var CredentialAccount;
|
|
20
|
+
(function (CredentialAccount) {
|
|
21
|
+
CredentialAccount["DEV"] = "Ecosystem-staging";
|
|
22
|
+
CredentialAccount["STG"] = "Ecosystem-staging";
|
|
23
|
+
CredentialAccount["PROD"] = "Ecosystem";
|
|
24
|
+
CredentialAccount["FEDRAMP_MODERATE_STAGING"] = "Ecosystem-fedm-staging";
|
|
25
|
+
CredentialAccount["FEDRAMP_MODERATE_PROD"] = "Ecosystem-fedm-prod";
|
|
26
|
+
})(CredentialAccount || (CredentialAccount = {}));
|
|
27
|
+
export const personalApiCredentialsShape = t.type({
|
|
35
28
|
email: t.string,
|
|
36
29
|
token: t.string
|
|
37
30
|
});
|
|
38
|
-
|
|
31
|
+
export const personalApiCredentialsValidatedShape = t.type({
|
|
39
32
|
email: t.string,
|
|
40
33
|
token: t.string,
|
|
41
34
|
accountId: t.string
|
|
42
35
|
});
|
|
43
|
-
class NoTokenInStoreError extends
|
|
36
|
+
export class NoTokenInStoreError extends UserError {
|
|
44
37
|
constructor() {
|
|
45
|
-
super(
|
|
38
|
+
super(Text.error.noTokenStored);
|
|
46
39
|
}
|
|
47
40
|
}
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
41
|
+
export class CredentialStoreSecurityError extends UserError {
|
|
42
|
+
constructor(cause) {
|
|
43
|
+
super(Text.error.credentialsFilePermissions);
|
|
44
|
+
this.cause = cause;
|
|
52
45
|
}
|
|
53
46
|
}
|
|
54
|
-
|
|
55
|
-
|
|
47
|
+
const execFileAsync = promisify(execFile);
|
|
48
|
+
const runCredentialStoreCommand = async (command, args) => {
|
|
49
|
+
const { stdout } = await execFileAsync(command, [...args], { encoding: 'utf8', windowsHide: true });
|
|
50
|
+
return stdout;
|
|
51
|
+
};
|
|
52
|
+
const credentialsByAccountShape = t.record(t.string, personalApiCredentialsValidatedShape);
|
|
53
|
+
function isFileNotFoundError(error) {
|
|
54
|
+
return typeof error === 'object' && error !== null && 'code' in error && error.code === 'ENOENT';
|
|
56
55
|
}
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
56
|
+
export function getCredentialsFilePath(currentPlatform = platform(), environment = process.env, userHome = homedir()) {
|
|
57
|
+
const platformPath = currentPlatform === 'win32' ? path.win32 : path.posix;
|
|
58
|
+
let credentialsDirectory;
|
|
59
|
+
switch (currentPlatform) {
|
|
60
|
+
case 'darwin':
|
|
61
|
+
credentialsDirectory = platformPath.join(userHome, 'Library', 'Application Support', 'Atlassian', 'Forge');
|
|
62
|
+
break;
|
|
63
|
+
case 'win32':
|
|
64
|
+
credentialsDirectory = platformPath.join(environment.LOCALAPPDATA || platformPath.join(userHome, 'AppData', 'Local'), 'Atlassian', 'Forge');
|
|
65
|
+
break;
|
|
66
|
+
default:
|
|
67
|
+
credentialsDirectory = platformPath.join(environment.XDG_DATA_HOME || platformPath.join(userHome, '.local', 'share'), 'Atlassian', 'Forge');
|
|
68
|
+
}
|
|
69
|
+
return platformPath.join(credentialsDirectory, CREDENTIALS_FILE_NAME);
|
|
70
|
+
}
|
|
71
|
+
export class FileCredentialStore {
|
|
63
72
|
userRepository;
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
73
|
+
account;
|
|
74
|
+
credentialsFilePath;
|
|
75
|
+
currentPlatform;
|
|
76
|
+
commandRunner;
|
|
77
|
+
windowsUserSid;
|
|
78
|
+
constructor(userRepository, account, credentialsFilePath = getCredentialsFilePath(), currentPlatform = platform(), commandRunner = runCredentialStoreCommand) {
|
|
70
79
|
this.userRepository = userRepository;
|
|
71
|
-
this.
|
|
80
|
+
this.account = account;
|
|
81
|
+
this.credentialsFilePath = credentialsFilePath;
|
|
82
|
+
this.currentPlatform = currentPlatform;
|
|
83
|
+
this.commandRunner = commandRunner;
|
|
72
84
|
}
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
error = ui_1.Text.error.keytarAccessError.linux(message);
|
|
83
|
-
break;
|
|
84
|
-
case 'win32':
|
|
85
|
-
error = ui_1.Text.error.keytarAccessError.windows(message);
|
|
86
|
-
break;
|
|
87
|
-
default:
|
|
88
|
-
error = ui_1.Text.error.keytarAccessError.other(message);
|
|
89
|
-
}
|
|
90
|
-
throw new KeytarAccessError(error);
|
|
85
|
+
async getWindowsUserSid() {
|
|
86
|
+
this.windowsUserSid ??= this.commandRunner('whoami.exe', ['/user', '/fo', 'csv', '/nh']).then((output) => {
|
|
87
|
+
const sid = output.trim().match(/"?(S-\d(?:-\d+)+)"?$/)?.[1];
|
|
88
|
+
if (!sid) {
|
|
89
|
+
throw new Error('Could not determine the current Windows user SID');
|
|
90
|
+
}
|
|
91
|
+
return sid;
|
|
92
|
+
});
|
|
93
|
+
return this.windowsUserSid;
|
|
91
94
|
}
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
95
|
+
async applyWindowsAcl(targetPath, directory) {
|
|
96
|
+
const userSid = await this.getWindowsUserSid();
|
|
97
|
+
const permission = directory ? '(OI)(CI)F' : 'F';
|
|
98
|
+
await this.commandRunner('icacls.exe', [
|
|
99
|
+
targetPath,
|
|
100
|
+
'/inheritance:r',
|
|
101
|
+
'/grant:r',
|
|
102
|
+
`*${userSid}:${permission}`,
|
|
103
|
+
`*${WINDOWS_SYSTEM_SID}:${permission}`,
|
|
104
|
+
`*${WINDOWS_ADMINISTRATORS_SID}:${permission}`
|
|
105
|
+
]);
|
|
106
|
+
}
|
|
107
|
+
async secureWindowsStorage(createFile) {
|
|
108
|
+
let fileExists = true;
|
|
97
109
|
try {
|
|
98
|
-
|
|
110
|
+
await fs.access(this.credentialsFilePath);
|
|
99
111
|
}
|
|
100
|
-
catch {
|
|
101
|
-
|
|
112
|
+
catch (error) {
|
|
113
|
+
if (!isFileNotFoundError(error)) {
|
|
114
|
+
throw error;
|
|
115
|
+
}
|
|
116
|
+
fileExists = false;
|
|
102
117
|
}
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
throw new NoTokenInStoreError();
|
|
118
|
+
if (!fileExists && !createFile) {
|
|
119
|
+
return;
|
|
106
120
|
}
|
|
107
|
-
|
|
121
|
+
const credentialsDirectory = path.dirname(this.credentialsFilePath);
|
|
122
|
+
await fs.mkdir(credentialsDirectory, { recursive: true });
|
|
123
|
+
await this.applyWindowsAcl(credentialsDirectory, true);
|
|
124
|
+
if (!fileExists) {
|
|
125
|
+
await fs.writeFile(this.credentialsFilePath, '', { flag: 'wx' });
|
|
126
|
+
}
|
|
127
|
+
await this.applyWindowsAcl(this.credentialsFilePath, false);
|
|
108
128
|
}
|
|
109
|
-
async
|
|
110
|
-
let
|
|
129
|
+
async securePosixStorage(createFile) {
|
|
130
|
+
let fileExists = true;
|
|
111
131
|
try {
|
|
112
|
-
|
|
132
|
+
await fs.access(this.credentialsFilePath);
|
|
113
133
|
}
|
|
114
|
-
catch (
|
|
115
|
-
|
|
134
|
+
catch (error) {
|
|
135
|
+
if (!isFileNotFoundError(error)) {
|
|
136
|
+
throw error;
|
|
137
|
+
}
|
|
138
|
+
fileExists = false;
|
|
116
139
|
}
|
|
117
|
-
if (!
|
|
118
|
-
return
|
|
140
|
+
if (!fileExists && !createFile) {
|
|
141
|
+
return;
|
|
119
142
|
}
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
143
|
+
const credentialsDirectory = path.dirname(this.credentialsFilePath);
|
|
144
|
+
await fs.mkdir(credentialsDirectory, {
|
|
145
|
+
recursive: true,
|
|
146
|
+
mode: CREDENTIALS_DIRECTORY_MODE
|
|
147
|
+
});
|
|
148
|
+
await fs.chmod(credentialsDirectory, CREDENTIALS_DIRECTORY_MODE);
|
|
149
|
+
const directoryStat = await fs.stat(credentialsDirectory);
|
|
150
|
+
const currentUserId = process.getuid?.();
|
|
151
|
+
if (currentUserId === undefined ||
|
|
152
|
+
!directoryStat.isDirectory() ||
|
|
153
|
+
directoryStat.uid !== currentUserId ||
|
|
154
|
+
(directoryStat.mode & PERMISSION_BITS_MASK) !== CREDENTIALS_DIRECTORY_MODE) {
|
|
155
|
+
throw new Error('The credentials directory is not owned exclusively by the current user');
|
|
156
|
+
}
|
|
157
|
+
if (!fileExists) {
|
|
158
|
+
const file = await fs.open(this.credentialsFilePath, 'wx', CREDENTIALS_FILE_MODE);
|
|
159
|
+
await file.close();
|
|
160
|
+
}
|
|
161
|
+
await fs.chmod(this.credentialsFilePath, CREDENTIALS_FILE_MODE);
|
|
162
|
+
const fileStat = await fs.stat(this.credentialsFilePath);
|
|
163
|
+
if (!fileStat.isFile() ||
|
|
164
|
+
fileStat.uid !== currentUserId ||
|
|
165
|
+
(fileStat.mode & PERMISSION_BITS_MASK) !== CREDENTIALS_FILE_MODE) {
|
|
166
|
+
throw new Error('Could not restrict access to the credentials file');
|
|
127
167
|
}
|
|
128
|
-
return result;
|
|
129
|
-
}
|
|
130
|
-
deleteInsecurePlaintextCredentials() {
|
|
131
|
-
this.cachedConfig.delete(CACHE_CREDENTIALS_KEY);
|
|
132
168
|
}
|
|
133
|
-
async
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
if (this.keytar) {
|
|
138
|
-
await this.setCredentials(plaintextCredentials);
|
|
139
|
-
this.logger.warn(ui_1.Text.warning.plaintextCredentialsMigrated);
|
|
169
|
+
async secureStorage(createFile) {
|
|
170
|
+
try {
|
|
171
|
+
if (this.currentPlatform === 'win32') {
|
|
172
|
+
await this.secureWindowsStorage(createFile);
|
|
140
173
|
}
|
|
141
174
|
else {
|
|
142
|
-
this.
|
|
175
|
+
await this.securePosixStorage(createFile);
|
|
176
|
+
}
|
|
177
|
+
}
|
|
178
|
+
catch (error) {
|
|
179
|
+
await fs.rm(this.credentialsFilePath, { force: true }).catch(() => undefined);
|
|
180
|
+
throw new CredentialStoreSecurityError(error);
|
|
181
|
+
}
|
|
182
|
+
}
|
|
183
|
+
async readCredentialsFile() {
|
|
184
|
+
let contents;
|
|
185
|
+
try {
|
|
186
|
+
await this.secureStorage(false);
|
|
187
|
+
contents = await fs.readFile(this.credentialsFilePath, 'utf8');
|
|
188
|
+
}
|
|
189
|
+
catch (error) {
|
|
190
|
+
if (isFileNotFoundError(error)) {
|
|
191
|
+
return {};
|
|
143
192
|
}
|
|
193
|
+
throw error;
|
|
144
194
|
}
|
|
145
|
-
|
|
195
|
+
let parsed;
|
|
196
|
+
try {
|
|
197
|
+
parsed = JSON.parse(contents);
|
|
198
|
+
}
|
|
199
|
+
catch {
|
|
200
|
+
throw new NoTokenInStoreError();
|
|
201
|
+
}
|
|
202
|
+
const decodeResult = credentialsByAccountShape.decode(parsed);
|
|
203
|
+
if (isLeft(decodeResult)) {
|
|
204
|
+
throw new NoTokenInStoreError();
|
|
205
|
+
}
|
|
206
|
+
return decodeResult.right;
|
|
207
|
+
}
|
|
208
|
+
async getCredentials() {
|
|
209
|
+
if (process.env[API_TOKEN_KEY] && process.env[EMAIL_KEY]) {
|
|
146
210
|
const credentials = {
|
|
147
|
-
email: process.env[
|
|
148
|
-
token: process.env[
|
|
211
|
+
email: process.env[EMAIL_KEY],
|
|
212
|
+
token: process.env[API_TOKEN_KEY]
|
|
149
213
|
};
|
|
150
214
|
const { accountId } = await this.userRepository.getUser(credentials);
|
|
151
|
-
|
|
152
|
-
}
|
|
153
|
-
else if (this.keytar) {
|
|
154
|
-
result = await this.getCredentialsKeytar(this.keytar);
|
|
215
|
+
return { ...credentials, accountId };
|
|
155
216
|
}
|
|
156
|
-
|
|
157
|
-
|
|
217
|
+
const credentials = (await this.readCredentialsFile())[this.account];
|
|
218
|
+
if (!credentials) {
|
|
219
|
+
throw new NoTokenInStoreError();
|
|
158
220
|
}
|
|
159
|
-
|
|
221
|
+
return credentials;
|
|
160
222
|
}
|
|
161
223
|
async setCredentials(credentials) {
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
}
|
|
166
|
-
catch (e) {
|
|
167
|
-
throw new NoKeytarError();
|
|
168
|
-
}
|
|
224
|
+
let credentialsByAccount;
|
|
225
|
+
try {
|
|
226
|
+
credentialsByAccount = await this.readCredentialsFile();
|
|
169
227
|
}
|
|
170
|
-
|
|
171
|
-
|
|
228
|
+
catch (error) {
|
|
229
|
+
if (!(error instanceof NoTokenInStoreError)) {
|
|
230
|
+
throw error;
|
|
231
|
+
}
|
|
232
|
+
credentialsByAccount = {};
|
|
172
233
|
}
|
|
234
|
+
credentialsByAccount[this.account] = credentials;
|
|
235
|
+
await this.secureStorage(true);
|
|
236
|
+
await fs.writeFile(this.credentialsFilePath, `${JSON.stringify(credentialsByAccount, null, 2)}\n`, 'utf8');
|
|
237
|
+
await this.secureStorage(false);
|
|
173
238
|
}
|
|
174
239
|
async deleteCredentials() {
|
|
175
|
-
|
|
240
|
+
let credentialsByAccount;
|
|
241
|
+
try {
|
|
242
|
+
credentialsByAccount = await this.readCredentialsFile();
|
|
243
|
+
}
|
|
244
|
+
catch (error) {
|
|
245
|
+
if (!(error instanceof NoTokenInStoreError)) {
|
|
246
|
+
throw error;
|
|
247
|
+
}
|
|
248
|
+
await fs.rm(this.credentialsFilePath, { force: true });
|
|
249
|
+
return;
|
|
250
|
+
}
|
|
251
|
+
delete credentialsByAccount[this.account];
|
|
252
|
+
if (Object.keys(credentialsByAccount).length === 0) {
|
|
176
253
|
try {
|
|
177
|
-
await
|
|
254
|
+
await fs.unlink(this.credentialsFilePath);
|
|
178
255
|
}
|
|
179
|
-
catch (
|
|
256
|
+
catch (error) {
|
|
257
|
+
if (!isFileNotFoundError(error)) {
|
|
258
|
+
throw error;
|
|
259
|
+
}
|
|
180
260
|
}
|
|
261
|
+
return;
|
|
181
262
|
}
|
|
182
|
-
this.
|
|
263
|
+
await fs.writeFile(this.credentialsFilePath, `${JSON.stringify(credentialsByAccount, null, 2)}\n`, 'utf8');
|
|
264
|
+
await this.secureStorage(false);
|
|
183
265
|
}
|
|
184
266
|
}
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
const keytar = getKeytar();
|
|
188
|
-
const cachedConfig = cache_1.CachedConf.getCache(cache_1.CONFIG_PROJECT_NAME);
|
|
189
|
-
const instructionsUrl = (0, instruction_1.getInstructionsUrl)();
|
|
190
|
-
return new CredentialStoreImpl(logger, instructionsUrl, keytar, cachedConfig, userRepository);
|
|
267
|
+
export function getCredentialStore(userRepository) {
|
|
268
|
+
return new FileCredentialStore(userRepository, getEnvironmentConfig(CredentialAccount));
|
|
191
269
|
}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
export * from './credential-store';
|
|
2
|
-
export * from './login';
|
|
3
|
-
export * from './logout';
|
|
4
|
-
export * from './me-graphql-client';
|
|
5
|
-
export * from './token-authenticator';
|
|
6
|
-
export * from './user-repository';
|
|
1
|
+
export * from './credential-store.js';
|
|
2
|
+
export * from './login.js';
|
|
3
|
+
export * from './logout.js';
|
|
4
|
+
export * from './me-graphql-client.js';
|
|
5
|
+
export * from './token-authenticator.js';
|
|
6
|
+
export * from './user-repository.js';
|
|
7
7
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/auth/personal/index.ts"],"names":[],"mappings":"AAEA,cAAc,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/auth/personal/index.ts"],"names":[],"mappings":"AAEA,cAAc,uBAAuB,CAAC;AACtC,cAAc,YAAY,CAAC;AAC3B,cAAc,aAAa,CAAC;AAC5B,cAAc,wBAAwB,CAAC;AACvC,cAAc,0BAA0B,CAAC;AACzC,cAAc,sBAAsB,CAAC"}
|
|
@@ -1,9 +1,6 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
tslib_1.__exportStar(require("./me-graphql-client"), exports);
|
|
8
|
-
tslib_1.__exportStar(require("./token-authenticator"), exports);
|
|
9
|
-
tslib_1.__exportStar(require("./user-repository"), exports);
|
|
1
|
+
export * from './credential-store.js';
|
|
2
|
+
export * from './login.js';
|
|
3
|
+
export * from './logout.js';
|
|
4
|
+
export * from './me-graphql-client.js';
|
|
5
|
+
export * from './token-authenticator.js';
|
|
6
|
+
export * from './user-repository.js';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { User } from '../../graphql';
|
|
2
|
-
import { UserRepository } from '../../auth';
|
|
3
|
-
import { CredentialStore, PersonalApiCredentials } from './credential-store';
|
|
1
|
+
import { User } from '../../graphql/index.js';
|
|
2
|
+
import { UserRepository } from '../../auth/index.js';
|
|
3
|
+
import { CredentialStore, PersonalApiCredentials } from './credential-store.js';
|
|
4
4
|
export declare class LoginCommand {
|
|
5
5
|
private readonly userRepository;
|
|
6
6
|
private readonly store;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"login.d.ts","sourceRoot":"","sources":["../../../src/auth/personal/login.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"login.d.ts","sourceRoot":"","sources":["../../../src/auth/personal/login.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAE,MAAM,wBAAwB,CAAC;AAE9C,OAAO,EAAE,cAAc,EAAE,MAAM,qBAAqB,CAAC;AAErD,OAAO,EAAE,eAAe,EAAE,sBAAsB,EAAE,MAAM,uBAAuB,CAAC;AAEhF,qBAAa,YAAY;IAErB,OAAO,CAAC,QAAQ,CAAC,cAAc;IAC/B,OAAO,CAAC,QAAQ,CAAC,KAAK;gBADL,cAAc,EAAE,cAAc,EAC9B,KAAK,EAAE,eAAe;IAG5B,OAAO,CAAC,WAAW,EAAE,sBAAsB,GAAG,OAAO,CAAC,IAAI,CAAC;CAOzE"}
|
|
@@ -1,7 +1,4 @@
|
|
|
1
|
-
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.LoginCommand = void 0;
|
|
4
|
-
class LoginCommand {
|
|
1
|
+
export class LoginCommand {
|
|
5
2
|
userRepository;
|
|
6
3
|
store;
|
|
7
4
|
constructor(userRepository, store) {
|
|
@@ -14,4 +11,3 @@ class LoginCommand {
|
|
|
14
11
|
return user;
|
|
15
12
|
}
|
|
16
13
|
}
|
|
17
|
-
exports.LoginCommand = LoginCommand;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"logout.d.ts","sourceRoot":"","sources":["../../../src/auth/personal/logout.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"logout.d.ts","sourceRoot":"","sources":["../../../src/auth/personal/logout.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAE,MAAM,uBAAuB,CAAC;AAExD,qBAAa,aAAa;IACZ,OAAO,CAAC,QAAQ,CAAC,KAAK;gBAAL,KAAK,EAAE,eAAe;IAE5C,OAAO,IAAI,OAAO,CAAC,IAAI,CAAC;CAGhC"}
|
|
@@ -1,7 +1,4 @@
|
|
|
1
|
-
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.LogoutCommand = void 0;
|
|
4
|
-
class LogoutCommand {
|
|
1
|
+
export class LogoutCommand {
|
|
5
2
|
store;
|
|
6
3
|
constructor(store) {
|
|
7
4
|
this.store = store;
|
|
@@ -10,4 +7,3 @@ class LogoutCommand {
|
|
|
10
7
|
return this.store.deleteCredentials();
|
|
11
8
|
}
|
|
12
9
|
}
|
|
13
|
-
exports.LogoutCommand = LogoutCommand;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { GraphQLClient, User } from '../../graphql';
|
|
2
|
-
import { UserError } from '../../shared';
|
|
3
|
-
import { Logger } from '../../ui';
|
|
1
|
+
import { GraphQLClient, User } from '../../graphql/index.js';
|
|
2
|
+
import { UserError } from '../../shared/index.js';
|
|
3
|
+
import { Logger } from '../../ui/index.js';
|
|
4
4
|
export declare class UserNotFoundError extends UserError {
|
|
5
5
|
}
|
|
6
6
|
export declare class MeGraphqlClient {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"me-graphql-client.d.ts","sourceRoot":"","sources":["../../../src/auth/personal/me-graphql-client.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,IAAI,EAAW,MAAM,
|
|
1
|
+
{"version":3,"file":"me-graphql-client.d.ts","sourceRoot":"","sources":["../../../src/auth/personal/me-graphql-client.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,IAAI,EAAW,MAAM,wBAAwB,CAAC;AACtE,OAAO,EAAE,SAAS,EAAE,MAAM,uBAAuB,CAAC;AAClD,OAAO,EAAgB,MAAM,EAAE,MAAM,mBAAmB,CAAC;AAEzD,qBAAa,iBAAkB,SAAQ,SAAS;CAAG;AAEnD,qBAAa,eAAe;IAExB,OAAO,CAAC,QAAQ,CAAC,aAAa;IAC9B,OAAO,CAAC,QAAQ,CAAC,MAAM;gBADN,aAAa,EAAE,aAAa,EAC5B,MAAM,EAAE,MAAM;IAGpB,OAAO,IAAI,OAAO,CAAC,IAAI,CAAC;CAyBtC"}
|