@forge/lint 5.17.1-next.3 → 5.18.0-next.4

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,23 @@
1
1
  # @forge/lint
2
2
 
3
+ ## 5.18.0-next.4
4
+
5
+ ### Minor Changes
6
+
7
+ - 955c1ab: Add agent product context scope validation for rovo:agentConnector modules
8
+
9
+ ### Patch Changes
10
+
11
+ - Updated dependencies [8b7704f]
12
+ - Updated dependencies [4964a50]
13
+ - Updated dependencies [4af6ca2]
14
+ - Updated dependencies [911bef1]
15
+ - Updated dependencies [955c1ab]
16
+ - Updated dependencies [53b24df]
17
+ - @forge/manifest@12.6.0-next.2
18
+ - @forge/csp@5.7.0-next.0
19
+ - @forge/cli-shared@8.20.0-next.4
20
+
3
21
  ## 5.17.1-next.3
4
22
 
5
23
  ### Patch Changes
@@ -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;AAgBxG,MAAM,WAAW,YAAY;IAC3B,MAAM,EAAE,MAAM,CAAC;IACf,QAAQ,EAAE,MAAM,CAAC;CAClB;AAED,eAAO,MAAM,iBAAiB,WAAY,UAAU,eAAe,UAAU,EAAE,4BAAuB,IA+CrG,CAAC;AAEF,eAAO,MAAM,YAAY,gBAAiB,UAAU,EAAE,KAAG,YAQxD,CAAC;AAEF,eAAO,MAAM,eAAe,aAChB,MAAM,UACR,eAAe,oBAC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,oBACN,OAAO,GAAG,QAAQ,CAAC,aAAa,KAChD,QAAQ,SAAS,CAAC,YAgBV,eAAe,EAAE,KAgBzB,QAAQ,UAAU,EAAE,CAyCtB,CAAC;AAwBF,eAAO,MAAM,QAAQ,WACX,UAAU,kBACF,cAAc,WACtB,eAAe,KACtB,QAAQ,UAAU,EAAE,CAGtB,CAAC"}
package/out/lint/lint.js CHANGED
@@ -10,6 +10,7 @@ const parse_1 = require("../parse");
10
10
  const basic_manifest_linter_1 = require("./linters/manifest-linter/basic-manifest-linter");
11
11
  const handler_linter_1 = require("./linters/handler-linter/handler-linter");
12
12
  const full_manifest_linter_1 = require("./linters/manifest-linter/full-manifest-linter");
13
+ const agent_product_context_permissions_manifest_linter_1 = require("./linters/manifest-linter/agent-product-context-permissions-manifest-linter");
13
14
  const permissions_manifest_linter_1 = require("./linters/manifest-linter/permissions-manifest-linter");
14
15
  const permission_linter_1 = require("./linters/permission-linter/permission-linter");
15
16
  const deprecated_csp_permissions_manifest_linter_1 = require("./linters/manifest-linter/deprecated-csp-permissions-manifest-linter");
@@ -85,6 +86,7 @@ exports.parseSourceFile = parseSourceFile;
85
86
  const lint = async (filesToLint, manifest, environment, logger, statsigService, parseFunction = exports.parseSourceFile, linters = [
86
87
  new permission_linter_1.PermissionLinter(environment, manifest, logger),
87
88
  new permissions_manifest_linter_1.PermissionsManifestLinter(logger, statsigService),
89
+ new agent_product_context_permissions_manifest_linter_1.AgentProductContextPermissionsManifestLinter(logger, statsigService),
88
90
  new deprecated_csp_permissions_manifest_linter_1.DeprecatedCspPermissionsManifestLinter(logger, statsigService),
89
91
  new full_manifest_linter_1.FullManifestLinter(logger, statsigService),
90
92
  new handler_linter_1.HandlerLinter(environment, manifest, logger),
@@ -0,0 +1,10 @@
1
+ import { ManifestValidationResult, SchemaValidationError } from '@forge/manifest';
2
+ import { AbstractManifestLinter } from './abstract-manifest-linter';
3
+ import { LintResultRule, LintFixState, LintLogger } from '../../linter-interface';
4
+ import { StatsigService } from '@forge/cli-shared';
5
+ export declare class AgentProductContextPermissionsManifestLinter extends AbstractManifestLinter {
6
+ constructor(logger: LintLogger, statsigService: StatsigService);
7
+ getFixer(): ((errors: LintResultRule[], warnings: LintResultRule[], state: LintFixState) => Promise<LintFixState>) | undefined;
8
+ getResultsForFixer(results: ManifestValidationResult<any>): SchemaValidationError[];
9
+ }
10
+ //# sourceMappingURL=agent-product-context-permissions-manifest-linter.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"agent-product-context-permissions-manifest-linter.d.ts","sourceRoot":"","sources":["../../../../src/lint/linters/manifest-linter/agent-product-context-permissions-manifest-linter.ts"],"names":[],"mappings":"AAAA,OAAO,EAAmB,wBAAwB,EAAE,qBAAqB,EAAE,MAAM,iBAAiB,CAAC;AACnG,OAAO,EAAE,sBAAsB,EAAE,MAAM,4BAA4B,CAAC;AACpE,OAAO,EAAE,cAAc,EAAE,YAAY,EAAE,UAAU,EAAE,MAAM,wBAAwB,CAAC;AAElF,OAAO,EAAE,cAAc,EAAE,MAAM,mBAAmB,CAAC;AAEnD,qBAAa,4CAA6C,SAAQ,sBAAsB;gBAC1E,MAAM,EAAE,UAAU,EAAE,cAAc,EAAE,cAAc;IAI9D,QAAQ,IACJ,CAAC,CAAC,MAAM,EAAE,cAAc,EAAE,EAAE,QAAQ,EAAE,cAAc,EAAE,EAAE,KAAK,EAAE,YAAY,KAAK,OAAO,CAAC,YAAY,CAAC,CAAC,GACtG,SAAS;IAIb,kBAAkB,CAAC,OAAO,EAAE,wBAAwB,CAAC,GAAG,CAAC,GAAG,qBAAqB,EAAE;CAGpF"}
@@ -0,0 +1,18 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.AgentProductContextPermissionsManifestLinter = void 0;
4
+ const manifest_1 = require("@forge/manifest");
5
+ const abstract_manifest_linter_1 = require("./abstract-manifest-linter");
6
+ const permission_linter_1 = require("../permission-linter/permission-linter");
7
+ class AgentProductContextPermissionsManifestLinter extends abstract_manifest_linter_1.AbstractManifestLinter {
8
+ constructor(logger, statsigService) {
9
+ super(manifest_1.ValidationTypes.AGENT_PRODUCT_CONTEXT, logger, statsigService);
10
+ }
11
+ getFixer() {
12
+ return permission_linter_1.fixMissingPermissions;
13
+ }
14
+ getResultsForFixer(results) {
15
+ return results.errors?.filter((error) => error.metadata?.missingPermission) || [];
16
+ }
17
+ }
18
+ exports.AgentProductContextPermissionsManifestLinter = AgentProductContextPermissionsManifestLinter;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@forge/lint",
3
- "version": "5.17.1-next.3",
3
+ "version": "5.18.0-next.4",
4
4
  "description": "Linting for forge apps",
5
5
  "main": "out/index.js",
6
6
  "license": "SEE LICENSE IN LICENSE.txt",
@@ -19,10 +19,10 @@
19
19
  "eslint-plugin-import": "^2.29.1"
20
20
  },
21
21
  "dependencies": {
22
- "@forge/cli-shared": "8.20.0-next.3",
23
- "@forge/csp": "5.6.1",
22
+ "@forge/cli-shared": "8.20.0-next.4",
23
+ "@forge/csp": "5.7.0-next.0",
24
24
  "@forge/egress": "2.3.2",
25
- "@forge/manifest": "12.6.0-next.1",
25
+ "@forge/manifest": "12.6.0-next.2",
26
26
  "@typescript-eslint/typescript-estree": "^5.62.0",
27
27
  "array.prototype.flatmap": "^1.3.3",
28
28
  "@atlassian/atlassian-openapi": "^1.0.6",