@forge/cli-shared 3.13.0 → 3.14.0-next.1

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.
@@ -824,6 +824,7 @@ var ForgeAuditLogsActionType;
824
824
  (function (ForgeAuditLogsActionType) {
825
825
  ForgeAuditLogsActionType["ContributorAdded"] = "CONTRIBUTOR_ADDED";
826
826
  ForgeAuditLogsActionType["ContributorRemoved"] = "CONTRIBUTOR_REMOVED";
827
+ ForgeAuditLogsActionType["OwnershipTransferred"] = "OWNERSHIP_TRANSFERRED";
827
828
  })(ForgeAuditLogsActionType = exports.ForgeAuditLogsActionType || (exports.ForgeAuditLogsActionType = {}));
828
829
  var ForgeMetricsDataType;
829
830
  (function (ForgeMetricsDataType) {
package/out/index.d.ts CHANGED
@@ -7,6 +7,7 @@ export * from './config';
7
7
  export * from './file-system';
8
8
  export * from './graphql';
9
9
  export * from './http-client';
10
+ export * from './runtimes';
10
11
  export * from './service';
11
12
  export * from './shared';
12
13
  export * from './ui';
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAEA,cAAc,YAAY,CAAC;AAC3B,cAAc,QAAQ,CAAC;AACvB,cAAc,OAAO,CAAC;AACtB,cAAc,QAAQ,CAAC;AACvB,cAAc,SAAS,CAAC;AACxB,cAAc,UAAU,CAAC;AACzB,cAAc,eAAe,CAAC;AAC9B,cAAc,WAAW,CAAC;AAC1B,cAAc,eAAe,CAAC;AAC9B,cAAc,WAAW,CAAC;AAC1B,cAAc,UAAU,CAAC;AACzB,cAAc,MAAM,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAEA,cAAc,YAAY,CAAC;AAC3B,cAAc,QAAQ,CAAC;AACvB,cAAc,OAAO,CAAC;AACtB,cAAc,QAAQ,CAAC;AACvB,cAAc,SAAS,CAAC;AACxB,cAAc,UAAU,CAAC;AACzB,cAAc,eAAe,CAAC;AAC9B,cAAc,WAAW,CAAC;AAC1B,cAAc,eAAe,CAAC;AAC9B,cAAc,YAAY,CAAC;AAC3B,cAAc,WAAW,CAAC;AAC1B,cAAc,UAAU,CAAC;AACzB,cAAc,MAAM,CAAC"}
package/out/index.js CHANGED
@@ -10,6 +10,7 @@ tslib_1.__exportStar(require("./config"), exports);
10
10
  tslib_1.__exportStar(require("./file-system"), exports);
11
11
  tslib_1.__exportStar(require("./graphql"), exports);
12
12
  tslib_1.__exportStar(require("./http-client"), exports);
13
+ tslib_1.__exportStar(require("./runtimes"), exports);
13
14
  tslib_1.__exportStar(require("./service"), exports);
14
15
  tslib_1.__exportStar(require("./shared"), exports);
15
16
  tslib_1.__exportStar(require("./ui"), exports);
@@ -0,0 +1,6 @@
1
+ export declare enum RuntimeType {
2
+ sandbox = "sandbox",
3
+ nodejs = "nodejs"
4
+ }
5
+ export declare function getRuntimeType(identifier: string | undefined): RuntimeType;
6
+ //# sourceMappingURL=helper.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"helper.d.ts","sourceRoot":"","sources":["../../src/runtimes/helper.ts"],"names":[],"mappings":"AAAA,oBAAY,WAAW;IACrB,OAAO,YAAY;IACnB,MAAM,WAAW;CAClB;AAMD,wBAAgB,cAAc,CAAC,UAAU,EAAE,MAAM,GAAG,SAAS,GAAG,WAAW,CAK1E"}
@@ -0,0 +1,18 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.getRuntimeType = exports.RuntimeType = void 0;
4
+ var RuntimeType;
5
+ (function (RuntimeType) {
6
+ RuntimeType["sandbox"] = "sandbox";
7
+ RuntimeType["nodejs"] = "nodejs";
8
+ })(RuntimeType = exports.RuntimeType || (exports.RuntimeType = {}));
9
+ function isNodeRuntime(identifier) {
10
+ return /^nodejs\d+\.x$/.test(identifier !== null && identifier !== void 0 ? identifier : '');
11
+ }
12
+ function getRuntimeType(identifier) {
13
+ if (isNodeRuntime(identifier)) {
14
+ return RuntimeType.nodejs;
15
+ }
16
+ return RuntimeType.sandbox;
17
+ }
18
+ exports.getRuntimeType = getRuntimeType;
@@ -0,0 +1,2 @@
1
+ export * from './helper';
2
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/runtimes/index.ts"],"names":[],"mappings":"AAAA,cAAc,UAAU,CAAC"}
@@ -0,0 +1,4 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ const tslib_1 = require("tslib");
4
+ tslib_1.__exportStar(require("./helper"), exports);
@@ -7,7 +7,6 @@ import { Logger } from '../ui';
7
7
  declare type FeatureFlagType = {
8
8
  'forge-cli-test-flag': 'apple' | 'banana' | 'orange' | 'watermelon';
9
9
  'forge-cli-startup-warning': string;
10
- 'xls-lambda-runtime': string;
11
10
  'forge-cli-enable-muao': boolean;
12
11
  'xls-do-not-automatically-add-read-me-scope': boolean;
13
12
  'forge-cli-enable-concurrent-development': boolean;
@@ -17,7 +16,6 @@ declare type FeatureFlagType = {
17
16
  export declare type FeatureFlag = keyof FeatureFlagType;
18
17
  export declare abstract class FeatureFlagReader {
19
18
  abstract readFlag<F extends FeatureFlag>(flag: F): Promise<FeatureFlagType[F] | null>;
20
- isNodeRuntime(): Promise<boolean>;
21
19
  readMeScopeAddedByXLS(): Promise<boolean>;
22
20
  isAutoConsentAllowed(): Promise<boolean>;
23
21
  isMUAOEnabled(): Promise<boolean>;
@@ -1 +1 @@
1
- {"version":3,"file":"feature-flag-service.d.ts","sourceRoot":"","sources":["../../src/service/feature-flag-service.ts"],"names":[],"mappings":"AAAA,OAAqB,EAAe,QAAQ,EAAE,SAAS,EAAE,MAAM,EAAE,MAAM,8BAA8B,CAAC;AAKtG,OAAO,EAAE,gBAAgB,EAAE,MAAM,SAAS,CAAC;AAC3C,OAAO,EAAE,mBAAmB,EAAE,MAAM,WAAW,CAAC;AAChD,OAAO,EA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untime() {
12
- var _a, _b;
13
- return (_b = (_a = (await this.readFlag('xls-lambda-runtime'))) === null || _a === void 0 ? void 0 : _a.startsWith('nodejs')) !== null && _b !== void 0 ? _b : false;
14
- }
15
11
  async readMeScopeAddedByXLS() {
16
12
  var _a;
17
13
  const doNotAddReadMeScope = (_a = (await this.readFlag('xls-do-not-automatically-add-read-me-scope'))) !== null && _a !== void 0 ? _a : false;
package/out/ui/text.js CHANGED
@@ -553,7 +553,7 @@ What do you like or don't like about Forge? Share your feedback below or press C
553
553
  optionConfirmScopes: 'skip confirmation of scopes for the app before installing or upgrading the app',
554
554
  optionUpgrade: 'upgrade an existing installation',
555
555
  listScopes: (scopes) => `Your app will be installed with the following scopes:\n${scopes
556
- .map(({ name, requiresInteractiveConsent }) => `- ${name}${requiresInteractiveConsent ? ' (requires interactive consent)' : ''}`)
556
+ .map(({ name, requiresInteractiveConsent }) => `- ${name}${requiresInteractiveConsent ? ' (requires user consent)' : ''}`)
557
557
  .join('\n')}\n`,
558
558
  listEgressAddresses: (egressAddresses) => `Your app will exchange data with the following urls:\n${egressAddresses.map((url) => `- ${url}`).join('\n')}\n`,
559
559
  permissionsMismatch: (environment) => `The scopes or egress URLs in the manifest are different from the scopes in your most recent deployment to ${environment}. Try running ${chalk_1.default.bold(`forge deploy -e ${environment}`)} before installing.\n`,
@@ -620,7 +620,7 @@ ${buildTerminalLink(link)}\n`,
620
620
  error: `Upgrade failed`
621
621
  },
622
622
  listScopes: (scopes) => `Your app will be upgraded with the following additional scopes:\n${scopes
623
- .map(({ name, requiresInteractiveConsent }) => `- ${name}${requiresInteractiveConsent ? ' (requires interactive consent)' : ''}`)
623
+ .map(({ name, requiresInteractiveConsent }) => `- ${name}${requiresInteractiveConsent ? ' (requires user consent)' : ''}`)
624
624
  .join('\n')}\n`,
625
625
  listEgressAddresses: (egressAddresses) => `Your app will exchange data with the following urls:\n${egressAddresses.map((url) => `- ${url}`).join('\n')}\n`,
626
626
  permissionsMismatch: (environment) => `The scopes or egress URLs in the manifest are different from the scopes in your most recent deployment to ${environment}. Try running ${chalk_1.default.bold(`forge deploy -e ${environment}`)} before upgrading.\n`,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@forge/cli-shared",
3
- "version": "3.13.0",
3
+ "version": "3.14.0-next.1",
4
4
  "description": "Common functionality for Forge CLI",
5
5
  "author": "Atlassian",
6
6
  "license": "UNLICENSED",