@forge/lint 6.0.3-next.6 → 6.0.3-next.7-experimental-116e5ca

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 CHANGED
@@ -1,5 +1,36 @@
1
1
  # @forge/lint
2
2
 
3
+ ## 6.0.3-next.7-experimental-116e5ca
4
+
5
+ ### Minor Changes
6
+
7
+ - 342098d: Implement server-side linter logic to prevent accidental major app version deployments
8
+
9
+ ### Patch Changes
10
+
11
+ - Updated dependencies [4d50a76]
12
+ - Updated dependencies [f01417b]
13
+ - Updated dependencies [d706cd8]
14
+ - Updated dependencies [342098d]
15
+ - Updated dependencies [0949833]
16
+ - Updated dependencies [d1610cc]
17
+ - Updated dependencies [e7bfe5e]
18
+ - Updated dependencies [498fda5]
19
+ - Updated dependencies [ca4fa27]
20
+ - Updated dependencies [39f1f15]
21
+ - Updated dependencies [c3a0f20]
22
+ - @forge/cli-shared@9.3.0-next.7-experimental-116e5ca
23
+ - @forge/manifest@13.3.0-next.6-experimental-116e5ca
24
+ - @forge/csp@6.2.0-experimental-116e5ca
25
+
26
+ ## 6.0.3-next.7
27
+
28
+ ### Patch Changes
29
+
30
+ - Updated dependencies [e7bfe5e]
31
+ - @forge/cli-shared@9.3.0-next.7
32
+ - @forge/manifest@13.3.0-next.6
33
+
3
34
  ## 6.0.3-next.6
4
35
 
5
36
  ### Patch Changes
@@ -1,15 +1,32 @@
1
- import { StatsigService } from '@forge/cli-shared';
1
+ import { StatsigService, GraphQLClient } from '@forge/cli-shared';
2
2
  import { ManifestSchema as Manifest } from '@forge/manifest';
3
3
  import fs from 'fs';
4
4
  import { tsParser } from '../parse';
5
5
  import { LinterInterface, LintInput, LintLogger, LintResult } from './linter-interface';
6
+ import { HandlerLinter } from './linters/handler-linter/handler-linter';
7
+ import { FullManifestLinter } from './linters/manifest-linter/full-manifest-linter';
8
+ import { AgentProductContextPermissionsManifestLinter } from './linters/manifest-linter/agent-product-context-permissions-manifest-linter';
9
+ import { PermissionsManifestLinter } from './linters/manifest-linter/permissions-manifest-linter';
10
+ import { PermissionLinter } from './linters/permission-linter/permission-linter';
11
+ import { DeprecatedCspPermissionsManifestLinter } from './linters/manifest-linter/deprecated-csp-permissions-manifest-linter';
12
+ import { DynamicPropertiesPermissionsLinter } from './linters/dynamic-properties-linter/dynamic-properties-permissions-linter';
13
+ import { InvokeEndpointLinter } from './linters/endpoint-linter/invoke-endpoint-linter';
14
+ import { StorageModulesLinter } from './linters/storage-module-linter/storage-module-linter';
15
+ import { FrameComponentLinter } from './linters/frame-component-linter/frame-component-linter';
16
+ import { DeprecatedEgressPermissionsManifestLinter } from './linters/manifest-linter/deprecated-egress-permissions-manifest-linter';
17
+ import { LlmModuleLinter } from './linters/llm-module-linter/llm-module-linter';
18
+ import { DeprecatedApiModuleLinter } from './linters/deprecated-api-module-linter/deprecated-api-module-linter';
19
+ import { AppManagedPermissionsSdkLinter } from './linters/app-managed-permissions-sdk-linter/app-managed-permissions-sdk-linter';
20
+ import { FunctionTimeoutLinter } from './linters/function-timeout-linter/function-timeout-linter';
6
21
  export interface ProblemCount {
7
22
  errors: number;
8
23
  warnings: number;
24
+ approvals: number;
9
25
  }
10
26
  export declare const reportLintResults: (logger: LintLogger, lintResults: LintResult[], showSummary?: boolean) => void;
11
27
  export declare const problemCount: (lintResults: LintResult[]) => ProblemCount;
12
28
  export declare const parseSourceFile: (filepath: string, parser: typeof tsParser, readFilePromise?: typeof fs.readFile.__promisify__) => Promise<LintInput>;
13
- export declare const lint: (filesToLint: string[], manifest: Manifest, environment: string, logger: LintLogger, statsigService: StatsigService, parseFunction?: (filepath: string, parser: typeof tsParser, readFilePromise?: typeof fs.readFile.__promisify__) => Promise<LintInput>, linters?: LinterInterface[]) => Promise<LintResult[]>;
29
+ export declare const getClientSideLintersOnly: (manifest: Manifest, environment: string, logger: LintLogger, statsigService: StatsigService) => Promise<(FunctionTimeoutLinter | PermissionLinter | HandlerLinter | FullManifestLinter | AgentProductContextPermissionsManifestLinter | PermissionsManifestLinter | DeprecatedCspPermissionsManifestLinter | DynamicPropertiesPermissionsLinter | InvokeEndpointLinter | StorageModulesLinter | FrameComponentLinter | DeprecatedEgressPermissionsManifestLinter | LlmModuleLinter | DeprecatedApiModuleLinter | AppManagedPermissionsSdkLinter)[]>;
30
+ export declare const lint: (filesToLint: string[], manifest: Manifest, environment: string, logger: LintLogger, statsigService: StatsigService, graphqlClient: GraphQLClient, approveRules?: string[], parseFunction?: (filepath: string, parser: typeof tsParser, readFilePromise?: typeof fs.readFile.__promisify__) => Promise<LintInput>, lintersOverride?: LinterInterface[]) => Promise<LintResult[]>;
14
31
  export declare const litelint: (logger: LintLogger, statsigService: StatsigService, linter?: LinterInterface) => Promise<LintResult[]>;
15
32
  //# sourceMappingURL=lint.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"lint.d.ts","sourceRoot":"","sources":["../../src/lint/lint.ts"],"names":[],"mappings":"AAAA,OAAO,EAOL,cAAc,EACf,MAAM,mBAAmB,CAAC;AAC3B,OAAO,EAAE,cAAc,IAAI,QAAQ,EAAE,MAAM,iBAAiB,CAAC;AAC7D,OAAO,EAAE,MAAM,IAAI,CAAC;AAIpB,OAAO,EAAE,QAAQ,EAAE,MAAM,UAAU,CAAC;AACpC,OAAO,EAAE,eAAe,EAAE,SAAS,EAAE,UAAU,EAAE,UAAU,EAAkB,MAAM,oBAAoB,CAAC;AAkBxG,MAAM,WAAW,YAAY;IAC3B,MAAM,EAAE,MAAM,CAAC;IACf,QAAQ,EAAE,MAAM,CAAC;CAClB;AAED,eAAO,MAAM,iBAAiB,GAAI,QAAQ,UAAU,EAAE,aAAa,UAAU,EAAE,EAAE,qBAAkB,KAAG,IA+CrG,CAAC;AAEF,eAAO,MAAM,YAAY,GAAI,aAAa,UAAU,EAAE,KAAG,YAQxD,CAAC;AAEF,eAAO,MAAM,eAAe,GAC1B,UAAU,MAAM,EAChB,QAAQ,OAAO,QAAQ,EACvB,kBAAi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,oBACN,OAAO,EAAE,CAAC,QAAQ,CAAC,aAAa,KAChD,OAAO,CAAC,SAAS,CAoDa,EAC/B,kBAAiB,eAAe,EAAO,KACtC,OAAO,CAAC,UAAU,EAAE,CA+CtB,CAAC;AAwBF,eAAO,MAAM,QAAQ,GACnB,QAAQ,UAAU,EAClB,gBAAgB,cAAc,EAC9B,SAAQ,eAAiE,KACxE,OAAO,CAAC,UAAU,EAAE,CAGtB,CAAC"}
package/out/lint/lint.js CHANGED
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.litelint = exports.lint = exports.parseSourceFile = exports.problemCount = exports.reportLintResults = void 0;
3
+ exports.litelint = exports.lint = exports.getClientSideLintersOnly = exports.parseSourceFile = exports.problemCount = exports.reportLintResults = void 0;
4
4
  const tslib_1 = require("tslib");
5
5
  const cli_shared_1 = require("@forge/cli-shared");
6
6
  const fs_1 = tslib_1.__importDefault(require("fs"));
@@ -23,8 +23,9 @@ const llm_module_linter_1 = require("./linters/llm-module-linter/llm-module-lint
23
23
  const deprecated_api_module_linter_1 = require("./linters/deprecated-api-module-linter/deprecated-api-module-linter");
24
24
  const app_managed_permissions_sdk_linter_1 = require("./linters/app-managed-permissions-sdk-linter/app-managed-permissions-sdk-linter");
25
25
  const function_timeout_linter_1 = require("./linters/function-timeout-linter/function-timeout-linter");
26
+ const server_side_linter_1 = require("./linters/server-side-linter/server-side-linter");
26
27
  const reportLintResults = (logger, lintResults, showSummary = true) => {
27
- let numErrors = 0, numWarnings = 0;
28
+ let numErrors = 0, numWarnings = 0, numApprovals = 0;
28
29
  let noProblemsFound = true;
29
30
  if (lintResults.length) {
30
31
  lintResults.forEach((lintResult) => {
@@ -32,6 +33,7 @@ const reportLintResults = (logger, lintResults, showSummary = true) => {
32
33
  noProblemsFound = false;
33
34
  numErrors += lintResult.errors.length;
34
35
  numWarnings += lintResult.warnings.length;
36
+ numApprovals += lintResult.approvals.length;
35
37
  logger.info(cli_shared_1.Text.lint.filename(path_1.default.resolve(lintResult.file)));
36
38
  lintResult.errors.forEach(({ line, column, message, reference }) => {
37
39
  logger.info(cli_shared_1.Text.lint.error(line, column, message, reference));
@@ -39,6 +41,9 @@ const reportLintResults = (logger, lintResults, showSummary = true) => {
39
41
  lintResult.warnings.forEach(({ line, column, message, reference }) => {
40
42
  logger.info(cli_shared_1.Text.lint.warning(line, column, message, reference));
41
43
  });
44
+ lintResult.approvals.forEach(({ line, column, message, reference }) => {
45
+ logger.info(cli_shared_1.Text.lint.approval(line, column, message, reference));
46
+ });
42
47
  }
43
48
  });
44
49
  }
@@ -51,18 +56,21 @@ const reportLintResults = (logger, lintResults, showSummary = true) => {
51
56
  const numFixableErrors = resultsWithFixers.reduce((count, result) => count + result.errors.length, 0);
52
57
  const numFixableWarnings = resultsWithFixers.reduce((count, result) => count + result.warnings.length, 0);
53
58
  if (showSummary) {
54
- logger.info(cli_shared_1.Text.lint.summary(numErrors, numWarnings, numFixableErrors, numFixableWarnings));
59
+ logger.info(cli_shared_1.Text.lint.summary(numErrors, numWarnings, numApprovals, numFixableErrors, numFixableWarnings));
55
60
  if (numFixableErrors + numFixableWarnings > 0) {
56
61
  logger.info(cli_shared_1.Text.lint.fixSummary(numErrors, numFixableErrors, numFixableWarnings));
57
62
  }
58
63
  else if (numErrors + numWarnings === 1) {
59
64
  logger.info(cli_shared_1.Text.lint.noFixableProblem);
60
65
  }
66
+ else if (numApprovals > 0) {
67
+ logger.info(cli_shared_1.Text.lint.noFixableProblem);
68
+ }
61
69
  else {
62
70
  logger.info(cli_shared_1.Text.lint.noFixableProblems);
63
71
  }
64
72
  }
65
- if (numErrors) {
73
+ if (numErrors || numApprovals) {
66
74
  process.exitCode = 1;
67
75
  }
68
76
  }
@@ -71,8 +79,9 @@ exports.reportLintResults = reportLintResults;
71
79
  const problemCount = (lintResults) => {
72
80
  return lintResults.reduce((prev, curr) => ({
73
81
  errors: prev.errors + curr.errors.length,
74
- warnings: prev.warnings + curr.warnings.length
75
- }), { errors: 0, warnings: 0 });
82
+ warnings: prev.warnings + curr.warnings.length,
83
+ approvals: prev.approvals + curr.approvals.length
84
+ }), { errors: 0, warnings: 0, approvals: 0 });
76
85
  };
77
86
  exports.problemCount = problemCount;
78
87
  const parseSourceFile = async (filepath, parser, readFilePromise = (0, util_1.promisify)(fs_1.default.readFile)) => {
@@ -84,7 +93,11 @@ const parseSourceFile = async (filepath, parser, readFilePromise = (0, util_1.pr
84
93
  };
85
94
  };
86
95
  exports.parseSourceFile = parseSourceFile;
87
- const lint = async (filesToLint, manifest, environment, logger, statsigService, parseFunction = exports.parseSourceFile, linters = [
96
+ const getDefaultLinters = async (manifest, environment, logger, statsigService, graphqlClient, approveRules) => [
97
+ ...(await (0, exports.getClientSideLintersOnly)(manifest, environment, logger, statsigService)),
98
+ await server_side_linter_1.ServerSideLinter.instance(environment, manifest, graphqlClient, logger, approveRules)
99
+ ];
100
+ const getClientSideLintersOnly = async (manifest, environment, logger, statsigService) => [
88
101
  new permission_linter_1.PermissionLinter(environment, manifest, logger),
89
102
  new permissions_manifest_linter_1.PermissionsManifestLinter(logger, statsigService),
90
103
  new agent_product_context_permissions_manifest_linter_1.AgentProductContextPermissionsManifestLinter(logger, statsigService),
@@ -100,7 +113,12 @@ const lint = async (filesToLint, manifest, environment, logger, statsigService,
100
113
  new deprecated_egress_permissions_manifest_linter_1.DeprecatedEgressPermissionsManifestLinter(logger, statsigService),
101
114
  new app_managed_permissions_sdk_linter_1.AppManagedPermissionsSdkLinter(manifest, logger),
102
115
  new function_timeout_linter_1.FunctionTimeoutLinter(manifest, logger)
103
- ]) => {
116
+ ];
117
+ exports.getClientSideLintersOnly = getClientSideLintersOnly;
118
+ const lint = async (filesToLint, manifest, environment, logger, statsigService, graphqlClient, approveRules, parseFunction = exports.parseSourceFile, lintersOverride = []) => {
119
+ const linters = lintersOverride.length > 0
120
+ ? lintersOverride
121
+ : await getDefaultLinters(manifest, environment, logger, statsigService, graphqlClient, approveRules);
104
122
  const { include, exclude } = await (0, cli_shared_1.listTSConfigIncludeExclude)(new cli_shared_1.FileSystemReader());
105
123
  const tsInclude = new Set(include);
106
124
  const tsExclude = new Set(exclude);
@@ -126,6 +144,7 @@ const lint = async (filesToLint, manifest, environment, logger, statsigService,
126
144
  const comparator = (a, b) => a.line === b.line ? a.column - b.column : a.line - b.line;
127
145
  result.errors = result.errors.sort(comparator);
128
146
  result.warnings = result.warnings.sort(comparator);
147
+ result.approvals = result.approvals.sort(comparator);
129
148
  return result;
130
149
  });
131
150
  }
@@ -2,7 +2,8 @@ import { ASTParseResult } from '../parse';
2
2
  import { ConfigFile, Logger } from '@forge/cli-shared';
3
3
  export declare enum LintClass {
4
4
  Error = "error",
5
- Warning = "warning"
5
+ Warning = "warning",
6
+ Approval = "approval"
6
7
  }
7
8
  export type LintLogger = Pick<Logger, 'info'>;
8
9
  export type LintFixer = (errors: LintResultRule[], warnings: LintResultRule[], state: LintFixState) => Promise<LintFixState>;
@@ -16,6 +17,7 @@ export declare class LintResult {
16
17
  private fixer?;
17
18
  errors: LintResultRule[];
18
19
  warnings: LintResultRule[];
20
+ approvals: LintResultRule[];
19
21
  constructor(file: string, fixer?: LintFixer | undefined);
20
22
  add(rule: LintResultRule): void;
21
23
  batchAdd(...rules: LintResultRule[]): void;
@@ -1 +1 @@
1
- {"version":3,"file":"linter-interface.d.ts","sourceRoot":"","sources":["../../src/lint/linter-interface.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,MAAM,UAAU,CAAC;AAE1C,OAAO,EAAE,UAAU,EAAE,MAAM,EAAE,MAAM,mBAAmB,CAAC;AAEvD,oBAAY,SAAS;IACnB,KAAK,UAAU;IACf,OAAO,YAAY;CACpB;AAED,MAAM,MAAM,UAAU,GAAG,IAAI,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;AAE9C,MAAM,MAAM,SAAS,GAAG,CACtB,MAAM,EAAE,cAAc,EAAE,EACxB,QAAQ,EAAE,cAAc,E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IAAI,EAAE,MAAM,CAAC;IACb,MAAM,EAAE,MAAM,CAAC;IACf,QAAQ,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAC;CAChC;AAED,MAAM,WAAW,SAAS;IACxB,GAAG,EAAE,cAAc,GAAG,IAAI,CAAC;IAC3B,QAAQ,EAAE,MAAM,CAAC;CAClB;AAED,MAAM,WAAW,eAAe;IAC9B,SAAS,IAAI,OAAO,CAAC,IAAI,CAAC,CAAC;IAC3B,YAAY,CAAC,IAAI,CAAC,EAAE,SAAS,EAAE,GAAG,OAAO,CAAC,UAAU,EAAE,CAAC,CAAC;CACzD;AAED,MAAM,WAAW,iBAAiB;IAChC,IAAI,EAAE,MAAM,CAAC;IACb,MAAM,EAAE,MAAM,CAAC;CAChB"}
@@ -5,12 +5,14 @@ var LintClass;
5
5
  (function (LintClass) {
6
6
  LintClass["Error"] = "error";
7
7
  LintClass["Warning"] = "warning";
8
+ LintClass["Approval"] = "approval";
8
9
  })(LintClass || (exports.LintClass = LintClass = {}));
9
10
  class LintResult {
10
11
  file;
11
12
  fixer;
12
13
  errors = [];
13
14
  warnings = [];
15
+ approvals = [];
14
16
  constructor(file, fixer) {
15
17
  this.file = file;
16
18
  this.fixer = fixer;
@@ -20,6 +22,9 @@ class LintResult {
20
22
  case LintClass.Error:
21
23
  this.errors.push(rule);
22
24
  break;
25
+ case LintClass.Approval:
26
+ this.approvals.push(rule);
27
+ break;
23
28
  default:
24
29
  this.warnings.push(rule);
25
30
  break;
@@ -29,7 +34,7 @@ class LintResult {
29
34
  rules.forEach(this.add, this);
30
35
  }
31
36
  size() {
32
- return this.errors.length + this.warnings.length;
37
+ return this.errors.length + this.warnings.length + this.approvals.length;
33
38
  }
34
39
  hasFixer() {
35
40
  return !!this.fixer;
@@ -0,0 +1,13 @@
1
+ export declare class ZipArchiver {
2
+ private readonly archive;
3
+ private readonly tempFile;
4
+ private readonly resolves;
5
+ private readonly rejects;
6
+ private constructor();
7
+ static create(): Promise<ZipArchiver>;
8
+ addFile(fileName: string, contents: Buffer): void;
9
+ finalise(): Promise<string>;
10
+ private readonly onArchiveError;
11
+ private readonly onClose;
12
+ }
13
+ //# sourceMappingURL=archiver.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"archiver.d.ts","sourceRoot":"","sources":["../../../../src/lint/linters/server-side-linter/archiver.ts"],"names":[],"mappings":"AAaA,qBAAa,WAAW;IAKF,OAAO,CAAC,QAAQ,CAAC,OAAO;IAJ5C,OAAO,CAAC,QAAQ,CAAC,QAAQ,CAAqC;IAC9D,OAAO,CAAC,QAAQ,CAAC,QAAQ,CAAsC;IAC/D,OAAO,CAAC,QAAQ,CAAC,OAAO,CAAmC;IAE3D,OAAO;WAOa,MAAM,IAAI,OAAO,CAAC,WAAW,CAAC;IAM3C,OAAO,CAAC,QAAQ,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM,GAAG,IAAI;IAIjD,QAAQ,IAAI,OAAO,CAAC,MAAM,CAAC;IAQlC,OAAO,CAAC,QAAQ,CAAC,cAAc,CAK7B;IAEF,OAAO,CAAC,QAAQ,CAAC,OAAO,CAItB;CACH"}
@@ -0,0 +1,45 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.ZipArchiver = void 0;
4
+ const tslib_1 = require("tslib");
5
+ const node_fs_1 = require("node:fs");
6
+ const tmp_1 = tslib_1.__importDefault(require("tmp"));
7
+ class ZipArchiver {
8
+ archive;
9
+ tempFile = tmp_1.default.fileSync({ postfix: '.zip' });
10
+ resolves = [];
11
+ rejects = [];
12
+ constructor(archive) {
13
+ this.archive = archive;
14
+ const output = (0, node_fs_1.createWriteStream)(this.tempFile.name).on('close', this.onClose);
15
+ this.archive.pipe(output);
16
+ this.archive.on('warning', this.onArchiveError);
17
+ this.archive.on('error', this.onArchiveError);
18
+ }
19
+ static async create() {
20
+ const { ZipArchive } = await Promise.resolve().then(() => tslib_1.__importStar(require('archiver')));
21
+ return new ZipArchiver(new ZipArchive());
22
+ }
23
+ addFile(fileName, contents) {
24
+ this.archive.append(contents, { name: fileName });
25
+ }
26
+ finalise() {
27
+ return new Promise((resolve, reject) => {
28
+ this.resolves.push(resolve);
29
+ this.rejects.push(reject);
30
+ return this.archive.finalize();
31
+ });
32
+ }
33
+ onArchiveError = (err) => {
34
+ const error = new Error(err.message);
35
+ for (const reject of this.rejects) {
36
+ reject(error);
37
+ }
38
+ };
39
+ onClose = () => {
40
+ for (const resolve of this.resolves) {
41
+ resolve(this.tempFile.name);
42
+ }
43
+ };
44
+ }
45
+ exports.ZipArchiver = ZipArchiver;
@@ -0,0 +1,30 @@
1
+ import { GraphQLClient, UserError } from '@forge/cli-shared';
2
+ interface ManifestCheckChange {
3
+ added?: (string | null)[] | null;
4
+ key: string;
5
+ removed?: (string | null)[] | null;
6
+ }
7
+ export interface ServerSideOutcome {
8
+ changes?: (ManifestCheckChange | null)[] | null;
9
+ reason: string;
10
+ category: string;
11
+ rule: string;
12
+ value: boolean;
13
+ }
14
+ export declare class NoManifestURLError extends Error {
15
+ constructor();
16
+ }
17
+ export declare class MissingManifestError extends UserError {
18
+ constructor();
19
+ }
20
+ export declare class InvalidManifestError extends UserError {
21
+ constructor();
22
+ }
23
+ export declare class GraphqlClient {
24
+ private readonly graphqlClient;
25
+ constructor(graphqlClient: GraphQLClient);
26
+ createAppManifestUploadUrl(appId: string, environmentKey: string): Promise<string>;
27
+ getAppPreDeploymentCheck(appId: string, environmentKey: string, manifestUrl: string, bypassRules: string[]): Promise<ServerSideOutcome[]>;
28
+ }
29
+ export {};
30
+ //# sourceMappingURL=graphql-client.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"graphql-client.d.ts","sourceRoot":"","sources":["../../../../src/lint/linters/server-side-linter/graphql-client.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,aAAa,EAEb,SAAS,EAIV,MAAM,mBAAmB,CAAC;AAE3B,UAAU,mBAAmB;IAC3B,KAAK,CAAC,EAAE,CAAC,MAAM,GAAG,IAAI,CAAC,EAAE,GAAG,IAAI,CAAC;IACjC,GAAG,EAAE,MAAM,CAAC;IACZ,OAAO,CAAC,EAAE,CAAC,MAAM,GAAG,IAAI,CAAC,EAAE,GAAG,IAAI,CAAC;CACpC;AAED,MAAM,WAAW,iBAAiB;IAChC,OAAO,CAAC,EAAE,CAAC,mBAAmB,GAAG,IAAI,CAAC,EAAE,GAAG,IAAI,CAAC;IAChD,MAAM,EAAE,MAAM,CAAC;IACf,QAAQ,EAAE,MAAM,CAAC;IACjB,IAAI,EAAE,MAAM,CAAC;IACb,KAAK,EAAE,OAAO,CAAC;CAChB;AAED,qBAAa,kBAAmB,SAAQ,KAAK;;CAI5C;AAED,qBAAa,oBAAqB,SAAQ,SAAS;;CAIlD;AAED,qBAAa,oBAAqB,SAAQ,SAAS;;CAIlD;AAED,qBAAa,aAAa;IACZ,OAAO,CAAC,QAAQ,CAAC,aAAa;gBAAb,aAAa,EAAE,aAAa;IAE5C,0BAA0B,CAAC,KAAK,EAAE,MAAM,EAAE,cAAc,EAAE,MAAM;IA+ChE,wBAAwB,CACnC,KAAK,EAAE,MAAM,EACb,cAAc,EAAE,MAAM,EACtB,WAAW,EAAE,MAAM,EACnB,WAAW,EAAE,MAAM,EAAE,GACpB,OAAO,CAAC,iBAAiB,EAAE,CAAC;CAsDhC"}
@@ -0,0 +1,103 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.GraphqlClient = exports.InvalidManifestError = exports.MissingManifestError = exports.NoManifestURLError = void 0;
4
+ const cli_shared_1 = require("@forge/cli-shared");
5
+ class NoManifestURLError extends Error {
6
+ constructor() {
7
+ super(cli_shared_1.Text.artifact.error.noManifestUrl);
8
+ }
9
+ }
10
+ exports.NoManifestURLError = NoManifestURLError;
11
+ class MissingManifestError extends cli_shared_1.UserError {
12
+ constructor() {
13
+ super(cli_shared_1.Text.lint.errorMissingManifest);
14
+ }
15
+ }
16
+ exports.MissingManifestError = MissingManifestError;
17
+ class InvalidManifestError extends cli_shared_1.UserError {
18
+ constructor() {
19
+ super(cli_shared_1.Text.lint.errorInvalidManifest);
20
+ }
21
+ }
22
+ exports.InvalidManifestError = InvalidManifestError;
23
+ class GraphqlClient {
24
+ graphqlClient;
25
+ constructor(graphqlClient) {
26
+ this.graphqlClient = graphqlClient;
27
+ }
28
+ async createAppManifestUploadUrl(appId, environmentKey) {
29
+ const mutation = `
30
+ mutation forge_cli_createAppManifestUploadUrl($input: CreateAppManifestUploadUrlInput!) {
31
+ createAppManifestUploadUrl(input: $input) {
32
+ success
33
+ preSignedUrl
34
+ errors {
35
+ message
36
+ extensions {
37
+ errorType
38
+ statusCode
39
+ }
40
+ }
41
+ }
42
+ }`;
43
+ const { response: { createAppManifestUploadUrl: { success, preSignedUrl, errors } }, requestId } = await this.graphqlClient.mutate(mutation, {
44
+ input: {
45
+ appId,
46
+ environmentKey
47
+ }
48
+ });
49
+ if (!success) {
50
+ const error = (0, cli_shared_1.getError)(errors);
51
+ throw new cli_shared_1.GraphQlMutationError(`${error.message} (requestId: ${requestId || 'unknown'})`, {
52
+ requestId,
53
+ code: error.code,
54
+ statusCode: error.statusCode
55
+ });
56
+ }
57
+ if (!preSignedUrl) {
58
+ throw new NoManifestURLError();
59
+ }
60
+ return preSignedUrl;
61
+ }
62
+ async getAppPreDeploymentCheck(appId, environmentKey, manifestUrl, bypassRules) {
63
+ const query = `
64
+ query forge_cli_appPreDeploymentCheck($input: AppPreDeploymentCheckInput!) {
65
+ appPreDeploymentCheck(input: $input) {
66
+ outcome {
67
+ rule
68
+ category
69
+ value
70
+ reason
71
+ changes {
72
+ key
73
+ added
74
+ removed
75
+ }
76
+ errors {
77
+ key
78
+ message
79
+ line
80
+ column
81
+ }
82
+ }
83
+ }
84
+ }
85
+ `;
86
+ const result = await this.graphqlClient.query(query, {
87
+ input: {
88
+ appId,
89
+ environmentKey,
90
+ manifestUrl,
91
+ bypassRules
92
+ }
93
+ });
94
+ if (!result.appPreDeploymentCheck) {
95
+ throw new MissingManifestError();
96
+ }
97
+ if (!result.appPreDeploymentCheck.outcome) {
98
+ throw new InvalidManifestError();
99
+ }
100
+ return result.appPreDeploymentCheck.outcome.filter((p) => p !== null);
101
+ }
102
+ }
103
+ exports.GraphqlClient = GraphqlClient;
@@ -0,0 +1,24 @@
1
+ import { ManifestSchema as Manifest } from '@forge/manifest';
2
+ import { LintFixState, LintLogger, LintResult, LintResultRule } from '../../linter-interface';
3
+ import { AbstractLinter } from '../../abstract-linter';
4
+ import { FileSystemReader, FileUploader, GraphQLClient } from '@forge/cli-shared';
5
+ import { GraphqlClient, ServerSideOutcome } from './graphql-client';
6
+ import { ZipArchiver } from './archiver';
7
+ export declare class ServerSideLinter extends AbstractLinter {
8
+ private readonly environment;
9
+ private readonly manifest;
10
+ private readonly client;
11
+ private readonly fileReader;
12
+ private readonly archiver;
13
+ private readonly fileUploader;
14
+ private readonly approveRules;
15
+ private manifestUploadUrl;
16
+ constructor(environment: string, manifest: Manifest, client: GraphqlClient, fileReader: FileSystemReader, archiver: ZipArchiver, fileUploader: FileUploader, logger: LintLogger, approveRules: string[] | undefined);
17
+ static instance(environment: string, manifest: Manifest, graphqlClient: GraphQLClient, logger: LintLogger, approveRules?: string[]): Promise<ServerSideLinter>;
18
+ private mapServerSideResponse;
19
+ batchExecuteImpl(): Promise<LintResult[]>;
20
+ bootstrap(): Promise<void>;
21
+ protected getFixer(): ((errors: LintResultRule[], warnings: LintResultRule[], state: LintFixState) => Promise<LintFixState>) | undefined;
22
+ protected getResultsForFixer(results: ServerSideOutcome[]): ServerSideOutcome[];
23
+ }
24
+ //# sourceMappingURL=server-side-linter.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"server-side-linter.d.ts","sourceRoot":"","sources":["../../../../src/lint/linters/server-side-linter/server-side-linter.ts"],"names":[],"mappings":"AAAA,OAAO,EAAiB,cAAc,IAAI,QAAQ,EAAE,MAAM,iBAAiB,CAAC;AAC5E,OAAO,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AE,cAAc,EAAE,EAAE,KAAK,EAAE,YAAY,KAAK,OAAO,CAAC,YAAY,CAAC,CAAC,GACtG,SAAS;IAIb,SAAS,CAAC,kBAAkB,CAAC,OAAO,EAAE,iBAAiB,EAAE,GAAG,iBAAiB,EAAE;CAIhF"}
@@ -0,0 +1,72 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.ServerSideLinter = void 0;
4
+ const manifest_1 = require("@forge/manifest");
5
+ const linter_interface_1 = require("../../linter-interface");
6
+ const abstract_linter_1 = require("../../abstract-linter");
7
+ const cli_shared_1 = require("@forge/cli-shared");
8
+ const graphql_client_1 = require("./graphql-client");
9
+ const archiver_1 = require("./archiver");
10
+ class ServerSideLinter extends abstract_linter_1.AbstractLinter {
11
+ environment;
12
+ manifest;
13
+ client;
14
+ fileReader;
15
+ archiver;
16
+ fileUploader;
17
+ approveRules;
18
+ manifestUploadUrl;
19
+ constructor(environment, manifest, client, fileReader, archiver, fileUploader, logger, approveRules) {
20
+ super(logger);
21
+ this.environment = environment;
22
+ this.manifest = manifest;
23
+ this.client = client;
24
+ this.fileReader = fileReader;
25
+ this.archiver = archiver;
26
+ this.fileUploader = fileUploader;
27
+ this.approveRules = approveRules;
28
+ }
29
+ static async instance(environment, manifest, graphqlClient, logger, approveRules) {
30
+ const fileSystemReader = new cli_shared_1.FileSystemReader();
31
+ return new ServerSideLinter(environment, manifest, new graphql_client_1.GraphqlClient(graphqlClient), fileSystemReader, await archiver_1.ZipArchiver.create(), new cli_shared_1.HttpFileUploader(fileSystemReader), logger, approveRules);
32
+ }
33
+ mapServerSideResponse(results, fixer) {
34
+ const manifestLintResults = new linter_interface_1.LintResult(manifest_1.MANIFEST_FILE, fixer);
35
+ manifestLintResults.batchAdd(...(this.getResultsForFixer(results).map(({ rule, reason, category }) => {
36
+ return {
37
+ class: category.toLowerCase(),
38
+ message: reason,
39
+ reference: rule,
40
+ line: 0,
41
+ column: 0,
42
+ metadata: {}
43
+ };
44
+ }) ?? []).sort((a, b) => a.line - b.line));
45
+ return manifestLintResults;
46
+ }
47
+ async batchExecuteImpl() {
48
+ if (!this.manifestUploadUrl) {
49
+ throw new Error('Bootstrap failed');
50
+ }
51
+ const results = await this.client.getAppPreDeploymentCheck(this.manifest.app.id, this.environment, this.manifestUploadUrl, this.approveRules ? this.approveRules : []);
52
+ return [this.mapServerSideResponse(results, this.getFixer())];
53
+ }
54
+ async bootstrap() {
55
+ const manifestContent = this.fileReader.readBinaryFile(cli_shared_1.manifestFileName);
56
+ if (!manifestContent) {
57
+ throw new Error('No Manifest content found');
58
+ }
59
+ this.archiver.addFile(cli_shared_1.manifestFileName, manifestContent);
60
+ const archivePath = await this.archiver.finalise();
61
+ const uploadUrl = await this.client.createAppManifestUploadUrl(this.manifest.app.id, this.environment);
62
+ await this.fileUploader.uploadFromPath(uploadUrl, archivePath);
63
+ this.manifestUploadUrl = uploadUrl;
64
+ }
65
+ getFixer() {
66
+ return undefined;
67
+ }
68
+ getResultsForFixer(results) {
69
+ return results?.filter((outcome) => outcome.value) || [];
70
+ }
71
+ }
72
+ exports.ServerSideLinter = ServerSideLinter;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@forge/lint",
3
- "version": "6.0.3-next.6",
3
+ "version": "6.0.3-next.7-experimental-116e5ca",
4
4
  "description": "Linting for forge apps",
5
5
  "main": "out/index.js",
6
6
  "license": "SEE LICENSE IN LICENSE.txt",
@@ -11,7 +11,7 @@
11
11
  },
12
12
  "devDependencies": {
13
13
  "@atlassian/xen-test-util": "^4.2.0",
14
- "@forge/api": "^8.0.3-next.0",
14
+ "@forge/api": "^8.0.3-next.0-experimental-116e5ca",
15
15
  "@types/array.prototype.flatmap": "^1.2.6",
16
16
  "@types/cross-spawn": "^6.0.6",
17
17
  "@types/eslint": "8.56.12",
@@ -19,15 +19,17 @@
19
19
  "eslint-plugin-import": "^2.29.1"
20
20
  },
21
21
  "dependencies": {
22
- "@forge/cli-shared": "9.3.0-next.6",
23
- "@forge/csp": "6.2.0",
22
+ "@forge/cli-shared": "9.3.0-next.7-experimental-116e5ca",
23
+ "@forge/csp": "6.2.0-experimental-116e5ca",
24
24
  "@forge/egress": "3.0.0",
25
- "@forge/manifest": "13.3.0-next.5",
25
+ "@forge/manifest": "13.3.0-next.6-experimental-116e5ca",
26
26
  "@typescript-eslint/typescript-estree": "^5.62.0",
27
+ "archiver": "^8.0.0",
27
28
  "array.prototype.flatmap": "^1.3.3",
28
29
  "@atlassian/atlassian-openapi": "^1.0.6",
29
30
  "cross-spawn": "^7.0.6",
30
31
  "node-fetch": "2.7.0",
32
+ "tmp": "^0.2.3",
31
33
  "typescript": "5.9.2"
32
34
  },
33
35
  "publishConfig": {