@forge/cli-shared 9.10.0-next.8 → 9.10.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 +101 -0
- package/out/apps/get-app-owner.d.ts.map +1 -1
- package/out/graphql/gql/gql.d.ts +1 -0
- package/out/graphql/gql/gql.d.ts.map +1 -1
- package/out/graphql/gql/gql.js +1 -0
- package/out/graphql/gql/graphql.d.ts +700 -51
- package/out/graphql/gql/graphql.d.ts.map +1 -1
- package/out/graphql/gql/graphql.js +33 -2
- package/out/shared/error-handling.d.ts +6 -0
- package/out/shared/error-handling.d.ts.map +1 -1
- package/out/shared/error-handling.js +12 -1
- package/out/ui/command-line-ui.d.ts +3 -1
- package/out/ui/command-line-ui.d.ts.map +1 -1
- package/out/ui/command-line-ui.js +11 -1
- package/out/ui/text.d.ts +51 -0
- package/out/ui/text.d.ts.map +1 -1
- package/out/ui/text.js +66 -6
- package/package.json +3 -3
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
4
|
-
exports.Forge_Cli_DeleteApplicationTunnelsDocument = exports.Forge_Cli_CreateApplicationTunnelsDocument = exports.Forge_Cli_SetupApplicationTunnelDocument = exports.Forge_Cli_AppPreDeploymentCheckDocument = exports.Forge_Cli_CreateAppManifestUploadUrlDocument = exports.Forge_Cli_DeleteWebTriggerUrlDocument = exports.Forge_Cli_ListWebTriggerUrlsDocument = exports.Forge_Cli_CreateWebTriggerUrlDocument = exports.Forge_Cli_CancelAppVersionUpgradeRolloutDocument = exports.Forge_Cli_GetAppVersionRolloutDocument = exports.Forge_Cli_GetAppVersionRolloutsListDocument = exports.Forge_Cli_GetApplicationIdentityVersionDetailsDocument = exports.Forge_Cli_CreateAppVersionUpgradeRolloutDocument = exports.Forge_Cli_GetAppUpgradableToListDocument = exports.Forge_Cli_GetAppUpgradeVersionsListDocument = exports.Forge_Cli_GetApplicationVersionListDocument = exports.Forge_Cli_GetApplicationVersionDetailsDocument = exports.Forge_Cli_DemoSiteDocument = exports.Forge_Cli_DemoSiteProvisioningDocument = exports.Forge_Cli_ProvisionDemoSiteDocument = exports.Forge_Cli_ListDeployedWebtriggerExtensionKeysDocument = exports.Forge_Cli_CreateRollingReleaseDocument = exports.Forge_Cli_SetExternalAuthCredentialsDocument = exports.Forge_Cli_GetMigrationKeysWithMarketplaceDocument = exports.Forge_Cli_GetMigrationKeysDocument = exports.Forge_Cli_AppManifestTransformationDocument = exports.GetTenantContextDetailsDocument = exports.Forge_Cli_GetHostnameForTenantContextsByActivationIdsDocument = exports.Forge_Cli_GetHostnameForTenantContextsByCloudIdsDocument = exports.Forge_Cli_GetApplicationVersionListByMajorDocument = void 0;
|
|
3
|
+
exports.Forge_Cli_GetEcosystemInstallationsByAppDocument = exports.Forge_Cli_GetInstallationTaskDocument = exports.Forge_Cli_HasNoAppInstallationsForEnvDocument = exports.Forge_Cli_DeprovisionInstallationLinkDocument = exports.Forge_Cli_ProvisionInstallationLinkDocument = exports.Forge_Cli_UninstallApplicationDocument = exports.GetEntitlementOfferingDocument = exports.Forge_Cli_UpgradeApplicationDocument = exports.Forge_Cli_InstallApplicationDocument = exports.Forge_Cli_DeleteEnvironmentDocument = exports.Forge_Cli_ListEnvironmentDocument = exports.Forge_Cli_GetEnvironmentByKeyDocument = exports.Forge_Cli_CreateEnvironmentDocument = exports.Forge_Cli_DeleteAppEnvironmentVariableDocument = exports.Forge_Cli_SetAppEnvironmentVariableDocument = exports.Forge_Cli_GetAppEnvironmentVariablesDocument = exports.Forge_Cli_GetEntitiesDefinitionsDocument = exports.Forge_Cli_GetApplicationRoaEligibilityDocument = exports.GetAppEnforcementMetadataDocument = exports.CreateDeveloperSpaceDocument = exports.GetDevSpaceDetailsDocument = exports.GetDevSpaceWithLinkingAccessDocument = exports.Forge_Cli_RetryAppVersionPlacementsDocument = exports.Forge_Cli_GetAppVersionPlacementsDocument = exports.Forge_Cli_GetAppEnvironmentVersionForDeployStatusDocument = exports.GetAppDeploymentsDocument = exports.Forge_Cli_GetHostedResourcesUploadUrlsDocument = exports.Forge_Cli_ProcessCombinedAppBuildDocument = exports.Forge_Cli_GetDeploymentUrlDocument = exports.Forge_Cli_DeployApplicationDocument = exports.Forge_Cli_GetApplicationDeploymentStatusDocument = exports.Forge_Cli_CreateAppCustomScopesDocument = exports.Forge_Cli_GetAppCustomScopesDocument = exports.Forge_Cli_AppContainerDocument = exports.Forge_Cli_AppContainerRegistryLoginDocument = exports.Forge_Cli_DeleteAppContainerDocument = exports.Forge_Cli_AppContainerServicesDocument = exports.Forge_Cli_AppContainersDocument = exports.Forge_Cli_CreateAppContainerDocument = exports.GetBuildsByAppDocument = exports.Forge_Cli_GetAppOauthClientIdDetailsDocument = exports.Forge_Cli_GetApplicationEnvironmentDetailsDocument = exports.Forge_Cli_GetApplicationEnvironmentIdDocument = exports.Forge_Cli_GetUserDetailsDocument = exports.Forge_Cli_GetAppOwnerDocument = exports.Forge_Cli_CreateApplicationDocument = exports.Forge_Cli_GetInvocationLogsDocument = exports.Forge_Cli_GetApplicationLogsDocument = exports.Forge_Cli_GetApplicationLogsV2Document = exports.TypedDocumentString = void 0;
|
|
4
|
+
exports.Forge_Cli_DeleteApplicationTunnelsDocument = exports.Forge_Cli_CreateApplicationTunnelsDocument = exports.Forge_Cli_SetupApplicationTunnelDocument = exports.Forge_Cli_AppPreDeploymentCheckDocument = exports.Forge_Cli_CreateAppManifestUploadUrlDocument = exports.Forge_Cli_DeleteWebTriggerUrlDocument = exports.Forge_Cli_ListWebTriggerUrlsDocument = exports.Forge_Cli_CreateWebTriggerUrlDocument = exports.Forge_Cli_CancelAppVersionUpgradeRolloutDocument = exports.Forge_Cli_GetAppVersionRolloutDocument = exports.Forge_Cli_GetAppVersionRolloutsListDocument = exports.Forge_Cli_GetApplicationIdentityVersionDetailsDocument = exports.Forge_Cli_CreateAppVersionUpgradeRolloutDocument = exports.Forge_Cli_GetAppUpgradableToListDocument = exports.Forge_Cli_GetAppUpgradeVersionsListDocument = exports.Forge_Cli_GetApplicationVersionListDocument = exports.Forge_Cli_GetApplicationVersionDetailsDocument = exports.Forge_Cli_DemoSiteDocument = exports.Forge_Cli_DemoSiteProvisioningDocument = exports.Forge_Cli_ProvisionDemoSiteDocument = exports.Forge_Cli_ListDeployedWebtriggerExtensionKeysDocument = exports.Forge_Cli_CreateRollingReleaseDocument = exports.Forge_Cli_SetExternalAuthCredentialsDocument = exports.Forge_Cli_GetMigrationKeysWithMarketplaceDocument = exports.Forge_Cli_GetMigrationKeysDocument = exports.Forge_Cli_AppManifestTransformationDocument = exports.GetTenantContextDetailsDocument = exports.Forge_Cli_GetHostnameForTenantContextsByActivationIdsDocument = exports.Forge_Cli_GetHostnameForTenantContextsByCloudIdsDocument = exports.Forge_Cli_GetApplicationVersionListByMajorDocument = exports.Forge_Cli_GetApplicationEnvironmentLatestVersionsDocument = void 0;
|
|
5
5
|
class TypedDocumentString extends String {
|
|
6
6
|
__apiType;
|
|
7
7
|
value;
|
|
@@ -544,6 +544,37 @@ exports.Forge_Cli_GetAppVersionPlacementsDocument = new TypedDocumentString(`
|
|
|
544
544
|
}
|
|
545
545
|
}
|
|
546
546
|
`);
|
|
547
|
+
exports.Forge_Cli_RetryAppVersionPlacementsDocument = new TypedDocumentString(`
|
|
548
|
+
mutation forge_cli_retryAppVersionPlacements($input: RetryAppVersionPlacementsInput!) {
|
|
549
|
+
retryAppVersionPlacements(input: $input) {
|
|
550
|
+
success
|
|
551
|
+
errors {
|
|
552
|
+
message
|
|
553
|
+
extensions {
|
|
554
|
+
errorType
|
|
555
|
+
statusCode
|
|
556
|
+
}
|
|
557
|
+
}
|
|
558
|
+
overallStatus
|
|
559
|
+
retriedPlacementGroups {
|
|
560
|
+
placementType
|
|
561
|
+
status
|
|
562
|
+
total
|
|
563
|
+
succeeded
|
|
564
|
+
inProgress
|
|
565
|
+
failed
|
|
566
|
+
placements {
|
|
567
|
+
placementId
|
|
568
|
+
status
|
|
569
|
+
lastUpdated
|
|
570
|
+
errors {
|
|
571
|
+
step
|
|
572
|
+
}
|
|
573
|
+
}
|
|
574
|
+
}
|
|
575
|
+
}
|
|
576
|
+
}
|
|
577
|
+
`);
|
|
547
578
|
exports.GetDevSpaceWithLinkingAccessDocument = new TypedDocumentString(`
|
|
548
579
|
query GetDevSpaceWithLinkingAccess {
|
|
549
580
|
ecosystem {
|
|
@@ -31,6 +31,12 @@ export declare function transformErrorMessage(error: unknown, transformFn: (mess
|
|
|
31
31
|
export declare const assertIsError: (error: unknown) => asserts error is Error;
|
|
32
32
|
export declare class ValidationError extends UserError {
|
|
33
33
|
}
|
|
34
|
+
export declare const MISSING_INPUT_CODE = "MISSING_INPUT";
|
|
35
|
+
export declare class MissingInputError extends ValidationError {
|
|
36
|
+
readonly code = "MISSING_INPUT";
|
|
37
|
+
constructor(message?: string, requestId?: string);
|
|
38
|
+
getAttributes(): ErrorAnalytics;
|
|
39
|
+
}
|
|
34
40
|
export declare class BundlerTSError extends UserError {
|
|
35
41
|
}
|
|
36
42
|
export interface TunnelErrorDetails {
|
|
@@ -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;AAK/B,MAAM,MAAM,cAAc,GAAG,MAAM,CAAC,MAAM,EAAE,MAAM,GAAG,MAAM,EAAE,GAAG,OAAO,GAAG,SAAS,CAAC,GAAG;IACrF,WAAW,CAAC,EAAE,OAAO,CAAC;IACtB,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB,CAAC;AAKF,MAAM,WAAW,kBAAkB;IACjC,aAAa,IAAI,cAAc,CAAC;CACjC;AA8CD,wBAAgB,WAAW,CAAC,CAAC,EAAE,GAAG,GAAG,OAAO,CAW3C;AAED,wBAAgB,kBAAkB,CAAC,CAAC,EAAE,G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K,EAAE,OAAO,EAAE,WAAW,EAAE,CAAC,OAAO,EAAE,MAAM,KAAK,MAAM,GAAG,KAAK,CAIrG;AAMD,eAAO,MAAM,aAAa,EAAE,CAAC,KAAK,EAAE,OAAO,KAAK,OAAO,CAAC,KAAK,IAAI,KAIhE,CAAC;AAEF,qBAAa,eAAgB,SAAQ,SAAS;CAAG;AAGjD,eAAO,MAAM,kBAAkB,kBAAkB,CAAC;AAOlD,qBAAa,iBAAkB,SAAQ,eAAe;IACpD,SAAgB,IAAI,mBAAsB;gBAE9B,OAAO,CAAC,EAAE,MAAM,EAAE,SAAS,CAAC,EAAE,MAAM;IAMzC,aAAa,IAAI,cAAc;CAGvC;AAED,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;AAUD,qBAAa,mBAAoB,SAAQ,SAAS;gBAMpC,OAAO,CAAC,EAAE,MAAM;CAG7B"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.MissingCreatorError = exports.PartialInstallationError = exports.UIPromptError = exports.ApplicationCompileError = exports.BundlerTSError = exports.ValidationError = exports.assertIsError = exports.wrapError = exports.exitOnError = exports.HiddenError = exports.UserError = exports.BaseError = void 0;
|
|
3
|
+
exports.MissingCreatorError = exports.PartialInstallationError = exports.UIPromptError = exports.ApplicationCompileError = exports.BundlerTSError = exports.MissingInputError = exports.MISSING_INPUT_CODE = exports.ValidationError = exports.assertIsError = exports.wrapError = exports.exitOnError = exports.HiddenError = exports.UserError = exports.BaseError = void 0;
|
|
4
4
|
exports.isUserError = isUserError;
|
|
5
5
|
exports.getErrorAttributes = getErrorAttributes;
|
|
6
6
|
exports.transformErrorMessage = transformErrorMessage;
|
|
@@ -140,6 +140,17 @@ exports.assertIsError = assertIsError;
|
|
|
140
140
|
class ValidationError extends UserError {
|
|
141
141
|
}
|
|
142
142
|
exports.ValidationError = ValidationError;
|
|
143
|
+
exports.MISSING_INPUT_CODE = 'MISSING_INPUT';
|
|
144
|
+
class MissingInputError extends ValidationError {
|
|
145
|
+
code = exports.MISSING_INPUT_CODE;
|
|
146
|
+
constructor(message, requestId) {
|
|
147
|
+
super(`[${exports.MISSING_INPUT_CODE}] ${message ?? ''}`.trim(), requestId);
|
|
148
|
+
}
|
|
149
|
+
getAttributes() {
|
|
150
|
+
return { ...super.getAttributes(), code: this.code };
|
|
151
|
+
}
|
|
152
|
+
}
|
|
153
|
+
exports.MissingInputError = MissingInputError;
|
|
143
154
|
class BundlerTSError extends UserError {
|
|
144
155
|
}
|
|
145
156
|
exports.BundlerTSError = BundlerTSError;
|
|
@@ -9,6 +9,7 @@ type TableData<Key extends string> = Record<Key, TableCell>[] | undefined | null
|
|
|
9
9
|
export declare class CommandLineUI implements UI {
|
|
10
10
|
private readonly verbose;
|
|
11
11
|
private readonly customEffectsEnabled?;
|
|
12
|
+
private readonly nonInteractive?;
|
|
12
13
|
private readonly logger;
|
|
13
14
|
private readonly spinner;
|
|
14
15
|
private readonly promptInternal;
|
|
@@ -26,12 +27,13 @@ export declare class CommandLineUI implements UI {
|
|
|
26
27
|
private static STDIN_CHUNK_BYTES;
|
|
27
28
|
private static STDIN_RETRY_MS;
|
|
28
29
|
private static STDIN_READ_TIMEOUT_MS;
|
|
29
|
-
constructor(verbose: () => boolean, statsigService?: StatsigService, spinner?: Ora, logger?: Console, customEffectsEnabled?: (() => boolean) | undefined);
|
|
30
|
+
constructor(verbose: () => boolean, statsigService?: StatsigService, spinner?: Ora, logger?: Console, customEffectsEnabled?: (() => boolean) | undefined, nonInteractive?: (() => boolean) | undefined);
|
|
30
31
|
setStatsigService(statsigService: StatsigService): void;
|
|
31
32
|
private seasonalSpinnerEffectsEnabled;
|
|
32
33
|
private initCustomSpinner;
|
|
33
34
|
private getSpinner;
|
|
34
35
|
private prompt;
|
|
36
|
+
private static questionMessage;
|
|
35
37
|
get traceEnabled(): boolean;
|
|
36
38
|
get debugEnabled(): boolean;
|
|
37
39
|
displayProgress<Result>(progress: () => Promise<Result>, startText: string, successText: string | ((result: Result) => string | ProgressResult), hintCategory?: HintCategory): Promise<Result>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"command-line-ui.d.ts","sourceRoot":"","sources":["../../src/ui/command-line-ui.ts"],"names":[],"mappings":"AAMA,OAAY,EAAE,GAAG,EAAE,MAAM,KAAK,CAAC;AAQ/B,OAAO,EAAE,YAAY,EAAE,SAAS,EAAE,YAAY,EAAE,EAAE,EAAE,MAAM,MAAM,CAAC;AAIjE,OAAO,EAAW,cAAc,EAAE,MAAM,4BAA4B,CAAC;AAcrE,MAAM,WAAW,cAAc;IAC7B,UAAU,EAAE,OAAO,CAAC;IACpB,OAAO,EAAE,MAAM,CAAC;CACjB;AAMD,KAAK,SAAS,CAAC,GAAG,SAAS,MAAM,IAAI,MAAM,CAAC,GAAG,EAAE,SAAS,CAAC,EAAE,GAAG,SAAS,GAAG,IAAI,CAAC;AAQjF,qBAAa,aAAc,YAAW,EAAE;IAiDpC,OAAO,CAAC,QAAQ,CAAC,OAAO;IAIxB,OAAO,CAAC,QAAQ,CAAC,oBAAoB,CAAC;
|
|
1
|
+
{"version":3,"file":"command-line-ui.d.ts","sourceRoot":"","sources":["../../src/ui/command-line-ui.ts"],"names":[],"mappings":"AAMA,OAAY,EAAE,GAAG,EAAE,MAAM,KA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,OAAO,CAAC,yBAAyB;IAQjC,OAAO,CAAC,eAAe;IAahB,YAAY;YAIL,eAAe;IAgB7B,OAAO,CAAC,kBAAkB;IAS1B,OAAO,CAAC,2BAA2B;IA0BnC,OAAO,CAAC,mBAAmB;IAmD3B,OAAO,CAAC,wBAAwB;IAMzB,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"}
|
|
@@ -32,6 +32,7 @@ const ELLIPSIS_INTERVAL_MS = 400;
|
|
|
32
32
|
class CommandLineUI {
|
|
33
33
|
verbose;
|
|
34
34
|
customEffectsEnabled;
|
|
35
|
+
nonInteractive;
|
|
35
36
|
logger;
|
|
36
37
|
spinner;
|
|
37
38
|
promptInternal;
|
|
@@ -49,9 +50,10 @@ class CommandLineUI {
|
|
|
49
50
|
static STDIN_CHUNK_BYTES = 256;
|
|
50
51
|
static STDIN_RETRY_MS = 10;
|
|
51
52
|
static STDIN_READ_TIMEOUT_MS = 30_000;
|
|
52
|
-
constructor(verbose, statsigService, spinner, logger, customEffectsEnabled) {
|
|
53
|
+
constructor(verbose, statsigService, spinner, logger, customEffectsEnabled, nonInteractive) {
|
|
53
54
|
this.verbose = verbose;
|
|
54
55
|
this.customEffectsEnabled = customEffectsEnabled;
|
|
56
|
+
this.nonInteractive = nonInteractive;
|
|
55
57
|
this.spinner = spinner || (0, ora_1.default)({ discardStdin: false });
|
|
56
58
|
this.logger = logger || console;
|
|
57
59
|
this.promptInternal = this.createPromptModule();
|
|
@@ -88,6 +90,9 @@ class CommandLineUI {
|
|
|
88
90
|
return this.cachedSpinnerConfig;
|
|
89
91
|
}
|
|
90
92
|
async prompt(questions, initialAnswers) {
|
|
93
|
+
if (this.nonInteractive?.()) {
|
|
94
|
+
throw new shared_1.MissingInputError(text_1.Text.nonInteractive.error.promptReached(CommandLineUI.questionMessage(questions)));
|
|
95
|
+
}
|
|
91
96
|
try {
|
|
92
97
|
return await this.promptInternal(questions, initialAnswers);
|
|
93
98
|
}
|
|
@@ -95,6 +100,11 @@ class CommandLineUI {
|
|
|
95
100
|
throw new shared_1.UIPromptError(e.message, e.isTtyError ?? false);
|
|
96
101
|
}
|
|
97
102
|
}
|
|
103
|
+
static questionMessage(questions) {
|
|
104
|
+
const first = Array.isArray(questions) ? questions[0] : questions;
|
|
105
|
+
const message = first?.message;
|
|
106
|
+
return typeof message === 'string' ? message : undefined;
|
|
107
|
+
}
|
|
98
108
|
get traceEnabled() {
|
|
99
109
|
return this.verbose();
|
|
100
110
|
}
|
package/out/ui/text.d.ts
CHANGED
|
@@ -228,6 +228,7 @@ export declare const Text: {
|
|
|
228
228
|
taskRegister: string;
|
|
229
229
|
taskCreateEnvironments: string;
|
|
230
230
|
taskPackages: string;
|
|
231
|
+
taskModules: string;
|
|
231
232
|
error: {
|
|
232
233
|
dirtyDirectory: string;
|
|
233
234
|
app: {
|
|
@@ -239,12 +240,40 @@ export declare const Text: {
|
|
|
239
240
|
name: {
|
|
240
241
|
tooLong: (max: number) => string;
|
|
241
242
|
};
|
|
243
|
+
nonInteractive: {
|
|
244
|
+
missingInputs: (missingInputs: {
|
|
245
|
+
label: string;
|
|
246
|
+
hint: string;
|
|
247
|
+
}[], nextCommand: string[]) => string;
|
|
248
|
+
labels: {
|
|
249
|
+
appName: string;
|
|
250
|
+
template: string;
|
|
251
|
+
developerSpace: string;
|
|
252
|
+
acceptTerms: string;
|
|
253
|
+
};
|
|
254
|
+
placeholders: {
|
|
255
|
+
appName: string;
|
|
256
|
+
template: string;
|
|
257
|
+
directory: string;
|
|
258
|
+
developerSpace: string;
|
|
259
|
+
preset: string;
|
|
260
|
+
};
|
|
261
|
+
appNameHint: (maxLength: number) => string;
|
|
262
|
+
templateHint: string;
|
|
263
|
+
developerSpaceHint: string;
|
|
264
|
+
acceptTermsHint: string;
|
|
265
|
+
};
|
|
242
266
|
template: {
|
|
243
267
|
download: (template: string) => string;
|
|
244
268
|
notFound: (template: string) => string;
|
|
245
269
|
noTemplates: string;
|
|
246
270
|
unexpectedArchiveFormat: string;
|
|
247
271
|
};
|
|
272
|
+
preset: {
|
|
273
|
+
notFound: (preset: string) => string;
|
|
274
|
+
withTemplate: string;
|
|
275
|
+
modulesFailed: string;
|
|
276
|
+
};
|
|
248
277
|
packages: {
|
|
249
278
|
installFail: string;
|
|
250
279
|
};
|
|
@@ -377,6 +406,7 @@ export declare const Text: {
|
|
|
377
406
|
defaultEnv: {
|
|
378
407
|
info: string;
|
|
379
408
|
prompt: string;
|
|
409
|
+
notSetNonInteractive: string;
|
|
380
410
|
warn: string;
|
|
381
411
|
confirm: string;
|
|
382
412
|
setSuccess: (envKey: string, envType: AppEnvironmentType) => string;
|
|
@@ -1058,6 +1088,7 @@ export declare const Text: {
|
|
|
1058
1088
|
inProgress: (succeeded: number, total: number, inProgress: number) => string;
|
|
1059
1089
|
};
|
|
1060
1090
|
checkAgain: (envKey: string, majorVersion?: number) => string;
|
|
1091
|
+
retryHint: (envKey: string, majorVersion?: number) => string;
|
|
1061
1092
|
table: {
|
|
1062
1093
|
placementType: string;
|
|
1063
1094
|
placement: string;
|
|
@@ -1073,6 +1104,21 @@ export declare const Text: {
|
|
|
1073
1104
|
noVersion: (envKey: string, envType: AppEnvironmentType) => string;
|
|
1074
1105
|
noStatus: (version: string, envKey: string, envType: AppEnvironmentType) => string;
|
|
1075
1106
|
};
|
|
1107
|
+
deployRetry: {
|
|
1108
|
+
cmd: string;
|
|
1109
|
+
majorVersionOption: string;
|
|
1110
|
+
placementOption: string;
|
|
1111
|
+
started: (started: number, total: number) => string;
|
|
1112
|
+
failed: (started: number, total: number) => string;
|
|
1113
|
+
unknownFailure: string;
|
|
1114
|
+
rejectedByGateway: (message: string | undefined, requestId: string | undefined) => string;
|
|
1115
|
+
showingSelected: string;
|
|
1116
|
+
retryRemaining: (envKey: string, majorVersion?: number) => string;
|
|
1117
|
+
nothingRetried: (envKey: string, majorVersion?: number) => string;
|
|
1118
|
+
runningInBackground: (envKey: string, majorVersion?: number) => string;
|
|
1119
|
+
rejected: (envKey: string, envType: AppEnvironmentType, version: string, majorVersion?: number, message?: string) => string;
|
|
1120
|
+
nothingToRetry: (envKey: string, envType: AppEnvironmentType, version: string, majorVersion?: number, requestedPlacements?: boolean) => string;
|
|
1121
|
+
};
|
|
1076
1122
|
tunnel: {
|
|
1077
1123
|
cmd: string;
|
|
1078
1124
|
optionDebugger: string;
|
|
@@ -1445,6 +1491,10 @@ export declare const Text: {
|
|
|
1445
1491
|
description: string;
|
|
1446
1492
|
info: string;
|
|
1447
1493
|
};
|
|
1494
|
+
nonInteractive: {
|
|
1495
|
+
description: string;
|
|
1496
|
+
invalidValue: string;
|
|
1497
|
+
};
|
|
1448
1498
|
customEffects: {
|
|
1449
1499
|
description: string;
|
|
1450
1500
|
setupError: string;
|
|
@@ -1522,6 +1572,7 @@ export declare const Text: {
|
|
|
1522
1572
|
error: {
|
|
1523
1573
|
missingRequiredOption: (command: string, requiredOptions: string[]) => string;
|
|
1524
1574
|
missingAnalyticsPreferences: string;
|
|
1575
|
+
promptReached: (question: string | undefined) => string;
|
|
1525
1576
|
};
|
|
1526
1577
|
};
|
|
1527
1578
|
customScopes: {
|
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":"AAEA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAE,aAAa,EAAE,MAAM,MAAM,CAAC;AAErC,OAAO,EAAE,GAAG,EAAE,MAAM,KAAK,CAAC;AAC1B,OAAO,EACL,kBAAkB,EAClB,gBAAgB,EAChB,0BA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");
|
|
8
8
|
const chalk_1 = tslib_1.__importDefault(require("chalk"));
|
|
9
|
+
const semver_1 = require("semver");
|
|
9
10
|
const terminal_link_1 = tslib_1.__importDefault(require("terminal-link"));
|
|
10
11
|
const graphql_runtime_enums_1 = require("../graphql/graphql-runtime-enums");
|
|
11
12
|
const cli_details_1 = require("../shared/cli-details");
|
|
@@ -29,6 +30,7 @@ const go = (link) => buildTerminalLink(`https://go.atlassian.com/${link}`);
|
|
|
29
30
|
const gettingStartedDACLink = go('dac/platform/forge/getting-started/#log-in-with-an-atlassian-api-token');
|
|
30
31
|
const command = (...args) => chalk_1.default.bold(args.join(' '));
|
|
31
32
|
const forge = (...args) => command('forge', ...args);
|
|
33
|
+
const deployCommand = (subcommand, envKey, majorVersion) => forge(`deploy ${subcommand}`, '-e', (0, environment_1.environmentToOption)(envKey), ...(majorVersion ? ['-v', String(majorVersion)] : []));
|
|
32
34
|
const autoSpaceSentences = (...sentences) => sentences
|
|
33
35
|
.filter((sentence) => sentence.length > 0)
|
|
34
36
|
.join(' ');
|
|
@@ -277,8 +279,8 @@ What do you like or don't like about Forge? Share your feedback below or press C
|
|
|
277
279
|
introWithCurrentDirectory: (currentDirectory) => `Creating an app in your current directory:\n\n ${chalk_1.default.bold(currentDirectory)}\n`,
|
|
278
280
|
optionTemplate: 'specify the template to use',
|
|
279
281
|
optionDirectory: 'specify the directory to create (uses the template name by default)',
|
|
280
|
-
optionSpace:
|
|
281
|
-
optionAcceptTerms: '
|
|
282
|
+
optionSpace: `specify the Developer Space id to use (see your Developer Spaces by running ${forge('developer-spaces', 'list')})`,
|
|
283
|
+
optionAcceptTerms: 'accept terms and conditions without prompting',
|
|
282
284
|
optionPersonal: 'register as a personal app',
|
|
283
285
|
overviewAppName: `\nName your app. The app name can include dashes, spaces, and underscores.\n`,
|
|
284
286
|
overviewTemplates: '\nStart with a template. Each template contains the required files to be a valid app.\n',
|
|
@@ -295,6 +297,7 @@ What do you like or don't like about Forge? Share your feedback below or press C
|
|
|
295
297
|
taskRegister: 'Registering app',
|
|
296
298
|
taskCreateEnvironments: 'Creating environments',
|
|
297
299
|
taskPackages: 'Installing dependencies',
|
|
300
|
+
taskModules: 'Adding modules',
|
|
298
301
|
error: {
|
|
299
302
|
dirtyDirectory: 'Destination directory is not empty',
|
|
300
303
|
app: {
|
|
@@ -306,12 +309,41 @@ What do you like or don't like about Forge? Share your feedback below or press C
|
|
|
306
309
|
name: {
|
|
307
310
|
tooLong: (max) => `The app name exceeds ${max} characters. Run ${forge('create')} using a shorter app name.`
|
|
308
311
|
},
|
|
312
|
+
nonInteractive: {
|
|
313
|
+
missingInputs: (missingInputs, nextCommand) => {
|
|
314
|
+
const labelWidth = Math.max(...missingInputs.map(({ label }) => label.length));
|
|
315
|
+
const inputs = missingInputs.map(({ label, hint }) => `${label.padEnd(labelWidth)} ${hint}`);
|
|
316
|
+
return `Missing required inputs for non-interactive mode.\n\nProvide:\n${itemList(inputs)}\n\nNext: ${forge('create', ...nextCommand)}`;
|
|
317
|
+
},
|
|
318
|
+
labels: {
|
|
319
|
+
appName: '<app name>',
|
|
320
|
+
template: '-t, --template <template name>',
|
|
321
|
+
developerSpace: '-s, --developer-space-id <Developer Space id>',
|
|
322
|
+
acceptTerms: '-y, --accept-terms'
|
|
323
|
+
},
|
|
324
|
+
placeholders: {
|
|
325
|
+
appName: '<app name>',
|
|
326
|
+
template: '<template name>',
|
|
327
|
+
directory: '<directory name>',
|
|
328
|
+
developerSpace: '<Developer Space id>',
|
|
329
|
+
preset: '<preset id>'
|
|
330
|
+
},
|
|
331
|
+
appNameHint: (maxLength) => `up to ${maxLength} characters`,
|
|
332
|
+
templateHint: 'for example: blank',
|
|
333
|
+
developerSpaceHint: `find one with: ${forge('developer-spaces', 'list', '--json')}`,
|
|
334
|
+
acceptTermsHint: 'accepts the Developer Terms, Privacy Policy and usage pricing'
|
|
335
|
+
},
|
|
309
336
|
template: {
|
|
310
337
|
download: (template) => `Failed to download the ${template} template. Run ${forge('create')} again.`,
|
|
311
338
|
notFound: (template) => `The template ${template} doesn't exist. Run ${forge('create')} using a different template.`,
|
|
312
339
|
noTemplates: 'There are no templates to choose from.',
|
|
313
340
|
unexpectedArchiveFormat: 'Unexpected template format.'
|
|
314
341
|
},
|
|
342
|
+
preset: {
|
|
343
|
+
notFound: (preset) => `The preset ${preset} doesn't exist. Run ${forge('create')} using a different preset.`,
|
|
344
|
+
withTemplate: `Run ${forge('create')} with either --template or --preset, not both.`,
|
|
345
|
+
modulesFailed: `Your app was created, but some preset modules couldn't be added. Run ${forge('module add')} from the app directory to add them.`
|
|
346
|
+
},
|
|
315
347
|
packages: {
|
|
316
348
|
installFail: `Something went wrong while installing app dependencies. Try running ${forge('create')} again.`
|
|
317
349
|
}
|
|
@@ -465,6 +497,7 @@ What do you like or don't like about Forge? Share your feedback below or press C
|
|
|
465
497
|
defaultEnv: {
|
|
466
498
|
info: 'You do not have a default development environment set. This is required to run commands without specifying an environment. Make sure not to use sensitive information when naming your default development environment.',
|
|
467
499
|
prompt: 'Enter a name for your default development environment:',
|
|
500
|
+
notSetNonInteractive: `No environment was given and you don't have a default development environment. Pass --environment, or set a default with ${forge('settings', 'set', 'default-environment', '<environment>')}.`,
|
|
468
501
|
warn: `${chalk_1.default.bold('Warning:')} A development environment with this name already exists. If you continue, you may be using the same environment as another contributor.`,
|
|
469
502
|
confirm: 'Do you want to continue?',
|
|
470
503
|
setSuccess: (envKey, envType) => `${exports.Text.env.displayEnvironment(envKey, envType)} has been set as your default development environment`,
|
|
@@ -1323,7 +1356,7 @@ ${buildTerminalLink(link)}\n`,
|
|
|
1323
1356
|
deployStatus: {
|
|
1324
1357
|
cmd: 'show the placement deployment status of an app version in an environment',
|
|
1325
1358
|
majorVersionOption: 'specify the major version to show (defaults to the latest deployed version)',
|
|
1326
|
-
banner: (envKey, envType, version) => `${log_symbols_1.default.info} Environment: ${exports.Text.env.displayEnvironment(envKey, envType)} (Version: ${version})`,
|
|
1359
|
+
banner: (envKey, envType, version) => `${log_symbols_1.default.info} Environment: ${exports.Text.env.displayEnvironment(envKey, envType)} (Version: ${(0, semver_1.major)(version)})`,
|
|
1327
1360
|
artifactUploaded: (createdAt, buildTag) => {
|
|
1328
1361
|
const buildTagText = buildTag ? ` from build with tag ${buildTag}` : '';
|
|
1329
1362
|
return `${log_symbols_1.default.success} App artifact uploaded${buildTagText} at ${createdAt}`;
|
|
@@ -1333,7 +1366,8 @@ ${buildTerminalLink(link)}\n`,
|
|
|
1333
1366
|
failed: (succeeded, total) => `${log_symbols_1.default.error} Deployment failed (${succeeded}/${total} placements succeeded)`,
|
|
1334
1367
|
inProgress: (succeeded, total, inProgress) => `${log_symbols_1.default.info} Deployment still in progress (${succeeded}/${total} placements succeeded, ${inProgress} in progress)`
|
|
1335
1368
|
},
|
|
1336
|
-
checkAgain: (envKey, majorVersion) => `Run ${
|
|
1369
|
+
checkAgain: (envKey, majorVersion) => `Run ${deployCommand('status', envKey, majorVersion)} again to check for updates.`,
|
|
1370
|
+
retryHint: (envKey, majorVersion) => `Run ${deployCommand('retry', envKey, majorVersion)} to retry the failed placements.`,
|
|
1337
1371
|
table: {
|
|
1338
1372
|
placementType: 'Placement type',
|
|
1339
1373
|
placement: 'Placement',
|
|
@@ -1363,7 +1397,26 @@ ${buildTerminalLink(link)}\n`,
|
|
|
1363
1397
|
})[step] ?? step,
|
|
1364
1398
|
noPlacements: `No placements found for this version. Placements are added when your app is installed.\nRun ${forge('install')} to install your app.`,
|
|
1365
1399
|
noVersion: (envKey, envType) => `No deployed version found in the ${exports.Text.env.displayEnvironment(envKey, envType)} environment. Run ${forge('deploy')} to deploy your app first.`,
|
|
1366
|
-
noStatus: (version, envKey, envType) => `No deployment status is available for version ${version} in the ${exports.Text.env.displayEnvironment(envKey, envType)} environment yet.`
|
|
1400
|
+
noStatus: (version, envKey, envType) => `No deployment status is available for version ${(0, semver_1.major)(version)} in the ${exports.Text.env.displayEnvironment(envKey, envType)} environment yet.`
|
|
1401
|
+
},
|
|
1402
|
+
deployRetry: {
|
|
1403
|
+
cmd: 'retry the failed placements of an existing app version deployment in an environment, without a new deployment',
|
|
1404
|
+
majorVersionOption: 'specify the major version to retry (defaults to the latest deployed version)',
|
|
1405
|
+
placementOption: 'placement IDs to retry, separated by spaces (defaults to every failed placement)',
|
|
1406
|
+
started: (started, total) => `${log_symbols_1.default.success} Retry started for ${started}/${total} failed placements`,
|
|
1407
|
+
failed: (started, total) => total
|
|
1408
|
+
? `${log_symbols_1.default.error} Retry could not be started for all failed placements (${started}/${total} started)`
|
|
1409
|
+
: `${log_symbols_1.default.error} Retry could not be started.`,
|
|
1410
|
+
unknownFailure: 'A placement could not be retried.',
|
|
1411
|
+
rejectedByGateway: (message, requestId) => `${message ?? 'Unable to retry the deployment.'} (requestId: ${requestId || 'unknown'})`,
|
|
1412
|
+
showingSelected: 'Showing only placements selected for retry.',
|
|
1413
|
+
retryRemaining: (envKey, majorVersion) => `${log_symbols_1.default.info} Run ${deployCommand('retry', envKey, majorVersion)} to retry the remaining failed placements.`,
|
|
1414
|
+
nothingRetried: (envKey, majorVersion) => `${log_symbols_1.default.info} No placements were retried. Run ${deployCommand('status', envKey, majorVersion)} to check the deployment status.`,
|
|
1415
|
+
runningInBackground: (envKey, majorVersion) => `${log_symbols_1.default.info} Deployment is running in the background. Run ${deployCommand('status', envKey, majorVersion)} to check for updates.`,
|
|
1416
|
+
rejected: (envKey, envType, version, majorVersion, message) => `Unable to retry the deployment of version ${(0, semver_1.major)(version)} in the ${exports.Text.env.displayEnvironment(envKey, envType)} environment${message ? `: ${message}` : '.'}\nRun ${deployCommand('status', envKey, majorVersion)} to check the deployment status.`,
|
|
1417
|
+
nothingToRetry: (envKey, envType, version, majorVersion, requestedPlacements = false) => `${requestedPlacements
|
|
1418
|
+
? `None of the requested placements have failed for version ${(0, semver_1.major)(version)} in the ${exports.Text.env.displayEnvironment(envKey, envType)} environment.`
|
|
1419
|
+
: `No failed placements found for version ${(0, semver_1.major)(version)} in the ${exports.Text.env.displayEnvironment(envKey, envType)} environment.`} Nothing was retried. Run ${deployCommand('status', envKey, majorVersion)} to check the deployment status.`
|
|
1367
1420
|
},
|
|
1368
1421
|
tunnel: {
|
|
1369
1422
|
cmd: 'start a tunnel to connect your local code with the app running in the development environment',
|
|
@@ -1764,6 +1817,10 @@ ${buildTerminalLink(link)}\n`,
|
|
|
1764
1817
|
description: 'Change your default development environment',
|
|
1765
1818
|
info: `To view all environments for this app, run ${forge('environments', 'list')}.`
|
|
1766
1819
|
},
|
|
1820
|
+
nonInteractive: {
|
|
1821
|
+
description: 'Run commands without prompts: off (default), on, or auto (when an agent runs the command, not in CI). FORGE_NON_INTERACTIVE overrides it',
|
|
1822
|
+
invalidValue: 'Invalid value specified. Valid values: auto, on, off'
|
|
1823
|
+
},
|
|
1767
1824
|
customEffects: {
|
|
1768
1825
|
description: 'Enable custom spinner effects',
|
|
1769
1826
|
setupError: chalk_1.default.yellow('Failed to fetch custom spinner config. Custom spinner effects can be disabled via forge settings')
|
|
@@ -1837,7 +1894,10 @@ When errors occur during Forge command execution, error details will be sent to
|
|
|
1837
1894
|
description: 'run the command without input prompts',
|
|
1838
1895
|
error: {
|
|
1839
1896
|
missingRequiredOption: (command, requiredOptions) => `${command} --non-interactive requires ${requiredOptions.join(' ')}`,
|
|
1840
|
-
missingAnalyticsPreferences: `--non-interactive requires an analytics setting. Use ${forge('settings', 'set', 'usage-analytics', '<value>')}
|
|
1897
|
+
missingAnalyticsPreferences: `--non-interactive requires an analytics setting. Use ${forge('settings', 'set', 'usage-analytics', '<value>')}.`,
|
|
1898
|
+
promptReached: (question) => `${question ? `"${question.trim()}" needs an answer, but` : 'This command needs input, but'} the CLI is ` +
|
|
1899
|
+
`running in non-interactive mode, so it can't ask. Pass the answer as an option. Run the command with ` +
|
|
1900
|
+
`--help to see its options.`
|
|
1841
1901
|
}
|
|
1842
1902
|
},
|
|
1843
1903
|
customScopes: {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@forge/cli-shared",
|
|
3
|
-
"version": "9.10.0
|
|
3
|
+
"version": "9.10.0",
|
|
4
4
|
"description": "Common functionality for Forge CLI",
|
|
5
5
|
"author": "Atlassian",
|
|
6
6
|
"license": "SEE LICENSE IN LICENSE.txt",
|
|
@@ -13,8 +13,8 @@
|
|
|
13
13
|
"prebuild": "yarn generate-graphql-types"
|
|
14
14
|
},
|
|
15
15
|
"dependencies": {
|
|
16
|
-
"@forge/manifest": "13.9.0
|
|
17
|
-
"@forge/util": "4.0.0
|
|
16
|
+
"@forge/manifest": "13.9.0",
|
|
17
|
+
"@forge/util": "4.0.0",
|
|
18
18
|
"@forge/i18n": "1.0.1",
|
|
19
19
|
"@sentry/node": "7.106.0",
|
|
20
20
|
"@vercel/detect-agent": "^1.2.5",
|