@forge/cli-shared 6.6.1-next.9 → 6.6.2-next.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 +147 -0
- package/out/graphql/graphql-types.d.ts +1620 -347
- package/out/graphql/graphql-types.d.ts.map +1 -1
- package/out/graphql/graphql-types.js +142 -41
- package/out/service/supported-products-service.d.ts +3 -3
- package/out/service/supported-products-service.d.ts.map +1 -1
- package/out/service/supported-products-service.js +30 -15
- package/out/shared/error-handling.d.ts +3 -0
- package/out/shared/error-handling.d.ts.map +1 -1
- package/out/shared/error-handling.js +7 -1
- package/out/shared/product.d.ts +1 -1
- package/out/shared/product.d.ts.map +1 -1
- package/out/shared/product.js +5 -5
- package/out/ui/command-line-ui.d.ts +2 -4
- package/out/ui/command-line-ui.d.ts.map +1 -1
- package/out/ui/command-line-ui.js +6 -22
- package/out/ui/table-prompt.d.ts +2 -0
- package/out/ui/table-prompt.d.ts.map +1 -1
- package/out/ui/table-prompt.js +23 -2
- package/out/ui/text.d.ts +6 -3
- package/out/ui/text.d.ts.map +1 -1
- package/out/ui/text.js +16 -10
- package/out/ui/ui.d.ts +2 -4
- package/out/ui/ui.d.ts.map +1 -1
- package/package.json +9 -6
|
@@ -20,10 +20,10 @@ declare class SupportedProductEntry {
|
|
|
20
20
|
}
|
|
21
21
|
declare function resolveEnabledProducts(statsigService: StatsigService): Promise<SupportedProductEntry[]>;
|
|
22
22
|
export declare class SupportedProductsService {
|
|
23
|
-
private
|
|
24
|
-
constructor(
|
|
23
|
+
private supportedProductEntriesHolder;
|
|
24
|
+
constructor(supportedProductEntries?: SupportedProductEntry[]);
|
|
25
25
|
initializeWithSupportedProducts(statsigService: StatsigService): Promise<void>;
|
|
26
|
-
private
|
|
26
|
+
private getFilteredSupportedProducts;
|
|
27
27
|
getSupportedProducts(): SupportedProduct[];
|
|
28
28
|
getSupportedSecondaryProductsForXPA(requiredProducts: string[]): SupportedProduct[];
|
|
29
29
|
validateSupportedProduct(productNameInput: string): SupportedProduct;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"supported-products-service.d.ts","sourceRoot":"","sources":["../../src/service/supported-products-service.ts"],"names":[],"mappings":";AAAA,OAAO,EAAE,cAAc,EAAE,MAAM,mBAAmB,CAAC;AACnD,OAAO,EAAE,GAAG,EAAE,MAAM,KAAK,CAAC;AAC1B,OAAO,EAAE,kBAAkB,EAAuC,MAAM,WAAW,CAAC;AAKpF,oBAAY,gBAAgB,GAAG,MAAM,GAAG,YAAY,GAAG,SAAS,GAAG,gBAAgB,GAAG,OAAO,GAAG,WAAW,CAAC;AA8C5G,aAAK,WAAW,GAAG,OAAO,GAAG,WAAW,CAAC;AAEzC,oBAAY,iBAAiB,GAAG;IAC9B,IAAI,EAAE,gBAAgB,CAAC;IACvB,WAAW,EAAE,WAAW,CAAC;IACzB,OAAO,CAAC,EAAE;QACR,2BAA2B,CAAC,EAAE,OAAO,CAAC;QACtC,sBAAsB,CAAC,EAAE,CAAC,cAAc,EAAE,cAAc,KAAK,OAAO,CAAC,OAAO,CAAC,CAAC;KAC/E,CAAC;CACH,CAAC;AAEF,cAAM,qBAAqB;IAEhB,WAAW,EAAE,gBAAgB;IAC7B,WAAW,EAAE,WAAW;IACxB,2BAA2B,EAAE,OAAO;gBAFpC,WAAW,EAAE,gBAAgB,EAC7B,WAAW,EAAE,WAAW,EACxB,2BAA2B,EAAE,OAAO;CAE9C;AAED,iBAAe,sBAAsB,CAAC,cAAc,EAAE,cAAc,GAAG,OAAO,CAAC,qBAAqB,EAAE,CAAC,CAgBtG;
|
|
1
|
+
{"version":3,"file":"supported-products-service.d.ts","sourceRoot":"","sources":["../../src/service/supported-products-service.ts"],"names":[],"mappings":";AAAA,OAAO,EAAE,cAAc,EAAE,MAAM,mBAAmB,CAAC;AACnD,OAAO,EAAE,GAAG,EAAE,MAAM,KAAK,CAAC;AAC1B,OAAO,EAAE,kBAAkB,EAAuC,MAAM,WA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D,CAAC;AAGF,eAAO,MAAM,iBAAiB;;CAE7B,CAAC"}
|
|
@@ -68,29 +68,44 @@ async function resolveEnabledProducts(statsigService) {
|
|
|
68
68
|
return new SupportedProductEntry(pd.name, pd.productType, pd.special?.supportedByCrossProductApps ?? false);
|
|
69
69
|
});
|
|
70
70
|
}
|
|
71
|
-
class
|
|
72
|
-
|
|
73
|
-
constructor(
|
|
74
|
-
this.
|
|
71
|
+
class SupportedProductEntriesHolder {
|
|
72
|
+
value;
|
|
73
|
+
constructor(value) {
|
|
74
|
+
this.value = value;
|
|
75
75
|
}
|
|
76
|
-
async
|
|
77
|
-
if (this.
|
|
78
|
-
throw new Error('SupportedProductsService
|
|
76
|
+
async initialize(valueProvider) {
|
|
77
|
+
if (this.value) {
|
|
78
|
+
throw new Error('SupportedProductsService was already initialized - is initialization called multiple times?');
|
|
79
79
|
}
|
|
80
|
-
this.
|
|
80
|
+
this.value = await valueProvider();
|
|
81
81
|
}
|
|
82
|
-
|
|
83
|
-
if (!this.
|
|
84
|
-
throw new Error('SupportedProductsService is not initialized
|
|
82
|
+
get() {
|
|
83
|
+
if (!this.value) {
|
|
84
|
+
throw new Error('SupportedProductsService is not initialized - are you calling it from some constructor?');
|
|
85
85
|
}
|
|
86
|
-
return this.
|
|
86
|
+
return this.value;
|
|
87
|
+
}
|
|
88
|
+
}
|
|
89
|
+
class SupportedProductsService {
|
|
90
|
+
supportedProductEntriesHolder;
|
|
91
|
+
constructor(supportedProductEntries) {
|
|
92
|
+
this.supportedProductEntriesHolder = new SupportedProductEntriesHolder(supportedProductEntries);
|
|
93
|
+
}
|
|
94
|
+
async initializeWithSupportedProducts(statsigService) {
|
|
95
|
+
await this.supportedProductEntriesHolder.initialize(async () => await resolveEnabledProducts(statsigService));
|
|
96
|
+
}
|
|
97
|
+
getFilteredSupportedProducts(filter) {
|
|
98
|
+
return this.supportedProductEntriesHolder
|
|
99
|
+
.get()
|
|
100
|
+
.filter((p) => filter(p))
|
|
101
|
+
.map((p) => p.productName);
|
|
87
102
|
}
|
|
88
103
|
getSupportedProducts() {
|
|
89
|
-
return this.
|
|
104
|
+
return this.supportedProductEntriesHolder.get().map((p) => p.productName);
|
|
90
105
|
}
|
|
91
106
|
getSupportedSecondaryProductsForXPA(requiredProducts) {
|
|
92
107
|
const requiredProductsNames = requiredProducts.map((p) => (0, shared_1.productDisplayName)(p));
|
|
93
|
-
return this.
|
|
108
|
+
return this.getFilteredSupportedProducts((p) => p.supportedByCrossProductApps && !requiredProductsNames.includes(p.productName));
|
|
94
109
|
}
|
|
95
110
|
validateSupportedProduct(productNameInput) {
|
|
96
111
|
const productName = (0, shared_1.productDisplayName)(productNameInput);
|
|
@@ -103,7 +118,7 @@ class SupportedProductsService {
|
|
|
103
118
|
}
|
|
104
119
|
}
|
|
105
120
|
isWorkspaceProduct(product) {
|
|
106
|
-
return this.
|
|
121
|
+
return this.getFilteredSupportedProducts((p) => p.productType === 'workspace').includes((0, shared_1.productDisplayName)(product));
|
|
107
122
|
}
|
|
108
123
|
validateSite(site, product) {
|
|
109
124
|
const trySites = [site, `https://${site}`];
|
|
@@ -40,4 +40,7 @@ export declare class UIPromptError extends BaseError {
|
|
|
40
40
|
constructor(message?: string, isTtyError?: boolean);
|
|
41
41
|
isUserError(): boolean;
|
|
42
42
|
}
|
|
43
|
+
export declare class PartialInstallationError extends UserError {
|
|
44
|
+
constructor(message?: string);
|
|
45
|
+
}
|
|
43
46
|
//# sourceMappingURL=error-handling.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"error-handling.d.ts","sourceRoot":"","sources":["../../src/shared/error-handling.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,OAAO,CAAC;AAI/B,oBAAY,cAAc,GAAG,MAAM,CAAC,MAAM,EAAE,MAAM,GAAG,MAAM,EAAE,GAAG,OAAO,GAAG,SAAS,CAAC,GAAG;IACrF,WAAW,CAAC,EAAE,OAAO,CAAC;IACtB,SAAS,CA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AK1C,CAAC;AAMF,eAAO,MAAM,aAAa,EAAE,CAAC,KAAK,EAAE,OAAO,KAAK,OAAO,CAAC,KAAK,IAAI,KAIhE,CAAC;AAEF,qBAAa,eAAgB,SAAQ,SAAS;CAAG;AAEjD,qBAAa,cAAe,SAAQ,SAAS;CAAG;AAEhD,MAAM,WAAW,kBAAkB;IACjC,gBAAgB,EAAE,IAAI,CAAC;IACvB,IAAI,EAAE,MAAM,CAAC;IACb,UAAU,EAAE,cAAc,CAAC;CAC5B;AAED,qBAAa,uBAAwB,SAAQ,SAAS;CAAG;AAEzD,qBAAa,aAAc,SAAQ,SAAS;IAGxC,OAAO,CAAC,QAAQ,CAAC,UAAU;gBAD3B,OAAO,CAAC,EAAE,MAAM,EACC,UAAU,GAAE,OAAe;IAKvC,WAAW;CAGnB;AAUD,qBAAa,wBAAyB,SAAQ,SAAS;gBAMzC,OAAO,CAAC,EAAE,MAAM;CAG7B"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.UIPromptError = exports.ApplicationCompileError = exports.BundlerTSError = exports.ValidationError = exports.assertIsError = exports.wrapError = exports.exitOnError = exports.HiddenError = exports.UserError = exports.BaseError = exports.getErrorAttributes = exports.isUserError = void 0;
|
|
3
|
+
exports.PartialInstallationError = exports.UIPromptError = exports.ApplicationCompileError = exports.BundlerTSError = exports.ValidationError = exports.assertIsError = exports.wrapError = exports.exitOnError = exports.HiddenError = exports.UserError = exports.BaseError = exports.getErrorAttributes = exports.isUserError = void 0;
|
|
4
4
|
const tslib_1 = require("tslib");
|
|
5
5
|
const ui_1 = require("../ui");
|
|
6
6
|
const Sentry = tslib_1.__importStar(require("@sentry/node"));
|
|
@@ -121,3 +121,9 @@ class UIPromptError extends BaseError {
|
|
|
121
121
|
}
|
|
122
122
|
}
|
|
123
123
|
exports.UIPromptError = UIPromptError;
|
|
124
|
+
class PartialInstallationError extends UserError {
|
|
125
|
+
constructor(message) {
|
|
126
|
+
super(message);
|
|
127
|
+
}
|
|
128
|
+
}
|
|
129
|
+
exports.PartialInstallationError = PartialInstallationError;
|
package/out/shared/product.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
export declare type ProductDisplayName = string;
|
|
2
|
-
export declare function productsDisplayName(
|
|
2
|
+
export declare function productsDisplayName(requiredResourceOwner: string, optionalResourceOwners?: string[]): string;
|
|
3
3
|
export declare function productDisplayName(ariResourceOwnerOrUserProvidedProductName: string): ProductDisplayName;
|
|
4
4
|
export declare function ariResourceOwner(productDisplayName: string): string;
|
|
5
5
|
//# sourceMappingURL=product.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"product.d.ts","sourceRoot":"","sources":["../../src/shared/product.ts"],"names":[],"mappings":"AAeA,oBAAY,kBAAkB,GAAG,MAAM,CAAC;AAiBxC,wBAAgB,mBAAmB,CAAC,
|
|
1
|
+
{"version":3,"file":"product.d.ts","sourceRoot":"","sources":["../../src/shared/product.ts"],"names":[],"mappings":"AAeA,oBAAY,kBAAkB,GAAG,MAAM,CAAC;AAiBxC,wBAAgB,mBAAmB,CAAC,qBAAqB,EAAE,MAAM,EAAE,sBAAsB,GAAE,MAAM,EAAO,GAAG,MAAM,CAOhH;AAED,wBAAgB,kBAAkB,CAAC,yCAAyC,EAAE,MAAM,GAAG,kBAAkB,CAGxG;AAED,wBAAgB,gBAAgB,CAAC,kBAAkB,EAAE,MAAM,GAAG,MAAM,CAEnE"}
|
package/out/shared/product.js
CHANGED
|
@@ -10,12 +10,12 @@ const PRODUCT_DISPLAY_NAME_TO_RESOURCE_OWNER = Object.entries(RESOURCE_OWNER_TO_
|
|
|
10
10
|
acc[value] = key;
|
|
11
11
|
return acc;
|
|
12
12
|
}, {});
|
|
13
|
-
function productsDisplayName(
|
|
14
|
-
if (
|
|
15
|
-
return productDisplayName(
|
|
13
|
+
function productsDisplayName(requiredResourceOwner, optionalResourceOwners = []) {
|
|
14
|
+
if (optionalResourceOwners.length === 0) {
|
|
15
|
+
return productDisplayName(requiredResourceOwner);
|
|
16
16
|
}
|
|
17
|
-
const
|
|
18
|
-
return [
|
|
17
|
+
const requiredProduct = `${productDisplayName(requiredResourceOwner)} (Required)`;
|
|
18
|
+
return [requiredProduct, ...optionalResourceOwners.map(productDisplayName)].join(', ');
|
|
19
19
|
}
|
|
20
20
|
exports.productsDisplayName = productsDisplayName;
|
|
21
21
|
function productDisplayName(ariResourceOwnerOrUserProvidedProductName) {
|
|
@@ -32,10 +32,7 @@ export declare class CommandLineUI implements UI {
|
|
|
32
32
|
promptForList<T extends string>(message: string, choices: T[], config?: {
|
|
33
33
|
format?: (choice: T) => string;
|
|
34
34
|
}): Promise<T>;
|
|
35
|
-
|
|
36
|
-
format?: (choice: T) => string;
|
|
37
|
-
}): Promise<T[]>;
|
|
38
|
-
promptForTable(message: string, infoMessage: string, columns: string[], choices: object[]): Promise<number[]>;
|
|
35
|
+
promptForTable(message: string, infoMessage: string, columns: string[], choices: object[], isBorderless?: boolean): Promise<number[]>;
|
|
39
36
|
promptForSingleChoiceTable(message: string, infoMessage: string, columns: string[], choices: object[]): Promise<number>;
|
|
40
37
|
table<Key extends string>(head: [Key, string][], data: Record<Key, TableCell>[] | undefined | null, { json, emptyMessage, preMessage, postMessage, format, groupRows }?: TableOptions<Key>): void;
|
|
41
38
|
private formatTableValue;
|
|
@@ -47,6 +44,7 @@ export declare class CommandLineUI implements UI {
|
|
|
47
44
|
private stopProgressSpinner;
|
|
48
45
|
private replaceStartTextOnSuccess;
|
|
49
46
|
private stopWaitSpinner;
|
|
47
|
+
clearSpinner(): void;
|
|
50
48
|
private promptForString;
|
|
51
49
|
private registerCustomUIElements;
|
|
52
50
|
}
|
|
@@ -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,EA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AAM,EAAE,CAAC;IAeP,0BAA0B,CACrC,OAAO,EAAE,MAAM,EACf,WAAW,EAAE,MAAM,EACnB,OAAO,EAAE,MAAM,EAAE,EACjB,OAAO,EAAE,MAAM,EAAE,GAChB,OAAO,CAAC,MAAM,CAAC;IAeX,KAAK,CAAC,GAAG,SAAS,MAAM,EAC7B,IAAI,EAAE,CAAC,GAAG,EAAE,MAAM,CAAC,EAAE,EACrB,IAAI,EAAE,MAAM,CAAC,GAAG,EAAE,SAAS,CAAC,EAAE,GAAG,SAAS,GAAG,IAAI,EACjD,EAAE,IAAI,EAAE,YAAY,EAAE,UAAU,EAAE,WAAW,EAAE,MAAM,EAAE,SAAS,EAAE,GAAE,YAAY,CAAC,GAAG,CAAM,GACzF,IAAI;IAsBP,OAAO,CAAC,gBAAgB;IAYxB,OAAO,CAAC,kBAAkB;IAkB1B,OAAO,CAAC,QAAQ;IAwChB,OAAO,CAAC,GAAG;IAqBX,OAAO,CAAC,UAAU;IAQlB,OAAO,CAAC,QAAQ;IAQhB,OAAO,CAAC,mBAAmB;IAe3B,OAAO,CAAC,yBAAyB;IAQjC,OAAO,CAAC,eAAe;IAahB,YAAY;YAIL,eAAe;IAa7B,OAAO,CAAC,wBAAwB;CAIjC"}
|
|
@@ -174,27 +174,7 @@ class CommandLineUI {
|
|
|
174
174
|
const formattedChoice = config?.format ? choices[formattedChoices.indexOf(choice)] : choice;
|
|
175
175
|
return formattedChoice;
|
|
176
176
|
}
|
|
177
|
-
async
|
|
178
|
-
const formattedChoices = config?.format ? choices.map((choice) => config?.format?.(choice)) : choices;
|
|
179
|
-
const { selectedChoices } = await this.prompt([
|
|
180
|
-
{
|
|
181
|
-
type: 'checkbox',
|
|
182
|
-
name: 'selectedChoices',
|
|
183
|
-
choices: formattedChoices.map((choice, index) => ({
|
|
184
|
-
name: choice,
|
|
185
|
-
value: choice,
|
|
186
|
-
index
|
|
187
|
-
})),
|
|
188
|
-
validate: (selected) => (selected.length === 0 ? text_1.Text.error.promptInputRequired : true),
|
|
189
|
-
message
|
|
190
|
-
}
|
|
191
|
-
]);
|
|
192
|
-
const formattedSelectedChoices = config?.format
|
|
193
|
-
? selectedChoices.map((choice) => choices[formattedChoices.indexOf(choice)])
|
|
194
|
-
: selectedChoices;
|
|
195
|
-
return formattedSelectedChoices;
|
|
196
|
-
}
|
|
197
|
-
async promptForTable(message, infoMessage, columns, choices) {
|
|
177
|
+
async promptForTable(message, infoMessage, columns, choices, isBorderless) {
|
|
198
178
|
const { choice } = await this.prompt([
|
|
199
179
|
{
|
|
200
180
|
type: 'multiple-choice-table',
|
|
@@ -202,7 +182,8 @@ class CommandLineUI {
|
|
|
202
182
|
message,
|
|
203
183
|
infoMessage,
|
|
204
184
|
columns,
|
|
205
|
-
choices
|
|
185
|
+
choices,
|
|
186
|
+
isBorderless
|
|
206
187
|
}
|
|
207
188
|
]);
|
|
208
189
|
return choice;
|
|
@@ -345,6 +326,9 @@ class CommandLineUI {
|
|
|
345
326
|
this.spinner.stopAndPersist();
|
|
346
327
|
}
|
|
347
328
|
}
|
|
329
|
+
clearSpinner() {
|
|
330
|
+
this.spinner.text = '';
|
|
331
|
+
}
|
|
348
332
|
async promptForString(message, secret, defaultValue) {
|
|
349
333
|
const { text } = await this.prompt([
|
|
350
334
|
{
|
package/out/ui/table-prompt.d.ts
CHANGED
|
@@ -9,6 +9,7 @@ export interface TableRenderProps extends TablePromptShared {
|
|
|
9
9
|
isDone: boolean;
|
|
10
10
|
infoMessage: string;
|
|
11
11
|
promptMessage: string;
|
|
12
|
+
isBorderless?: boolean;
|
|
12
13
|
}
|
|
13
14
|
export interface TablePromptState extends TablePromptShared {
|
|
14
15
|
done: (callback: any) => void;
|
|
@@ -30,6 +31,7 @@ export declare abstract class TablePrompt extends Base {
|
|
|
30
31
|
private pointer;
|
|
31
32
|
private options;
|
|
32
33
|
private hasMultipleChoices;
|
|
34
|
+
private isBorderless;
|
|
33
35
|
constructor(questions: any, readline: any, answers: any);
|
|
34
36
|
protected _run(callback: any): Base;
|
|
35
37
|
private attachEventHandlers;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"table-prompt.d.ts","sourceRoot":"","sources":["../../src/ui/table-prompt.ts"],"names":[],"mappings":"AACA,OAAO,IAAI,MAAM,2BAA2B,CAAC;
|
|
1
|
+
{"version":3,"file":"table-prompt.d.ts","sourceRoot":"","sources":["../../src/ui/table-prompt.ts"],"names":[],"mappings":"AACA,OAAO,IAAI,MAAM,2BAA2B,CAAC;AAa7C,UAAU,iBAAiB;IACzB,OAAO,EAAE,MAAM,CAAC;IAChB,kBAAkB,EAAE,OAAO,CAAC;CAC7B;AAED,MAAM,WAAW,gBAAiB,SAAQ,iBAAiB;IACzD,OAAO,EAAE,MAAM,EAAE,CAAC;IAClB,IAAI,EAAE,GAAG,EAAE,CAAC;IACZ,MAAM,EAAE,OAAO,CAAC;IAChB,WAAW,EAAE,MAAM,CAAC;IACpB,aAAa,EAAE,MAAM,CAAC;IACtB,YAAY,CAAC,EAAE,OAAO,CAAC;CACxB;AAED,MAAM,WAAW,gBAAiB,SAAQ,iBAAiB;IACzD,IAAI,EAAE,CAAC,QAAQ,EAAE,GAAG,KAAK,IAAI,CAAC;CAC/B;AAED,oBAAY,gBAAgB,GAAG,CAAC,MAAM,EAAE,OAAO,EAAE,OAAO,EAAE,OAAO,EAAE,UAAU,EAAE,OAAO,KAAK,MAAM,CAAC;AAClG,oBAAY,kBAAkB,GAAG,CAAC,MAAM,EAAE,OAAO,EAAE,OAAO,EAAE,OAAO,EAAE,UAAU,EAAE,OAAO,KAAK,CAAC,GAAG,EAAE,MAAM,KAAK,MAAM,CAAC;AACrH,oBAAY,cAAc,GAAG,CAAC,QAAQ,EAAE,MAAM,KAAK,OAAO,CAAC;AAE3D,UAAU,GAAG;IACX,KAAK,EAAE,GAAG,EAAE,CAAC;IACb,KAAK,EAAE,GAAG,CAAC;IACX,OAAO,EAAE,MAAM,CAAC;CACjB;AAoBD,8BAAsB,WAAY,SAAQ,IAAI;IAC5C,OAAO,CAAC,IAAI,CAA2B;IACvC,OAAO,CAAC,OAAO,CAAW;IAC1B,OAAO,CAAC,IAAI,CAAW;IACvB,OAAO,CAAC,aAAa,CAAS;IAC9B,OAAO,CAAC,WAAW,CAAS;IAC5B,OAAO,CAAC,OAAO,CAAK;IACpB,OAAO,CAAC,OAAO,CAAqB;IACpC,OAAO,CAAC,kBAAkB,CAAU;IACpC,OAAO,CAAC,YAAY,CAAU;gBAElB,SAAS,EAAE,GAAG,EAAE,QAAQ,EAAE,GAAG,EAAE,OAAO,EAAE,GAAG;IAavD,SAAS,CAAC,IAAI,CAAC,QAAQ,EAAE,GAAG,GAAG,IAAI;IAQnC,OAAO,CAAC,mBAAmB;IAS3B,OAAO,CAAC,OAAO;IASf,OAAO,CAAC,SAAS;IASjB,OAAO,CAAC,UAAU;IAKlB,SAAS,CAAC,QAAQ,CAAC,cAAc,CAAC,KAAK,EAAE,gBAAgB,GAAG,IAAI;IAEhE,OAAO,CAAC,QAAQ;IAMhB,SAAS,CAAC,QAAQ,CAAC,YAAY,CAAC,KAAK,EAAE,gBAAgB,GAAG,IAAI;IAE9D,OAAO,CAAC,MAAM;IAad,SAAS,CAAC,WAAW,CACnB,EAAE,OAAO,EAAE,OAAO,EAAE,IAAI,EAAE,MAAM,EAAE,EAAE,gBAAgB,EACpD,YAAY,EAAE,gBAAgB,EAC9B,SAAS,EAAE,kBAAkB,EAC7B,UAAU,EAAE,cAAc,GACzB,MAAM;IAoBT,SAAS,CAAC,QAAQ,CAAC,MAAM,CAAC,KAAK,EAAE,gBAAgB,GAAG,IAAI;CACzD"}
|
package/out/ui/table-prompt.js
CHANGED
|
@@ -7,6 +7,23 @@ const events_1 = tslib_1.__importDefault(require("inquirer/lib/utils/events"));
|
|
|
7
7
|
const readline_1 = tslib_1.__importDefault(require("inquirer/lib/utils/readline"));
|
|
8
8
|
const cli_table3_1 = tslib_1.__importDefault(require("cli-table3"));
|
|
9
9
|
const text_1 = require("./text");
|
|
10
|
+
const NO_BORDERS = {
|
|
11
|
+
top: '',
|
|
12
|
+
'top-mid': '',
|
|
13
|
+
'top-left': '',
|
|
14
|
+
'top-right': '',
|
|
15
|
+
bottom: '',
|
|
16
|
+
'bottom-mid': '',
|
|
17
|
+
'bottom-left': '',
|
|
18
|
+
'bottom-right': '',
|
|
19
|
+
left: '',
|
|
20
|
+
'left-mid': '',
|
|
21
|
+
mid: '',
|
|
22
|
+
'mid-mid': '',
|
|
23
|
+
right: '',
|
|
24
|
+
'right-mid': '',
|
|
25
|
+
middle: ' '
|
|
26
|
+
};
|
|
10
27
|
class TablePrompt extends base_1.default {
|
|
11
28
|
done;
|
|
12
29
|
columns;
|
|
@@ -16,6 +33,7 @@ class TablePrompt extends base_1.default {
|
|
|
16
33
|
pointer = 1;
|
|
17
34
|
options;
|
|
18
35
|
hasMultipleChoices;
|
|
36
|
+
isBorderless;
|
|
19
37
|
constructor(questions, readline, answers) {
|
|
20
38
|
super(questions, readline, answers);
|
|
21
39
|
this.options = this.opt;
|
|
@@ -24,6 +42,7 @@ class TablePrompt extends base_1.default {
|
|
|
24
42
|
this.columns = [...this.options.columns];
|
|
25
43
|
this.rows = [...this.options.choices.choices];
|
|
26
44
|
this.hasMultipleChoices = this.rows.length > 1;
|
|
45
|
+
this.isBorderless = this.options.isBorderless || false;
|
|
27
46
|
}
|
|
28
47
|
_run(callback) {
|
|
29
48
|
this.done = callback;
|
|
@@ -69,13 +88,15 @@ class TablePrompt extends base_1.default {
|
|
|
69
88
|
hasMultipleChoices: this.hasMultipleChoices,
|
|
70
89
|
promptMessage: this.promptMessage,
|
|
71
90
|
infoMessage: this.infoMessage,
|
|
72
|
-
isDone
|
|
91
|
+
isDone,
|
|
92
|
+
isBorderless: this.isBorderless
|
|
73
93
|
});
|
|
74
94
|
}
|
|
75
95
|
renderTable({ pointer, columns, rows, isDone }, getRowSymbol, formatRow, isSelected) {
|
|
76
96
|
const table = new cli_table3_1.default({
|
|
77
97
|
head: [...columns],
|
|
78
|
-
style: { head: [] }
|
|
98
|
+
style: { head: [] },
|
|
99
|
+
chars: this.isBorderless ? NO_BORDERS : {}
|
|
79
100
|
});
|
|
80
101
|
rows.forEach((row, rowIndex) => {
|
|
81
102
|
const isHover = pointer === rowIndex + 1;
|
package/out/ui/text.d.ts
CHANGED
|
@@ -49,6 +49,7 @@ export declare const Text: {
|
|
|
49
49
|
licenseModeRequired: string;
|
|
50
50
|
};
|
|
51
51
|
multipleMatchingInstallations: string;
|
|
52
|
+
partialInstallation: (failedProductInstallations: string[]) => string;
|
|
52
53
|
};
|
|
53
54
|
warning: {
|
|
54
55
|
plaintextCredentialsFound: (url: string) => string;
|
|
@@ -586,13 +587,14 @@ export declare const Text: {
|
|
|
586
587
|
install: {
|
|
587
588
|
cmd: {
|
|
588
589
|
description: string;
|
|
589
|
-
start: (envKey: string, envType: AppEnvironmentType) => string;
|
|
590
|
-
end: (displayTick: boolean) => string;
|
|
590
|
+
start: (envKey: string, envType: AppEnvironmentType, product: string) => string;
|
|
591
|
+
end: (displayTick: boolean, product: string) => string;
|
|
591
592
|
};
|
|
592
593
|
booleanToScope: (isLatest: boolean) => string;
|
|
593
594
|
alreadyInstalledInRequiredProduct: (product: string) => string;
|
|
594
595
|
installingToRequiredProduct: (product: string) => string;
|
|
595
|
-
installingToOptionalProduct: string;
|
|
596
|
+
installingToOptionalProduct: (product: string) => string;
|
|
597
|
+
installConfirmation: (product: string, site: string) => string;
|
|
596
598
|
bannerSite: string;
|
|
597
599
|
bannerWorkspace: string;
|
|
598
600
|
optionConfirmScopes: string;
|
|
@@ -619,6 +621,7 @@ export declare const Text: {
|
|
|
619
621
|
noDeploymentFound: (environment: string) => string;
|
|
620
622
|
permissionsDeniedInstructions: (requestId: string, appId: string) => string;
|
|
621
623
|
};
|
|
624
|
+
failedAll: (site: URL, environment: string) => string;
|
|
622
625
|
security: {
|
|
623
626
|
banner: (site: string) => string;
|
|
624
627
|
questions: string[];
|
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;AAG1B,OAAO,EAAE,GAAG,EAAE,MAAM,KAAK,CAAC;AAI1B,OAAO,EAAE,kBAAkB,EAAE,MAAM,0BAA0B,CAAC;AAK9D,MAAM,WAAW,UAAU;IACzB,IAAI,EAAE,MAAM,CAAC;IACb,0BAA0B,CAAC,EAAE,OAAO,CAAC;CACtC;AA2BD,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;;;;;;6CAc1C,MAAM,YAAY,MAAM,YAAY,MAAM;;;kDAQrC,MAAM,EAAE;gDAKV,MAAM,aAAa,MAAM;8CAG3B,MAAM,aAAa,MAAM;uCAGhC,MAAM;iCAEZ,MAAM;;;;;;;;;;;;;;;kDAoBS,MAAM
|
|
1
|
+
{"version":3,"file":"text.d.ts","sourceRoot":"","sources":["../../src/ui/text.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAG1B,OAAO,EAAE,GAAG,EAAE,MAAM,KAAK,CAAC;AAI1B,OAAO,EAAE,kBAAkB,EAAE,MAAM,0BAA0B,CAAC;AAK9D,MAAM,WAAW,UAAU;IACzB,IAAI,EAAE,MAAM,CAAC;IACb,0BAA0B,CAAC,EAAE,OAAO,CAAC;CACtC;AA2BD,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;;;;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InB,MAAM;;oCAInB,MAAM,GAAG,IAAI;;;;;;;;uCAeV,MAAM;;;;;;;+BAQd,OAAO;;;;;;;;wBAQZ,MAAM,UAAU,MAAM,eAAe,MAAM,WAAW,OAAO;0BAI3D,MAAM,UAAU,MAAM,eAAe,MAAM;;;;;oBAYjD,MAAM;;;;;;;;;qCAYS,MAAM;;;;;;;;;oCAWL,MAAM;;;;;;;;;;oCAYN,MAAM,WAAW,MAAM;kCAMzB,MAAM,sBAAsB,MAAM,KAAG,MAAM;;sBAUvD,MAAM,UAAU,MAAM,WAAW,MAAM,aAAa,MAAM,KAAG,MAAM;6BAE5D,MAAM,eAAe,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;;;yBAKlE,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
|
@@ -84,8 +84,8 @@ exports.Text = {
|
|
|
84
84
|
},
|
|
85
85
|
licenseModesOverrideErrors: {
|
|
86
86
|
prodEnvNotSupported: '--license-modes and --users-with-access options are not supported in production environments',
|
|
87
|
-
empty: '--license-modes option list is empty. Provide a space-separated list of license mode. Supported
|
|
88
|
-
invalid: 'Invalid --license-modes option value. Supported
|
|
87
|
+
empty: '--license-modes option list is empty. Provide a space-separated list of license mode. Supported values are user_access and agent. \nFor example: install --license-modes user_access --users-with-access aaid1',
|
|
88
|
+
invalid: 'Invalid --license-modes option value. Supported values are user_access and agent',
|
|
89
89
|
userWithAccessRequired: '--users-with-access option is required when specifying --license-modes option'
|
|
90
90
|
},
|
|
91
91
|
userWithAccessOverrideErrors: {
|
|
@@ -94,7 +94,8 @@ exports.Text = {
|
|
|
94
94
|
countSize: (maxSizeOfUsersWithAccess) => `User limit exceeded. The --users-with-access option allows a maximum of ${maxSizeOfUsersWithAccess} users.`,
|
|
95
95
|
licenseModeRequired: '--license-modes option is required when specifying --users-with-access option'
|
|
96
96
|
},
|
|
97
|
-
multipleMatchingInstallations: 'Multiple matching installations found for the provided context when only one was expected'
|
|
97
|
+
multipleMatchingInstallations: 'Multiple matching installations found for the provided context when only one was expected',
|
|
98
|
+
partialInstallation: (failedProductInstallations) => `Failed to install the app for the following products: ${failedProductInstallations.join(', ')}.`
|
|
98
99
|
},
|
|
99
100
|
warning: {
|
|
100
101
|
plaintextCredentialsFound: (url) => `Your credentials were stored in plaintext by a previous version of the Forge CLI. For additional security, revoke your existing API token by visting this URL ${buildTerminalLink(url)}.`,
|
|
@@ -692,19 +693,23 @@ What do you like or don't like about Forge? Share your feedback below or press C
|
|
|
692
693
|
install: {
|
|
693
694
|
cmd: {
|
|
694
695
|
description: 'manage app installations',
|
|
695
|
-
start: (envKey, envType) =>
|
|
696
|
-
|
|
696
|
+
start: (envKey, envType, product) => {
|
|
697
|
+
const productText = product ? `in ${product} ` : '';
|
|
698
|
+
return `Installing your app ${productText}on to ${exports.Text.env.displayEnvironment(envKey, envType)}...`;
|
|
699
|
+
},
|
|
700
|
+
end: (displayTick, product) => `${displayTick ? greenTick + ' ' : ''}Install in ${product} complete!`
|
|
697
701
|
},
|
|
698
|
-
booleanToScope: (isLatest) => (isLatest ? `Latest` : `Out-of-date`),
|
|
699
|
-
alreadyInstalledInRequiredProduct: (product) => `\nYou have already installed this app into your required product
|
|
700
|
-
installingToRequiredProduct: (product) => `\nYour app will be installed into your required product
|
|
701
|
-
installingToOptionalProduct:
|
|
702
|
+
booleanToScope: (isLatest) => (isLatest ? `(Latest)` : `(Out-of-date)`),
|
|
703
|
+
alreadyInstalledInRequiredProduct: (product) => `\nYou have already installed this app into your required product, ${chalk_1.default.bold(product)}.`,
|
|
704
|
+
installingToRequiredProduct: (product) => `\nYour app will be installed into your required product, ${chalk_1.default.bold(product)}. Once this is done, you can install your app into any optional products.\n`,
|
|
705
|
+
installingToOptionalProduct: (product) => `\nThis app will be installed as an optional product on ${product}.\n`,
|
|
706
|
+
installConfirmation: (product, site) => `Installing your app onto ${product} on ${site}.\n${ctrlC}\n`,
|
|
702
707
|
bannerSite: `\nInstalling your app onto an Atlassian site.\n${ctrlC}\n`,
|
|
703
708
|
bannerWorkspace: `\nInstalling your app onto the selected workspace.\n${ctrlC}\n`,
|
|
704
709
|
optionConfirmScopes: 'skip confirmation of scopes for the app before installing or upgrading the app',
|
|
705
710
|
optionUpgrade: 'upgrade an existing installation',
|
|
706
711
|
optionLicense: 'specify the license value for the app (allowed values: active, inactive, and trial)',
|
|
707
|
-
optionLicenseModes: '[This feature is under development] specify the list of license mode value for the app (allowed values: user-access)',
|
|
712
|
+
optionLicenseModes: '[This feature is under development] specify the list of license mode value for the app (allowed values: user-access, agent)',
|
|
708
713
|
optionUsersWithAccess: '[This feature is under development] specify the list of Atlassian Account IDs(aaid) for users who have access to the app',
|
|
709
714
|
listScopes: (scopes) => `Your app will be installed with the following scopes:\n${scopes
|
|
710
715
|
.map(({ name, requiresInteractiveConsent }) => `- ${name}${requiresInteractiveConsent ? ' (requires user consent)' : ''}`)
|
|
@@ -739,6 +744,7 @@ What do you like or don't like about Forge? Share your feedback below or press C
|
|
|
739
744
|
'in the developer console and share it with the site admin: ' +
|
|
740
745
|
`https://developer.atlassian.com/console/myapps/${appId}/distribution`
|
|
741
746
|
},
|
|
747
|
+
failedAll: (site, environment) => `Your app in ${(0, environment_1.environmentToOption)(environment)} was not installed to any products on ${chalk_1.default.bold(site)}.`,
|
|
742
748
|
security: {
|
|
743
749
|
banner: (site) => `\n${chalk_1.default.gray('=== ')}Security questions\n
|
|
744
750
|
Forge apps installed on ${site} must comply with our corporate security guidelines.
|
package/out/ui/ui.d.ts
CHANGED
|
@@ -7,10 +7,7 @@ export interface Prompt {
|
|
|
7
7
|
promptForList<T extends string>(message: string, choices: T[], config?: {
|
|
8
8
|
format?: (choice: T) => string;
|
|
9
9
|
}): Promise<T>;
|
|
10
|
-
|
|
11
|
-
format?: (choice: T) => string;
|
|
12
|
-
}): Promise<T[]>;
|
|
13
|
-
promptForTable(message: string, infoMessage: string, columns: string[], choices: object[]): Promise<number[]>;
|
|
10
|
+
promptForTable(message: string, infoMessage: string, columns: string[], choices: object[], isBorderless?: boolean): Promise<number[]>;
|
|
14
11
|
promptForSingleChoiceTable(message: string, infoMessage: string, columns: string[], choices: object[]): Promise<number>;
|
|
15
12
|
}
|
|
16
13
|
export declare type TableCell = string | boolean | null | undefined;
|
|
@@ -30,6 +27,7 @@ export interface UI extends Logger, Prompt {
|
|
|
30
27
|
emptyLine(): void;
|
|
31
28
|
displayProgress<Result>(progress: () => Promise<Result>, startText: string, successText: string | ((result: Result) => string | ProgressResult)): Promise<Result>;
|
|
32
29
|
displayTemporaryMessage<Result>(progress: () => Promise<Result>, waitText: string): Promise<Result>;
|
|
30
|
+
clearSpinner(): void;
|
|
33
31
|
table<Key extends string>(head: [Key, string][], data: Record<Key, TableCell>[] | undefined | null, options?: TableOptions<Key>): void;
|
|
34
32
|
}
|
|
35
33
|
//# 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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EAAE,GAAG,SAAS,GAAG,IAAI,EACjD,OAAO,CAAC,EAAE,YAAY,CAAC,GAAG,CAAC,GAC1B,IAAI,CAAC;CACT"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@forge/cli-shared",
|
|
3
|
-
"version": "6.6.
|
|
3
|
+
"version": "6.6.2-next.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": "8.7.
|
|
16
|
-
"@forge/util": "1.4.8
|
|
17
|
-
"@forge/i18n": "0.0.
|
|
15
|
+
"@forge/manifest": "8.7.1-next.0",
|
|
16
|
+
"@forge/util": "1.4.8",
|
|
17
|
+
"@forge/i18n": "0.0.4",
|
|
18
18
|
"@sentry/node": "7.106.0",
|
|
19
19
|
"adm-zip": "^0.5.10",
|
|
20
20
|
"array.prototype.flatmap": "^1.3.2",
|
|
@@ -23,7 +23,7 @@
|
|
|
23
23
|
"cheerio": "^0.22.0",
|
|
24
24
|
"cli-table3": "^0.6.3",
|
|
25
25
|
"conf": "^10.2.0",
|
|
26
|
-
"cross-spawn": "^7.0.
|
|
26
|
+
"cross-spawn": "^7.0.5",
|
|
27
27
|
"env-paths": "^2.2.1",
|
|
28
28
|
"figures": "^3.2.0",
|
|
29
29
|
"fp-ts": "^2.16.2",
|
|
@@ -67,5 +67,8 @@
|
|
|
67
67
|
"jest-fixtures": "^0.6.0",
|
|
68
68
|
"jest-matcher-specific-error": "^1.0.0",
|
|
69
69
|
"jest-fetch-mock": "^3.0.3"
|
|
70
|
+
},
|
|
71
|
+
"publishConfig": {
|
|
72
|
+
"registry": "https://packages.atlassian.com/api/npm/npm-public/"
|
|
70
73
|
}
|
|
71
|
-
}
|
|
74
|
+
}
|