@forge/lint 5.17.1-next.2 → 5.18.0-experimental-a6c6519

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,71 @@
1
1
  # @forge/lint
2
2
 
3
+ ## 5.18.0-experimental-a6c6519
4
+
5
+ ### Patch Changes
6
+
7
+ - Updated dependencies [5b726e6]
8
+ - Updated dependencies [7f9ae91]
9
+ - @forge/manifest@12.6.0-experimental-a6c6519
10
+ - @forge/cli-shared@8.20.0-experimental-a6c6519
11
+ - @forge/csp@5.7.0-experimental-a6c6519
12
+
13
+ ## 5.18.0
14
+
15
+ ### Minor Changes
16
+
17
+ - 955c1ab: Add agent product context scope validation for rovo:agentConnector modules
18
+
19
+ ### Patch Changes
20
+
21
+ - Updated dependencies [8b7704f]
22
+ - Updated dependencies [c6ee214]
23
+ - Updated dependencies [4964a50]
24
+ - Updated dependencies [4af6ca2]
25
+ - Updated dependencies [1e710ce]
26
+ - Updated dependencies [911bef1]
27
+ - Updated dependencies [399ae7d]
28
+ - Updated dependencies [955c1ab]
29
+ - Updated dependencies [53b24df]
30
+ - Updated dependencies [36fbb18]
31
+ - Updated dependencies [3b625c7]
32
+ - @forge/manifest@12.6.0
33
+ - @forge/cli-shared@8.20.0
34
+ - @forge/csp@5.7.0
35
+
36
+ ## 5.18.0-next.5
37
+
38
+ ### Patch Changes
39
+
40
+ - Updated dependencies [3b625c7]
41
+ - @forge/manifest@12.6.0-next.3
42
+ - @forge/cli-shared@8.20.0-next.5
43
+
44
+ ## 5.18.0-next.4
45
+
46
+ ### Minor Changes
47
+
48
+ - 955c1ab: Add agent product context scope validation for rovo:agentConnector modules
49
+
50
+ ### Patch Changes
51
+
52
+ - Updated dependencies [8b7704f]
53
+ - Updated dependencies [4964a50]
54
+ - Updated dependencies [4af6ca2]
55
+ - Updated dependencies [911bef1]
56
+ - Updated dependencies [955c1ab]
57
+ - Updated dependencies [53b24df]
58
+ - @forge/manifest@12.6.0-next.2
59
+ - @forge/csp@5.7.0-next.0
60
+ - @forge/cli-shared@8.20.0-next.4
61
+
62
+ ## 5.17.1-next.3
63
+
64
+ ### Patch Changes
65
+
66
+ - Updated dependencies [c6ee214]
67
+ - @forge/cli-shared@8.20.0-next.3
68
+
3
69
  ## 5.17.1-next.2
4
70
 
5
71
  ### 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,oBACN,OAAO,GAAG,QAAQ,CAAC,aAAa,KAChD,QAAQ,SAAS,CAOnB,CAAC;AAEF,eAAO,MAAM,IAAI,gBACF,MAAM,EAAE,YACX,QAAQ,eACL,MAAM,UACX,UAAU,kBACF,cAAc,6BAjBpB,MAAM,UACR,eAAe,oBACN,OAAO,GAAG,QAAQ,CAAC,aAAa,KAChD,QAAQ,SAAS,CAAC,YAgBV,eAAe,EAAE,KAezB,QAAQ,UAAU,EAAE,CAyCtB,CAAC;AAwBF,eAAO,MAAM,QAAQ,WACX,UAAU,kBACF,cAAc,WACtB,eAAe,KACtB,QAAQ,UAAU,EAAE,CAGtB,CAAC"}
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;AAiBxG,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,oBACN,OAAO,GAAG,QAAQ,CAAC,aAAa,KAChD,QAAQ,SAAS,CAOnB,CAAC;AAEF,eAAO,MAAM,IAAI,gBACF,MAAM,EAAE,YACX,QAAQ,eACL,MAAM,UACX,UAAU,kBACF,cAAc,6BAjBpB,MAAM,UACR,eAAe,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.2",
3
+ "version": "5.18.0-experimental-a6c6519",
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": "^7.1.4-next.0",
14
+ "@forge/api": "^7.1.4",
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,10 +19,10 @@
19
19
  "eslint-plugin-import": "^2.29.1"
20
20
  },
21
21
  "dependencies": {
22
- "@forge/cli-shared": "8.20.0-next.2",
23
- "@forge/csp": "5.6.1",
22
+ "@forge/cli-shared": "8.20.0-experimental-a6c6519",
23
+ "@forge/csp": "5.7.0-experimental-a6c6519",
24
24
  "@forge/egress": "2.3.2",
25
- "@forge/manifest": "12.6.0-next.1",
25
+ "@forge/manifest": "12.6.0-experimental-a6c6519",
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",