@forge/cli-shared 6.8.0-next.9 → 6.8.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +189 -0
- package/out/config/config-file.d.ts.map +1 -1
- package/out/config/config-file.js +6 -5
- package/out/graphql/graphql-types.d.ts +2332 -152
- package/out/graphql/graphql-types.d.ts.map +1 -1
- package/out/graphql/graphql-types.js +229 -23
- package/out/shared/test.d.ts +3 -1
- package/out/shared/test.d.ts.map +1 -1
- package/out/shared/test.js +11 -5
- package/out/tunnel/tunnel-options.d.ts +1 -0
- package/out/tunnel/tunnel-options.d.ts.map +1 -1
- 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 +6 -5
- package/out/ui/multiple-table-prompt.d.ts.map +1 -1
- package/out/ui/multiple-table-prompt.js +9 -0
- package/out/ui/text.d.ts +73 -0
- package/out/ui/text.d.ts.map +1 -1
- package/out/ui/text.js +88 -12
- package/out/ui/ui.d.ts +2 -2
- package/out/ui/ui.d.ts.map +1 -1
- package/package.json +3 -3
package/out/shared/test.d.ts
CHANGED
|
@@ -7,9 +7,11 @@ declare type TestApp = {
|
|
|
7
7
|
path: string;
|
|
8
8
|
}[];
|
|
9
9
|
};
|
|
10
|
-
export declare function createTestApp({ userCode, packages }: {
|
|
10
|
+
export declare function createTestApp({ userCode, userCodeFilename, packages, withI18nBundle }: {
|
|
11
11
|
userCode: string;
|
|
12
|
+
userCodeFilename?: string;
|
|
12
13
|
packages?: string[];
|
|
14
|
+
withI18nBundle?: boolean;
|
|
13
15
|
}): Promise<TestApp>;
|
|
14
16
|
export {};
|
|
15
17
|
//# sourceMappingURL=test.d.ts.map
|
package/out/shared/test.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"test.d.ts","sourceRoot":"","sources":["../../src/shared/test.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,MAAM,EAAE,MAAM,OAAO,CAAC;AAG/B,wBAAgB,UAAU,CAAC,YAAY,EAAE,OAAO,EAAE,YAAY,EAAE,OAAO,GAAG,MAAM,CAW/E;AAED,aAAK,OAAO,GAAG;IACb,YAAY,EAAE,MAAM,CAAC;IACrB,WAAW,EAAE;QAAE,IAAI,EAAE,MAAM,CAAC;QAAC,IAAI,EAAE,MAAM,CAAA;KAAE,EAAE,CAAC;CAC/C,CAAC;AAEF,wBAAsB,aAAa,CAAC,EAClC,QAAQ,EACR,QAAQ,
|
|
1
|
+
{"version":3,"file":"test.d.ts","sourceRoot":"","sources":["../../src/shared/test.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,MAAM,EAAE,MAAM,OAAO,CAAC;AAG/B,wBAAgB,UAAU,CAAC,YAAY,EAAE,OAAO,EAAE,YAAY,EAAE,OAAO,GAAG,MAAM,CAW/E;AAED,aAAK,OAAO,GAAG;IACb,YAAY,EAAE,MAAM,CAAC;IACrB,WAAW,EAAE;QAAE,IAAI,EAAE,MAAM,CAAC;QAAC,IAAI,EAAE,MAAM,CAAA;KAAE,EAAE,CAAC;CAC/C,CAAC;AAEF,wBAAsB,aAAa,CAAC,EAClC,QAAQ,EACR,gBAA0B,EAC1B,QAAQ,EACR,cAAsB,EACvB,EAAE;IACD,QAAQ,EAAE,MAAM,CAAC;IACjB,gBAAgB,CAAC,EAAE,MAAM,CAAC;IAC1B,QAAQ,CAAC,EAAE,MAAM,EAAE,CAAC;IACpB,cAAc,CAAC,EAAE,OAAO,CAAC;CAC1B,GAAG,OAAO,CAAC,OAAO,CAAC,CA+CnB"}
|
package/out/shared/test.js
CHANGED
|
@@ -19,11 +19,12 @@ function mockLogger(traceEnabled, debugEnabled) {
|
|
|
19
19
|
};
|
|
20
20
|
}
|
|
21
21
|
exports.mockLogger = mockLogger;
|
|
22
|
-
async function createTestApp({ userCode, packages }) {
|
|
22
|
+
async function createTestApp({ userCode, userCodeFilename = 'index', packages, withI18nBundle = false }) {
|
|
23
23
|
const appDirectory = (0, directories_1.tmpDir)();
|
|
24
|
-
const
|
|
25
|
-
|
|
26
|
-
|
|
24
|
+
const userCodeDir = path_1.default.join(appDirectory, 'src', path_1.default.dirname(userCodeFilename));
|
|
25
|
+
const userCodeBaseName = path_1.default.basename(userCodeFilename);
|
|
26
|
+
await (0, fs_extra_1.ensureDir)(userCodeDir);
|
|
27
|
+
const userCodePath = path_1.default.join(userCodeDir, `${userCodeBaseName}.ts`);
|
|
27
28
|
await (0, promises_1.writeFile)(userCodePath, userCode);
|
|
28
29
|
await (0, promises_1.writeFile)(path_1.default.join(appDirectory, 'tsconfig.json'), JSON.stringify({}));
|
|
29
30
|
const allPackages = ['@types/node', ...(packages ?? [])];
|
|
@@ -44,9 +45,14 @@ async function createTestApp({ userCode, packages }) {
|
|
|
44
45
|
await (0, fs_extra_1.ensureDir)(dest);
|
|
45
46
|
await (0, fs_extra_1.copy)(src, dest);
|
|
46
47
|
}
|
|
48
|
+
if (withI18nBundle) {
|
|
49
|
+
const localeFolder = 'locales';
|
|
50
|
+
await (0, fs_extra_1.ensureDir)(path_1.default.join(appDirectory, localeFolder));
|
|
51
|
+
await (0, promises_1.writeFile)(path_1.default.join(appDirectory, localeFolder, 'en-US.json'), JSON.stringify({ title: 'i18n' }));
|
|
52
|
+
}
|
|
47
53
|
return {
|
|
48
54
|
appDirectory,
|
|
49
|
-
entryPoints: [{ name:
|
|
55
|
+
entryPoints: [{ name: userCodeFilename, path: path_1.default.join(userCodeDir, userCodeBaseName) }]
|
|
50
56
|
};
|
|
51
57
|
}
|
|
52
58
|
exports.createTestApp = createTestApp;
|
|
@@ -3,6 +3,7 @@ export declare type TunnelCommandOptions = {
|
|
|
3
3
|
debugFunctionHandlers?: string[];
|
|
4
4
|
debugStartingPort: string;
|
|
5
5
|
environment?: string;
|
|
6
|
+
verify?: boolean;
|
|
6
7
|
};
|
|
7
8
|
export declare type TunnelOptions = Omit<TunnelCommandOptions, 'debugStartingPort'> & {
|
|
8
9
|
debugStartingPort: number;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"tunnel-options.d.ts","sourceRoot":"","sources":["../../src/tunnel/tunnel-options.ts"],"names":[],"mappings":"AAIA,oBAAY,oBAAoB,GAAG;IACjC,KAAK,CAAC,EAAE,OAAO,CAAC;IAChB,qBAAqB,CAAC,EAAE,MAAM,EAAE,CAAC;IACjC,iBAAiB,EAAE,MAAM,CAAC;IAC1B,WAAW,CAAC,EAAE,MAAM,CAAC;
|
|
1
|
+
{"version":3,"file":"tunnel-options.d.ts","sourceRoot":"","sources":["../../src/tunnel/tunnel-options.ts"],"names":[],"mappings":"AAIA,oBAAY,oBAAoB,GAAG;IACjC,KAAK,CAAC,EAAE,OAAO,CAAC;IAChB,qBAAqB,CAAC,EAAE,MAAM,EAAE,CAAC;IACjC,iBAAiB,EAAE,MAAM,CAAC;IAC1B,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,MAAM,CAAC,EAAE,OAAO,CAAC;CAClB,CAAC;AAEF,oBAAY,aAAa,GAAG,IAAI,CAAC,oBAAoB,EAAE,mBAAmB,CAAC,GAAG;IAAE,iBAAiB,EAAE,MAAM,CAAA;CAAE,CAAC;AAE5G,eAAO,MAAM,wBAAwB,OAAO,CAAC;AAC7C,eAAO,MAAM,uBAAuB,QAA8C,CAAC;AACnF,eAAO,MAAM,2BAA2B,EAAE,aAGzC,CAAC"}
|
|
@@ -31,7 +31,7 @@ export declare class CommandLineUI implements UI {
|
|
|
31
31
|
promptForSecret(message: string): Promise<string>;
|
|
32
32
|
promptForList<T extends string>(message: string, choices: T[], config?: {
|
|
33
33
|
format?: (choice: T) => string;
|
|
34
|
-
}): Promise<T>;
|
|
34
|
+
}, pageSize?: number): Promise<T>;
|
|
35
35
|
promptForTable(message: string, infoMessage: string, columns: string[], choices: object[], isBorderless?: boolean): Promise<number[]>;
|
|
36
36
|
promptForSingleChoiceTable(message: string, infoMessage: string, columns: string[], choices: object[]): Promise<number>;
|
|
37
37
|
table<Key extends string>(head: [Key, string][], data: Record<Key, TableCell>[] | undefined | null, { json, emptyMessage, preMessage, postMessage, format, groupRows }?: TableOptions<Key>): void;
|
|
@@ -51,6 +51,6 @@ export declare class CommandLineUI implements UI {
|
|
|
51
51
|
key: string;
|
|
52
52
|
value: string;
|
|
53
53
|
}[], indent?: string, addNewLine?: boolean): string;
|
|
54
|
-
formatYamlProperties(properties: any, key: string): string;
|
|
54
|
+
formatYamlProperties(properties: any, key: string, showMessage?: boolean): string;
|
|
55
55
|
}
|
|
56
56
|
//# sourceMappingURL=command-line-ui.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"command-line-ui.d.ts","sourceRoot":"","sources":["../../src/ui/command-line-ui.ts"],"names":[],"mappings":"AAEA,OAAY,EAAE,GAAG,EAAE,MAAM,KAAK,CAAC;AAQ/B,OAAO,EAAE,SAAS,EAAE,YAAY,EAAE,EAAE,EAAE,MAAM,MAAM,CAAC;AAiBnD,MAAM,WAAW,cAAc;IAC7B,UAAU,EAAE,OAAO,CAAC;IACpB,OAAO,EAAE,MAAM,CAAC;CACjB;AAED,qBAAa,aAAc,YAAW,EAAE;IA4BpC,OAAO,CAAC,QAAQ,CAAC,OAAO;IA3B1B,OAAO,CAAC,QAAQ,CAAC,MAAM,CAAU;IAKjC,OAAO,CAAC,QAAQ,CAAC,OAAO,CAAM;IAE9B,OAAO,CAAC,QAAQ,CAAC,cAAc,CAAwB;IAGvD,OAAO,CAAC,cAAc,CAAS;IAc/B,OAAO,CAAC,oBAAoB,CAAS;gBAGlB,OAAO,EAAE,MAAM,OAAO,EACvC,OAAO,CAAC,EAAE,GAAG,EACb,MAAM,CAAC,EAAE,OAAO;YAUJ,MAAM;IAapB,IAAW,YAAY,IAAI,OAAO,CAEjC;IAED,IAAW,YAAY,IAAI,OAAO,CAEjC;IAEY,eAAe,CAAC,MAAM,EACjC,QAAQ,EAAE,MAAM,OAAO,CAAC,MAAM,CAAC,EAC/B,SAAS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L,eAAe;IAa7B,OAAO,CAAC,wBAAwB;IAKzB,kBAAkB,CAAC,KAAK,EAAE;QAAE,GAAG,EAAE,MAAM,CAAC;QAAC,KAAK,EAAE,MAAM,CAAA;KAAE,EAAE,EAAE,MAAM,CAAC,EAAE,MAAM,EAAE,UAAU,CAAC,EAAE,OAAO,GAAG,MAAM;IAQ1G,oBAAoB,CAAC,UAAU,EAAE,GAAG,EAAE,GAAG,EAAE,MAAM,EAAE,WAAW,UAAO,GAAG,MAAM;CAItF"}
|
|
@@ -163,14 +163,15 @@ class CommandLineUI {
|
|
|
163
163
|
promptForSecret(message) {
|
|
164
164
|
return this.promptForString(message, true);
|
|
165
165
|
}
|
|
166
|
-
async promptForList(message, choices, config) {
|
|
166
|
+
async promptForList(message, choices, config, pageSize) {
|
|
167
167
|
const formattedChoices = config?.format ? choices.map((choice) => config?.format?.(choice)) : choices;
|
|
168
168
|
const { choice } = await this.prompt([
|
|
169
169
|
{
|
|
170
170
|
type: 'list',
|
|
171
171
|
name: 'choice',
|
|
172
172
|
choices: formattedChoices,
|
|
173
|
-
message
|
|
173
|
+
message,
|
|
174
|
+
pageSize
|
|
174
175
|
}
|
|
175
176
|
]);
|
|
176
177
|
const formattedChoice = config?.format ? choices[formattedChoices.indexOf(choice)] : choice;
|
|
@@ -208,7 +209,7 @@ class CommandLineUI {
|
|
|
208
209
|
this.log(JSON.stringify(data, null, 2));
|
|
209
210
|
return;
|
|
210
211
|
}
|
|
211
|
-
if (!data && emptyMessage) {
|
|
212
|
+
if (!data?.length && emptyMessage) {
|
|
212
213
|
this.info(emptyMessage);
|
|
213
214
|
return;
|
|
214
215
|
}
|
|
@@ -354,9 +355,9 @@ class CommandLineUI {
|
|
|
354
355
|
});
|
|
355
356
|
return (0, text_1.itemList)(formattedItems, indent);
|
|
356
357
|
}
|
|
357
|
-
formatYamlProperties(properties, key) {
|
|
358
|
+
formatYamlProperties(properties, key, showMessage = true) {
|
|
358
359
|
const yamlString = yaml_1.default.stringify(properties, undefined, ' ').replaceAll('\n', '\n ');
|
|
359
|
-
return `[${chalk_1.default.cyan(key)}]: is configured with the following properties
|
|
360
|
+
return `[${chalk_1.default.cyan(key)}]: ${showMessage ? 'is configured with the following properties:' : ''}\n ${yamlString}`;
|
|
360
361
|
}
|
|
361
362
|
}
|
|
362
363
|
exports.CommandLineUI = CommandLineUI;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"multiple-table-prompt.d.ts","sourceRoot":"","sources":["../../src/ui/multiple-table-prompt.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,WAAW,EAAE,gBAAgB,EAAE,gBAAgB,EAAE,gBAAgB,EAAE,kBAAkB,EAAE,MAAM,gBAAgB,CAAC;AAEvH,eAAO,MAAM,YAAY,EAAE,gBAM1B,CAAC;AAEF,eAAO,MAAM,cAAc,EAAE,kBAM5B,CAAC;AAEF,qBAAa,yBAA0B,SAAQ,WAAW;IACxD,OAAO,CAAC,eAAe,CAAkC;gBAE7C,SAAS,EAAE,GAAG,EAAE,QAAQ,EAAE,GAAG,EAAE,OAAO,EAAE,GAAG;IAIvD,SAAS,CAAC,cAAc,CAAC,EAAE,OAAO,EAAE,kBAAkB,EAAE,EAAE,gBAAgB,GAAG,IAAI;
|
|
1
|
+
{"version":3,"file":"multiple-table-prompt.d.ts","sourceRoot":"","sources":["../../src/ui/multiple-table-prompt.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,WAAW,EAAE,gBAAgB,EAAE,gBAAgB,EAAE,gBAAgB,EAAE,kBAAkB,EAAE,MAAM,gBAAgB,CAAC;AAEvH,eAAO,MAAM,YAAY,EAAE,gBAM1B,CAAC;AAEF,eAAO,MAAM,cAAc,EAAE,kBAM5B,CAAC;AAEF,qBAAa,yBAA0B,SAAQ,WAAW;IACxD,OAAO,CAAC,eAAe,CAAkC;gBAE7C,SAAS,EAAE,GAAG,EAAE,QAAQ,EAAE,GAAG,EAAE,OAAO,EAAE,GAAG;IAIvD,SAAS,CAAC,cAAc,CAAC,EAAE,OAAO,EAAE,kBAAkB,EAAE,EAAE,gBAAgB,GAAG,IAAI;IAqBjF,OAAO,CAAC,wBAAwB;IAMhC,SAAS,CAAC,YAAY,CAAC,EAAE,OAAO,EAAE,IAAI,EAAE,EAAE,gBAAgB,GAAG,IAAI;IAOjE,SAAS,CAAC,MAAM,CAAC,KAAK,EAAE,gBAAgB,GAAG,IAAI;CAgBhD"}
|
|
@@ -37,6 +37,15 @@ class MultipleChoiceTablePrompt extends table_prompt_1.TablePrompt {
|
|
|
37
37
|
}
|
|
38
38
|
else {
|
|
39
39
|
this.selectedIndexes.add(rowIndex);
|
|
40
|
+
const choice = this.opt.choices.getChoice(rowIndex);
|
|
41
|
+
if (choice?.extra?.autoSelectId) {
|
|
42
|
+
const installationId = this.opt.choices.getChoice(rowIndex).extra.autoSelectId;
|
|
43
|
+
Array.from(this.opt.choices.choices).forEach((choice, index) => {
|
|
44
|
+
if ('value' in choice && choice.value === installationId && !this.selectedIndexes.has(index)) {
|
|
45
|
+
this.selectedIndexes.add(index);
|
|
46
|
+
}
|
|
47
|
+
});
|
|
48
|
+
}
|
|
40
49
|
}
|
|
41
50
|
}
|
|
42
51
|
}
|
package/out/ui/text.d.ts
CHANGED
|
@@ -445,6 +445,7 @@ export declare const Text: {
|
|
|
445
445
|
descriptions: {
|
|
446
446
|
scopes: string;
|
|
447
447
|
egress: string;
|
|
448
|
+
analytics: string;
|
|
448
449
|
policies: string;
|
|
449
450
|
functions: string;
|
|
450
451
|
modules: string;
|
|
@@ -575,6 +576,7 @@ export declare const Text: {
|
|
|
575
576
|
serverSideInstallationError: (message: string) => string;
|
|
576
577
|
noDeploymentFound: (environment: string) => string;
|
|
577
578
|
permissionsDeniedInstructions: (requestId: string, appId: string) => string;
|
|
579
|
+
appendRequestIdToErrorMessage: (message: string | undefined, requestId: string) => string;
|
|
578
580
|
};
|
|
579
581
|
failedAll: (site: URL, environment: string) => string;
|
|
580
582
|
security: {
|
|
@@ -705,6 +707,7 @@ export declare const Text: {
|
|
|
705
707
|
desc: string;
|
|
706
708
|
progressInfo: string;
|
|
707
709
|
done: string;
|
|
710
|
+
confirmOptionalContexts: string;
|
|
708
711
|
};
|
|
709
712
|
info: string;
|
|
710
713
|
done: (product: string, domain: string, environment: string, isMulti: boolean) => string;
|
|
@@ -749,6 +752,76 @@ export declare const Text: {
|
|
|
749
752
|
fixSummary: (numErrors: number, numFixableErrors: number, numFixableWarnings: number) => string;
|
|
750
753
|
warning: (line: number, column: number, message: string, reference: string) => string;
|
|
751
754
|
};
|
|
755
|
+
containers: {
|
|
756
|
+
cmd: {
|
|
757
|
+
desc: string;
|
|
758
|
+
};
|
|
759
|
+
create: {
|
|
760
|
+
cmd: {
|
|
761
|
+
desc: string;
|
|
762
|
+
keyOption: string;
|
|
763
|
+
};
|
|
764
|
+
prompt: {
|
|
765
|
+
overview: string;
|
|
766
|
+
entry: string;
|
|
767
|
+
};
|
|
768
|
+
creatingNewContainer: (key: string) => string;
|
|
769
|
+
start: string;
|
|
770
|
+
success: string;
|
|
771
|
+
createdRepositoryURI: (uri: string) => string;
|
|
772
|
+
};
|
|
773
|
+
list: {
|
|
774
|
+
cmd: {
|
|
775
|
+
desc: string;
|
|
776
|
+
};
|
|
777
|
+
listingContainers: string;
|
|
778
|
+
noContainersFound: string;
|
|
779
|
+
};
|
|
780
|
+
images: {
|
|
781
|
+
cmd: {
|
|
782
|
+
desc: string;
|
|
783
|
+
};
|
|
784
|
+
list: {
|
|
785
|
+
cmd: {
|
|
786
|
+
desc: string;
|
|
787
|
+
keyOption: string;
|
|
788
|
+
};
|
|
789
|
+
prompt: {
|
|
790
|
+
overview: string;
|
|
791
|
+
entry: string;
|
|
792
|
+
};
|
|
793
|
+
listingImages: (key: string) => string;
|
|
794
|
+
noImagesFound: string;
|
|
795
|
+
promptNextPage: string;
|
|
796
|
+
confirmationForNextPage: string;
|
|
797
|
+
};
|
|
798
|
+
};
|
|
799
|
+
login: {
|
|
800
|
+
cmd: {
|
|
801
|
+
desc: string;
|
|
802
|
+
onlyPassword: string;
|
|
803
|
+
};
|
|
804
|
+
truncatedPassword: (password: string) => string;
|
|
805
|
+
};
|
|
806
|
+
delete: {
|
|
807
|
+
cmd: {
|
|
808
|
+
desc: string;
|
|
809
|
+
keyOption: string;
|
|
810
|
+
};
|
|
811
|
+
interactive: {
|
|
812
|
+
overview: string;
|
|
813
|
+
desc: string;
|
|
814
|
+
progressInfo: string;
|
|
815
|
+
noContainersFound: string;
|
|
816
|
+
};
|
|
817
|
+
deletingContainer: (key: string) => string;
|
|
818
|
+
warning: string;
|
|
819
|
+
confirmation: (key: string) => string;
|
|
820
|
+
abortedDeletion: string;
|
|
821
|
+
start: string;
|
|
822
|
+
success: string;
|
|
823
|
+
};
|
|
824
|
+
};
|
|
752
825
|
stub: {
|
|
753
826
|
error: (newName: string, oldName: string) => string;
|
|
754
827
|
};
|
package/out/ui/text.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"text.d.ts","sourceRoot":"","sources":["../../src/ui/text.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,OAAO,EAAE,GAAG,EAAE,MAAM,KAAK,CAAC;AAI1B,OAAO,EAAE,kBAAkB,EAAE,MAAM,0BAA0B,CAAC;AAK9D,MAAM,WAAW,SAAS;IACxB,IAAI,EAAE,MAAM,CAAC;IACb,0BAA0B,CAAC,EAAE,OAAO,CAAC;CACtC;AAoBD,wBAAgB,QAAQ,CAAC,KAAK,EAAE,MAAM,EAAE,EAAE,MAAM,CAAC,EAAE,MAAM,GAAG,MAAM,CAEjE;AAKD,eAAO,MAAM,UAAU,SAAU,MAAM,KAAG,MAAsD,CAAC;AAoDjG,eAAO,MAAM,IAAI;;;;;6BAiBM,MAAM;2BACR,MAAM;6BAGJ,MAAM;+BAEJ,MAAM;;wCAIK,MAAM,UAAU,MAAM;qDAOT,MAAM,sBAAsB,MAAM;;wCAM/C,MAAM,EAAE;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Ae,MAAM,oBAAoB,MAAM,sBAAsB,MAAM,KAAG,MAAM;gCAevF,MAAM,oBAAoB,MAAM,sBAAsB,MAAM,KAAG,MAAM;wBAe7E,MAAM,UAAU,MAAM,WAAW,MAAM,aAAa,MAAM,KAAG,MAAM;;;;;;;;;;;;;;;wCAiBrD,MAAM;;;wCAGN,MAAM;;;;;;;;;;;;;;;;;;;;;;qCAsBX,MAAM;;;;;;;;;;;0CAWC,MAAM;;;;;;;;;;;;;qCAaX,MAAM;;gCAEX,MAAM;;;;;;;yBAQX,MAAM,WAAW,MAAM;;;;qCAMb,MAAM;qCACN,MAAM,gBAAgB,OAAO;;;yCAMzB,MAAM;qCACV,MAAM;;;;;;;;;;;;;;;;+BAwBZ,MAAM,SAAS,MAAM;;;;;;;;;;;;;;;;6CAiBP,MAAM,mBAAmB,MAAM,EAAE;;;;CAUvE,CAAC"}
|
package/out/ui/text.js
CHANGED
|
@@ -88,13 +88,13 @@ exports.Text = {
|
|
|
88
88
|
},
|
|
89
89
|
licenseModesOverrideErrors: {
|
|
90
90
|
prodEnvNotSupported: '--license-modes and --users-with-access options are not supported in production environments',
|
|
91
|
-
empty: '--license-modes option list is empty. Provide a space-separated list of license mode. Supported values are
|
|
92
|
-
invalid: 'Invalid --license-modes option value. Supported values are
|
|
91
|
+
empty: '--license-modes option list is empty. Provide a space-separated list of license mode. Supported values are user-access. \nFor example: install --license-modes user-access --users-with-access aaid1',
|
|
92
|
+
invalid: 'Invalid --license-modes option value. Supported values are user-access',
|
|
93
93
|
userWithAccessRequired: '--users-with-access option is required when specifying --license-modes option'
|
|
94
94
|
},
|
|
95
95
|
userWithAccessOverrideErrors: {
|
|
96
96
|
prodEnvNotSupported: '--license-modes and --users-with-access options are not supported in production environments',
|
|
97
|
-
empty: '--users-with-access option list is empty. Provide a space-separated list of Atlassian Account IDs(aaid). \nFor example: install --license-modes
|
|
97
|
+
empty: '--users-with-access option list is empty. Provide a space-separated list of Atlassian Account IDs(aaid). \nFor example: install --license-modes user-access --users-with-access aaid1 aaid2',
|
|
98
98
|
countSize: (maxSizeOfUsersWithAccess) => `User limit exceeded. The --users-with-access option allows a maximum of ${maxSizeOfUsersWithAccess} users.`,
|
|
99
99
|
licenseModeRequired: '--license-modes option is required when specifying --users-with-access option'
|
|
100
100
|
},
|
|
@@ -117,7 +117,7 @@ exports.Text = {
|
|
|
117
117
|
installationContext: {
|
|
118
118
|
overviewProduct: 'Select the context your app uses.\n',
|
|
119
119
|
promptProduct: 'Select a context:',
|
|
120
|
-
promptOptionalProducts: 'Select
|
|
120
|
+
promptOptionalProducts: 'Select compatible contexts:',
|
|
121
121
|
overviewSite: '\nEnter your site. For example, your-domain.atlassian.net\n',
|
|
122
122
|
overviewWorkspace: '\nEnter your workspace. For example, bitbucket.org/your-workspace\n',
|
|
123
123
|
promptSite: 'Enter the site URL:',
|
|
@@ -500,6 +500,7 @@ What do you like or don't like about Forge? Share your feedback below or press C
|
|
|
500
500
|
desc: `returns the details of two versions of the app for comparison. Details include:\n${itemList([
|
|
501
501
|
'deployment date',
|
|
502
502
|
'egress',
|
|
503
|
+
'analytics',
|
|
503
504
|
'policies',
|
|
504
505
|
'scopes',
|
|
505
506
|
'connect keys',
|
|
@@ -532,6 +533,7 @@ What do you like or don't like about Forge? Share your feedback below or press C
|
|
|
532
533
|
},
|
|
533
534
|
desc: `returns the details of a specific version of the app. Details include:\n${itemList([
|
|
534
535
|
'egress',
|
|
536
|
+
'analytics',
|
|
535
537
|
'policies',
|
|
536
538
|
'scopes',
|
|
537
539
|
'connect keys',
|
|
@@ -562,6 +564,7 @@ What do you like or don't like about Forge? Share your feedback below or press C
|
|
|
562
564
|
descriptions: {
|
|
563
565
|
scopes: 'Context scopes that the app has access to',
|
|
564
566
|
egress: 'Network permissions',
|
|
567
|
+
analytics: 'Analytics',
|
|
565
568
|
policies: 'Content security policies (Custom UI)',
|
|
566
569
|
functions: 'Function modules used by the app',
|
|
567
570
|
modules: 'Modules used by the app (other than functions & remotes)',
|
|
@@ -585,6 +588,7 @@ What do you like or don't like about Forge? Share your feedback below or press C
|
|
|
585
588
|
'version number',
|
|
586
589
|
'deployment date',
|
|
587
590
|
'egress',
|
|
591
|
+
'analytics',
|
|
588
592
|
'policies',
|
|
589
593
|
'scopes',
|
|
590
594
|
'connect keys',
|
|
@@ -677,7 +681,7 @@ What do you like or don't like about Forge? Share your feedback below or press C
|
|
|
677
681
|
}
|
|
678
682
|
},
|
|
679
683
|
crossContext: {
|
|
680
|
-
enableError: `Unable to deploy a cross-context app to an environment with an existing installation in a context that is not the required context.\nRun ${chalk_1.default.bold('forge uninstall')} to uninstall your app from
|
|
684
|
+
enableError: `Unable to deploy a cross-context app to an environment with an existing installation in a context that is not the required context.\nRun ${chalk_1.default.bold('forge uninstall')} to uninstall your app from compatible contexts in this environment before retrying ${chalk_1.default.bold('forge deploy')}.`,
|
|
681
685
|
modifyError: `Unable to modify the required context for an environment with existing installations.\nRun ${chalk_1.default.bold('forge uninstall')} to uninstall your app from all contexts in this environment before retrying ${chalk_1.default.bold('forge deploy')}.`
|
|
682
686
|
}
|
|
683
687
|
},
|
|
@@ -692,16 +696,16 @@ What do you like or don't like about Forge? Share your feedback below or press C
|
|
|
692
696
|
},
|
|
693
697
|
booleanToScope: (isLatest) => (isLatest ? `(Latest)` : `(Out-of-date)`),
|
|
694
698
|
alreadyInstalledInRequiredProduct: (product) => `\nYou have already installed this app into your required context, ${chalk_1.default.bold(product)}.`,
|
|
695
|
-
installingToRequiredProduct: (product) => `\nYour app will be installed into your required context, ${chalk_1.default.bold(product)}. Once this is done, you can install your app into any
|
|
696
|
-
installingToOptionalProduct: (product) => `\nThis app will be installed as
|
|
699
|
+
installingToRequiredProduct: (product) => `\nYour app will be installed into your required context, ${chalk_1.default.bold(product)}. Once this is done, you can install your app into any compatible contexts.\n`,
|
|
700
|
+
installingToOptionalProduct: (product) => `\nThis app will be installed as a compatible context on ${product}.\n`,
|
|
697
701
|
installConfirmation: (product, site) => `Installing your app onto ${product} on ${site}.\n${ctrlC}\n`,
|
|
698
702
|
bannerSite: `\nInstalling your app onto an Atlassian site.\n${ctrlC}\n`,
|
|
699
703
|
bannerWorkspace: `\nInstalling your app onto the selected workspace.\n${ctrlC}\n`,
|
|
700
704
|
optionConfirmScopes: 'skip confirmation of scopes for the app before installing or upgrading the app',
|
|
701
705
|
optionUpgrade: 'upgrade an existing installation',
|
|
702
|
-
optionLicense: 'specify the license value for the app (allowed values: active, inactive, and trial)',
|
|
703
|
-
optionLicenseModes: '
|
|
704
|
-
optionUsersWithAccess: '
|
|
706
|
+
optionLicense: 'specify the license value for the app (allowed values: active, standard, advanced, inactive, and trial)',
|
|
707
|
+
optionLicenseModes: 'specify the list of license mode value for the app (allowed values: user-access)',
|
|
708
|
+
optionUsersWithAccess: 'specify the list of Atlassian Account IDs(aaid) for users who have access to the app',
|
|
705
709
|
listScopes: (scopes) => `Your app will be installed with the following scopes:\n${scopes
|
|
706
710
|
.map(({ name, requiresInteractiveConsent }) => `- ${name}${requiresInteractiveConsent ? ' (requires user consent)' : ''}`)
|
|
707
711
|
.join('\n')}\n`,
|
|
@@ -733,7 +737,8 @@ What do you like or don't like about Forge? Share your feedback below or press C
|
|
|
733
737
|
permissionsDeniedInstructions: (requestId, appId) => `Insufficient permissions to install app (requestId: ${requestId})` +
|
|
734
738
|
'\n\nTo install the app on this site, generate an installation link ' +
|
|
735
739
|
'in the developer console and share it with the site admin: ' +
|
|
736
|
-
`https://developer.atlassian.com/console/myapps/${appId}/distribution
|
|
740
|
+
`https://developer.atlassian.com/console/myapps/${appId}/distribution`,
|
|
741
|
+
appendRequestIdToErrorMessage: (message, requestId) => `${message} For more help on this issue, please reach out to support ${buildTerminalLink('(https://developer.atlassian.com/support)')} and provide them the following request ID: ${requestId}`
|
|
737
742
|
},
|
|
738
743
|
failedAll: (site, environment) => `Your app in ${(0, environment_1.environmentToOption)(environment)} was not installed to any contexts on ${chalk_1.default.bold(site)}.`,
|
|
739
744
|
security: {
|
|
@@ -890,7 +895,8 @@ Debugging in Google Chrome:
|
|
|
890
895
|
interactive: {
|
|
891
896
|
desc: 'Select where to uninstall the app:',
|
|
892
897
|
progressInfo: `To uninstall your app from a site or workspace, select it from the list.\nPress Ctrl+C to cancel.`,
|
|
893
|
-
done: `\n${log_symbols_1.default.success} Apps uninstalled
|
|
898
|
+
done: `\n${log_symbols_1.default.success} Apps uninstalled`,
|
|
899
|
+
confirmOptionalContexts: 'This will uninstall the app from the required context and other compatible contexts in this site. Are you sure you want to continue?'
|
|
894
900
|
},
|
|
895
901
|
info: 'Uninstalling the app from the provided context.',
|
|
896
902
|
done: (product, domain, environment, isMulti) => `${isMulti ? log_symbols_1.default.info : log_symbols_1.default.success} Uninstalled from the ${(0, environment_1.environmentToOption)(environment)} environment in ${product} on ${buildTerminalLink(domain)}.`,
|
|
@@ -947,6 +953,76 @@ Debugging in Google Chrome:
|
|
|
947
953
|
},
|
|
948
954
|
warning: (line, column, message, reference) => getLintMessage(line, column, message, 'warning', log_color_1.LogColor.warn, reference)
|
|
949
955
|
},
|
|
956
|
+
containers: {
|
|
957
|
+
cmd: {
|
|
958
|
+
desc: 'manage containers and container images'
|
|
959
|
+
},
|
|
960
|
+
create: {
|
|
961
|
+
cmd: {
|
|
962
|
+
desc: 'create new container definition',
|
|
963
|
+
keyOption: 'specify the name of the container'
|
|
964
|
+
},
|
|
965
|
+
prompt: {
|
|
966
|
+
overview: 'Create a new container.',
|
|
967
|
+
entry: 'Enter a name for your container:'
|
|
968
|
+
},
|
|
969
|
+
creatingNewContainer: (key) => `Creating new container with key '${key}'.`,
|
|
970
|
+
start: 'Creating container...',
|
|
971
|
+
success: 'Container created.',
|
|
972
|
+
createdRepositoryURI: (uri) => `New repository URI: ${uri}`
|
|
973
|
+
},
|
|
974
|
+
list: {
|
|
975
|
+
cmd: {
|
|
976
|
+
desc: 'list all container definitions'
|
|
977
|
+
},
|
|
978
|
+
listingContainers: 'Listing all app containers.',
|
|
979
|
+
noContainersFound: `No containers found.`
|
|
980
|
+
},
|
|
981
|
+
images: {
|
|
982
|
+
cmd: {
|
|
983
|
+
desc: 'manage container images'
|
|
984
|
+
},
|
|
985
|
+
list: {
|
|
986
|
+
cmd: {
|
|
987
|
+
desc: 'list all images for the container',
|
|
988
|
+
keyOption: 'specify the name of the container'
|
|
989
|
+
},
|
|
990
|
+
prompt: {
|
|
991
|
+
overview: 'List all images for a container.',
|
|
992
|
+
entry: 'Enter the name of the container to list images for:'
|
|
993
|
+
},
|
|
994
|
+
listingImages: (key) => `Listing images for container with key '${key}'.`,
|
|
995
|
+
noImagesFound: `No images found.`,
|
|
996
|
+
promptNextPage: 'Load next page [Y] or [Enter] to exit',
|
|
997
|
+
confirmationForNextPage: 'y'
|
|
998
|
+
}
|
|
999
|
+
},
|
|
1000
|
+
login: {
|
|
1001
|
+
cmd: {
|
|
1002
|
+
desc: 'get login password for the image repository',
|
|
1003
|
+
onlyPassword: 'display only the password'
|
|
1004
|
+
},
|
|
1005
|
+
truncatedPassword: (password) => `${password.substring(0, 12)}...<truncated>`
|
|
1006
|
+
},
|
|
1007
|
+
delete: {
|
|
1008
|
+
cmd: {
|
|
1009
|
+
desc: 'delete container definition along with the associated image repository and all of its images',
|
|
1010
|
+
keyOption: 'specify the name of the container'
|
|
1011
|
+
},
|
|
1012
|
+
interactive: {
|
|
1013
|
+
overview: 'Select which container to delete.',
|
|
1014
|
+
desc: 'Select where to uninstall the app:',
|
|
1015
|
+
progressInfo: `To delete a container, select it from the list.\nPress Ctrl+C to cancel.`,
|
|
1016
|
+
noContainersFound: `This app does not have any containers.\nRun ${chalk_1.default.bold('forge containers create')} to create a container for your app.`
|
|
1017
|
+
},
|
|
1018
|
+
deletingContainer: (key) => `Deleting container definition with key '${key}'.`,
|
|
1019
|
+
warning: 'Deleting container is irreversible and will delete all images associated with it.',
|
|
1020
|
+
confirmation: (key) => `Type the container key [${key}] to confirm deletion:`,
|
|
1021
|
+
abortedDeletion: 'Aborted.',
|
|
1022
|
+
start: 'Deleting container...',
|
|
1023
|
+
success: 'Container deleted.'
|
|
1024
|
+
}
|
|
1025
|
+
},
|
|
950
1026
|
stub: {
|
|
951
1027
|
error: (newName, oldName) => `The ${forge(oldName)} command has been deprecated and replaced by ${forge(newName)}.`
|
|
952
1028
|
},
|
package/out/ui/ui.d.ts
CHANGED
|
@@ -6,7 +6,7 @@ export interface Prompt {
|
|
|
6
6
|
promptForSecret(message: string): Promise<string>;
|
|
7
7
|
promptForList<T extends string>(message: string, choices: T[], config?: {
|
|
8
8
|
format?: (choice: T) => string;
|
|
9
|
-
}): Promise<T>;
|
|
9
|
+
}, pageSize?: number): Promise<T>;
|
|
10
10
|
promptForTable(message: string, infoMessage: string, columns: string[], choices: object[], isBorderless?: boolean): Promise<number[]>;
|
|
11
11
|
promptForSingleChoiceTable(message: string, infoMessage: string, columns: string[], choices: object[]): Promise<number>;
|
|
12
12
|
}
|
|
@@ -33,6 +33,6 @@ export interface UI extends Logger, Prompt {
|
|
|
33
33
|
key: string;
|
|
34
34
|
value: string;
|
|
35
35
|
}[], indent?: string, addNewLine?: boolean): string;
|
|
36
|
-
formatYamlProperties(properties: any, key: string): string;
|
|
36
|
+
formatYamlProperties(properties: any, key: string, showMessage?: boolean): string;
|
|
37
37
|
}
|
|
38
38
|
//# sourceMappingURL=ui.d.ts.map
|
package/out/ui/ui.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ui.d.ts","sourceRoot":"","sources":["../../src/ui/ui.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,UAAU,CAAC;AAClC,OAAO,EAAE,cAAc,EAAE,MAAM,mBAAmB,CAAC;AAEnD,MAAM,WAAW,MAAM;IACrB,OAAO,CAAC,OAAO,EAAE,MAAM,GAAG,OAAO,CAAC,OAAO,CAAC,CAAC;IAC3C,aAAa,CAAC,OAAO,EAAE,MAAM,EAAE,YAAY,CAAC,EAAE,MAAM,GAAG,OAAO,CAAC,MAAM,CAAC,C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AAC,EAAE,YAAY,CAAC,GAAG,CAAC,GAC1B,IAAI,CAAC;IAER,kBAAkB,CAAC,KAAK,EAAE;QAAE,GAAG,EAAE,MAAM,CAAC;QAAC,KAAK,EAAE,MAAM,CAAA;KAAE,EAAE,EAAE,MAAM,CAAC,EAAE,MAAM,EAAE,UAAU,CAAC,EAAE,OAAO,GAAG,MAAM,CAAC;IAC3G,oBAAoB,CAAC,UAAU,EAAE,GAAG,EAAE,GAAG,EAAE,MAAM,EAAE,WAAW,CAAC,EAAE,OAAO,GAAG,MAAM,CAAC;CACnF"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@forge/cli-shared",
|
|
3
|
-
"version": "6.8.0
|
|
3
|
+
"version": "6.8.0",
|
|
4
4
|
"description": "Common functionality for Forge CLI",
|
|
5
5
|
"author": "Atlassian",
|
|
6
6
|
"license": "SEE LICENSE IN LICENSE.txt",
|
|
@@ -12,9 +12,9 @@
|
|
|
12
12
|
"generate-graphql-types": "graphql-codegen --config src/graphql/codegen.yml"
|
|
13
13
|
},
|
|
14
14
|
"dependencies": {
|
|
15
|
-
"@forge/manifest": "
|
|
15
|
+
"@forge/manifest": "9.0.0",
|
|
16
16
|
"@forge/util": "1.4.8",
|
|
17
|
-
"@forge/i18n": "0.0.
|
|
17
|
+
"@forge/i18n": "0.0.5",
|
|
18
18
|
"@sentry/node": "7.106.0",
|
|
19
19
|
"adm-zip": "^0.5.10",
|
|
20
20
|
"array.prototype.flatmap": "^1.3.2",
|