@moltium/core 0.1.26 → 0.1.27

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/dist/index.mjs CHANGED
@@ -2968,7 +2968,7 @@ var AgentCardBuilder = class {
2968
2968
  name: config.name,
2969
2969
  description: config.personality.bio || `${config.name} - An autonomous AI agent`,
2970
2970
  protocolVersion: "0.3.0",
2971
- version: "0.1.26",
2971
+ version: "0.1.27",
2972
2972
  url: `${baseUrl}/a2a/jsonrpc`,
2973
2973
  skills,
2974
2974
  capabilities,
@@ -3419,7 +3419,8 @@ function createApp(agent, options = {}) {
3419
3419
  const host = options.host || "0.0.0.0";
3420
3420
  const cardHost = host === "0.0.0.0" ? "localhost" : host;
3421
3421
  const protocol = cardHost === "localhost" || cardHost === "127.0.0.1" ? "http" : "https";
3422
- const baseUrl = options.a2aConfig?.baseUrl || `${protocol}://${cardHost}:${port}`;
3422
+ const rawBaseUrl = options.a2aConfig?.baseUrl || `${protocol}://${cardHost}:${port}`;
3423
+ const baseUrl = rawBaseUrl.replace("://0.0.0.0:", "://localhost:");
3423
3424
  const a2aIntegration = createA2AIntegration(agent, {
3424
3425
  a2aConfig: {
3425
3426
  enabled: true,