npm package diff
Package: @forge/manifest
Versions: 10.1.1-next.3 - 10.2.0-next.4
Modified: package/out/text/errors.js
Index: package/out/text/errors.js
===================================================================
--- package/out/text/errors.js
+++ package/out/text/errors.js
@@ -139,9 +139,10 @@
undefinedActionName: (action) => `Action '${action}' does not have a name property. 'name' property will be required when Forge Agents are GA.`
},
action: {
unreferencedAction: (action) => `Action '${action}' is not referenced by any Rovo agent or automation:actionProvider module.`,
- tooManyAutomationActions: (limit) => `App is allowed to define max ${limit} actions within automation:actionProvider modules`
+ tooManyAutomationActions: (limit) => `App is allowed to define max ${limit} actions within automation:actionProvider modules`,
+ undefinedAutomationActionReference: (module, moduleKey) => `${module} references undefined action module with key '${moduleKey}'.`
},
'migration:dataResidency': {
remoteNotFound: (key) => `No remote found with key '${key}' matching migration:dataResidency.remote.`,
moreThanOneRemote: () => `More than one remote found in migration:dataResidency.`,
Modified: package/out/validators/modules-validators/automation/validate-automation-provider-actions.js
Index: package/out/validators/modules-validators/automation/validate-automation-provider-actions.js
===================================================================
--- package/out/validators/modules-validators/automation/validate-automation-provider-actions.js
+++ package/out/validators/modules-validators/automation/validate-automation-provider-actions.js
@@ -7,8 +7,17 @@
const MAX_AUTOMATION_ACTIONS = 20;
const validateAutomationProviderActions = (allModules, yamlContentByLine) => {
const validationErrors = [];
const automationActionProviders = allModules[types_1.AllModuleTypes.AutomationActionProvider];
+ const actionKey = (0, utils_1.cleanKey)(types_1.AllModuleTypes.CoreAction);
+ const definedActions = allModules[actionKey]?.map((action) => action.key) ?? [];
+ automationActionProviders?.forEach((automationAction) => {
+ automationAction.actions.forEach((action) => {
+ if (!definedActions.includes(action)) {
+ validationErrors.push(getUndefinedActionValidationError(automationAction.key, action, yamlContentByLine));
+ }
+ });
+ });
const count = automationActionProviders?.reduce((sum, actionProvider) => sum + (actionProvider.actions?.length ?? 0), 0) ?? 0;
if (count > MAX_AUTOMATION_ACTIONS) {
validationErrors.push(getValidationError(yamlContentByLine));
}
@@ -22,4 +31,12 @@
level: 'error',
...(0, utils_1.findPosition)(types_1.AllModuleTypes.AutomationActionProvider, yamlContentByLine)
};
}
+function getUndefinedActionValidationError(agent, action, yamlContentByLine) {
+ return {
+ message: text_1.errors.modules.action.undefinedAutomationActionReference(agent, action),
+ reference: text_1.References.Modules,
+ level: 'error',
+ ...(0, utils_1.findPosition)(agent, yamlContentByLine)
+ };
+}
Modified: package/package.json
Index: package/package.json
===================================================================
--- package/package.json
+++ package/package.json
@@ -1,7 +1,7 @@
{
"name": "@forge/manifest",
- "version": "10.1.1-next.3",
+ "version": "10.2.0-next.4",
"description": "Definitions and validations of the Forge manifest",
"main": "out/index.js",
"scripts": {
"build": "yarn run compile",
Modified: package/out/text/errors.d.ts.map
Index: package/out/text/errors.d.ts.map
===================================================================
--- package/out/text/errors.d.ts.map
+++ package/out/text/errors.d.ts.map
@@ -1,1 +1,1 @@
-{"version":3,"file":"errors.d.ts","sourceRoot":"","sources":["../../src/text/errors.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,wBAAwB,EAAE,MAAM,oBAAoB,CAAC;AACnE,OAAO,EAAE,cAAc,EAAE,MAAM,UAAU,CAAC;AAG1C,eAAO,MAAM,MAAM;8BACS,MAAM,KAAG,MAAM;2BACpB,MAAM;yBAEN,MAAM,GAAG,SAAS,QAAQ,MAAM,EAAE,UAAU,MAAM,GAAG,SAAS,KAAG,MAAM;;uBAO3E,MAAM,EAAE,EAAE,GAAG,SAAS,KAAG,MAAM;4BAI1B,MAAM,EAAE,KAAG,MAAM;mCACV,MAAM,SAAS,MAAM,mBAAmB,MAAM,KAAG,MAAM;mDAIvC,MAAM,KAAG,MAAM;4BAEtC,MAAM,EAAE,GAAG,SAAS,KAAG,MAAM;+CAIV,MAAM;6CACR,MAAM,gBAAgB,MAAM;qCAEpC,MAAM;2CACA,MAAM;6CACJ,MAAM;;;qCAGd,MAAM,SAAS,MAAM,KAAG,MAAM;4CAEvB,MAAM,SAAS,MAAM,KAAG,MAAM;oDAEtB,MAAM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M;kDAErC,wBAAwB,QAAQ,MAAM,KAAG,MAAM;mDAE9C,wBAAwB,KAAG,MAAM;mCAEjD,MAAM,KAAG,MAAM;;oDAEE,MAAM,aAAa,MAAM,KAAG,MAAM;4CAE1C,MAAM,sBAAsB,wBAAwB,YAAY,MAAM;;;;mCAKjF,MAAM;;;CAQlC,CAAC;AAEF,oBAAY,UAAU;IACpB,eAAe,2BAA2B;IAC1C,eAAe,wBAAwB;IACvC,WAAW,4BAA4B;IACvC,WAAW,+BAA+B;IAC1C,aAAa,8BAA8B;IAC3C,OAAO,0BAA0B;IACjC,cAAc,kCAAkC;IAChD,SAAS,4BAA4B;IACrC,SAAS,4BAA4B;IACrC,UAAU,wBAAwB;IAClC,GAAG,8BAA8B;CAClC"}
\ No newline at end of file
Modified: package/out/validators/modules-validators/automation/validate-automation-provider-actions.d.ts.map
Index: package/out/validators/modules-validators/automation/validate-automation-provider-actions.d.ts.map
===================================================================
--- package/out/validators/modules-validators/automation/validate-automation-provider-actions.d.ts.map
+++ package/out/validators/modules-validators/automation/validate-automation-provider-actions.d.ts.map
@@ -1,1 +1,1 @@
-{"version":3,"file":"validate-automation-provider-actions.d.ts","sourceRoot":"","sources":["../../../../src/validators/modules-validators/automation/validate-automation-provider-actions.ts"],"names":[],"mappings":"AAAA,OAAO,EAAkB,eAAe,EAAE,MAAM,gBAAgB,CAAC;AAGjE,OAAO,EAAE,OAAO,EAAE,MAAM,0BAA0B,CAAC;AAInD,eAAO,MAAM,iCAAiC,eAChC,OAAO,sBACC,MAAM,EAAE,KAC3B,eAAe,EAcjB,CAAC"}
\ No newline at end of file
+{"version":3,"file":"validate-automation-provider-actions.d.ts","sourceRoot":"","sources":["../../../../src/validators/modules-validators/automation/validate-automation-provider-actions.ts"],"names":[],"mappings":"AAAA,OAAO,EAAkB,eAAe,EAAE,MAAM,gBAAgB,CAAC;AAGjE,OAAO,EAAE,OAAO,EAAE,MAAM,0BAA0B,CAAC;AAInD,eAAO,MAAM,iCAAiC,eAChC,OAAO,sBACC,MAAM,EAAE,KAC3B,eAAe,EAsBjB,CAAC"}
\ No newline at end of file
Modified: package/CHANGELOG.md
Index: package/CHANGELOG.md
===================================================================
--- package/CHANGELOG.md
+++ package/CHANGELOG.md
@@ -1,6 +1,12 @@
# @forge/manifest
+## 10.2.0-next.4
+
+### Minor Changes
+
+- 5144b15: Adding validation for undefined actions under automation:actionProvider module
+
## 10.1.1-next.3
### Patch Changes
Modified: package/out/text/errors.d.ts
Index: package/out/text/errors.d.ts
===================================================================
--- package/out/text/errors.d.ts
+++ package/out/text/errors.d.ts
@@ -128,8 +128,9 @@
};
action: {
unreferencedAction: (action: string) => string;
tooManyAutomationActions: (limit: number) => string;
+ undefinedAutomationActionReference: (module: string, moduleKey: string) => string;
};
'migration:dataResidency': {
remoteNotFound: (key: string) => string;
moreThanOneRemote: () => string;