@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.js +3 -2
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +3 -2
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -3040,7 +3040,7 @@ var AgentCardBuilder = class {
|
|
|
3040
3040
|
name: config.name,
|
|
3041
3041
|
description: config.personality.bio || `${config.name} - An autonomous AI agent`,
|
|
3042
3042
|
protocolVersion: "0.3.0",
|
|
3043
|
-
version: "0.1.
|
|
3043
|
+
version: "0.1.27",
|
|
3044
3044
|
url: `${baseUrl}/a2a/jsonrpc`,
|
|
3045
3045
|
skills,
|
|
3046
3046
|
capabilities,
|
|
@@ -3491,7 +3491,8 @@ function createApp(agent, options = {}) {
|
|
|
3491
3491
|
const host = options.host || "0.0.0.0";
|
|
3492
3492
|
const cardHost = host === "0.0.0.0" ? "localhost" : host;
|
|
3493
3493
|
const protocol = cardHost === "localhost" || cardHost === "127.0.0.1" ? "http" : "https";
|
|
3494
|
-
const
|
|
3494
|
+
const rawBaseUrl = options.a2aConfig?.baseUrl || `${protocol}://${cardHost}:${port}`;
|
|
3495
|
+
const baseUrl = rawBaseUrl.replace("://0.0.0.0:", "://localhost:");
|
|
3495
3496
|
const a2aIntegration = createA2AIntegration(agent, {
|
|
3496
3497
|
a2aConfig: {
|
|
3497
3498
|
enabled: true,
|