@forge/manifest 13.5.0-next.4 → 13.5.0-next.5

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,11 @@
1
1
  # @forge/manifest
2
2
 
3
+ ## 13.5.0-next.5
4
+
5
+ ### Patch Changes
6
+
7
+ - dea5ecf: Improve manifest unreferenced action validation
8
+
3
9
  ## 13.5.0-next.4
4
10
 
5
11
  ### Minor Changes
@@ -197,7 +197,7 @@ exports.errors = {
197
197
  incorrectMcp: (module, toolKey) => `${module} references undefined action module with key '${toolKey}'.`
198
198
  },
199
199
  action: {
200
- unreferencedAction: (action) => `Action '${action}' is not referenced by any Rovo agent or automation:actionProvider module.`,
200
+ unreferencedAction: (action) => `Action '${action}' is not referenced by any Rovo module or automation:actionProvider module.`,
201
201
  tooManyAutomationActions: (limit) => `App is allowed to define max ${limit} actions within automation:actionProvider modules`,
202
202
  undefinedAutomationActionReference: (module, moduleKey) => `${module} references undefined action module with key '${moduleKey}'.`
203
203
  },
@@ -18,6 +18,7 @@ function getUnreferencedActions(allModules) {
18
18
  const allActions = new Set((allModules[actionKey]?.map((action) => action.key) ?? []));
19
19
  const rovoAgents = allModules[types_1.AllModuleTypes.RovoAgent];
20
20
  const rovoSkills = allModules[types_1.AllModuleTypes.RovoSkill];
21
+ const rovoMcps = allModules[types_1.AllModuleTypes.RovoMcp];
21
22
  const automationActionProviders = allModules[types_1.AllModuleTypes.AutomationActionProvider];
22
23
  rovoAgents?.forEach((agent) => {
23
24
  agent.actions?.forEach((action) => {
@@ -29,6 +30,11 @@ function getUnreferencedActions(allModules) {
29
30
  allActions.delete(tool);
30
31
  });
31
32
  });
33
+ rovoMcps?.forEach((mcp) => {
34
+ mcp.tools?.forEach((tool) => {
35
+ allActions.delete(tool);
36
+ });
37
+ });
32
38
  automationActionProviders?.forEach((actionProvider) => {
33
39
  actionProvider.actions?.forEach((action) => {
34
40
  allActions.delete(action);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@forge/manifest",
3
- "version": "13.5.0-next.4",
3
+ "version": "13.5.0-next.5",
4
4
  "description": "Definitions and validations of the Forge manifest",
5
5
  "main": "out/index.js",
6
6
  "scripts": {