@forge/manifest

11.3.1-next.211.3.1-next.3
~

Modified (4 files)

Index: package/out/validators/modules-validators/rovo/validate-agent-connector-remote-endpoints.js
===================================================================
--- package/out/validators/modules-validators/rovo/validate-agent-connector-remote-endpoints.js
+++ package/out/validators/modules-validators/rovo/validate-agent-connector-remote-endpoints.js
@@ -10,29 +10,27 @@
     const endpointModuleKey = (0, utils_1.cleanKey)(types_1.AllModuleTypes.CoreEndpoint);
     const endpointModules = allModules[endpointModuleKey] ?? [];
     agentConnectors?.forEach((agentConnector) => {
         const a2aProtocol = agentConnector.protocols.agent2Agent;
-        const endpointReferences = [a2aProtocol.agentCard.endpoint, a2aProtocol.jsonRpcTransport?.endpoint].filter(Boolean);
+        const endpointReference = a2aProtocol.jsonRpcTransport?.endpoint;
         const agentKey = agentConnector.key;
-        endpointReferences.forEach((endpointReference) => {
-            const endpointModule = endpointModules.find((e) => e.key === endpointReference);
-            if (!endpointModule) {
-                validationErrors.push({
-                    message: text_1.errors.modules.rovo.incorrectA2AEndpointReference(agentKey, endpointReference),
-                    reference: text_1.References.Modules,
-                    level: 'error',
-                    ...(0, utils_1.findPosition)(agentKey, yamlContentByLine)
-                });
-            }
-            if (endpointModule && !endpointModule?.remote) {
-                validationErrors.push({
-                    message: text_1.errors.modules.rovo.incorrectA2AEndpointConfiguration(agentKey, endpointReference),
-                    reference: text_1.References.Modules,
-                    level: 'error',
-                    ...(0, utils_1.findPosition)(endpointReference, yamlContentByLine)
-                });
-            }
-        });
+        const endpointModule = endpointModules.find((e) => e.key === endpointReference);
+        if (!endpointModule) {
+            validationErrors.push({
+                message: text_1.errors.modules.rovo.incorrectA2AEndpointReference(agentKey, endpointReference),
+                reference: text_1.References.Modules,
+                level: 'error',
+                ...(0, utils_1.findPosition)(agentKey, yamlContentByLine)
+            });
+        }
+        if (endpointModule && !endpointModule?.remote) {
+            validationErrors.push({
+                message: text_1.errors.modules.rovo.incorrectA2AEndpointConfiguration(agentKey, endpointReference),
+                reference: text_1.References.Modules,
+                level: 'error',
+                ...(0, utils_1.findPosition)(endpointReference, yamlContentByLine)
+            });
+        }
     });
     return validationErrors;
 };
 exports.validateAgentConnectorRemoteEndpoints = validateAgentConnectorRemoteEndpoints;
Index: package/package.json
===================================================================
--- package/package.json
+++ package/package.json
@@ -1,7 +1,7 @@
 {
   "name": "@forge/manifest",
-  "version": "11.3.1-next.2",
+  "version": "11.3.1-next.3",
   "description": "Definitions and validations of the Forge manifest",
   "main": "out/index.js",
   "scripts": {
     "build": "yarn run compile",
Index: package/out/validators/modules-validators/rovo/validate-agent-connector-remote-endpoints.d.ts.map
===================================================================
--- package/out/validators/modules-validators/rovo/validate-agent-connector-remote-endpoints.d.ts.map
+++ package/out/validators/modules-validators/rovo/validate-agent-connector-remote-endpoints.d.ts.map
@@ -1,1 +1,1 @@
-{"version":3,"file":"validate-agent-connector-remote-endpoints.d.ts","sourceRoot":"","sources":["../../../../src/validators/modules-validators/rovo/validate-agent-connector-remote-endpoints.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAkB,MAAM,gBAAgB,CAAC;AAGjE,OAAO,EAAE,OAAO,EAAE,MAAM,0BAA0B,CAAC;AAEnD,eAAO,MAAM,qCAAqC,eACpC,OAAO,sBACC,MAAM,EAAE,KAC3B,eAAe,EAqCjB,CAAC"}
\ No newline at end of file
+{"version":3,"file":"validate-agent-connector-remote-endpoints.d.ts","sourceRoot":"","sources":["../../../../src/validators/modules-validators/rovo/validate-agent-connector-remote-endpoints.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAkB,MAAM,gBAAgB,CAAC;AAGjE,OAAO,EAAE,OAAO,EAAE,MAAM,0BAA0B,CAAC;AAEnD,eAAO,MAAM,qCAAqC,eACpC,OAAO,sBACC,MAAM,EAAE,KAC3B,eAAe,EAmCjB,CAAC"}
\ No newline at end of file
File too large for inline diff