@moltium/core 0.1.26 → 0.1.28
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.d.cts +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +7 -6
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +7 -6
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.d.cts
CHANGED
package/dist/index.d.ts
CHANGED
package/dist/index.js
CHANGED
|
@@ -1533,7 +1533,7 @@ var A2AClient = class {
|
|
|
1533
1533
|
constructor(config) {
|
|
1534
1534
|
this.config = {
|
|
1535
1535
|
agentUrl: config.agentUrl,
|
|
1536
|
-
agentCardPath: config.agentCardPath || ".well-known/agent
|
|
1536
|
+
agentCardPath: config.agentCardPath || ".well-known/agent.json",
|
|
1537
1537
|
timeout: config.timeout || 3e4
|
|
1538
1538
|
};
|
|
1539
1539
|
const agentUrl = this.config.agentUrl;
|
|
@@ -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.28",
|
|
3044
3044
|
url: `${baseUrl}/a2a/jsonrpc`,
|
|
3045
3045
|
skills,
|
|
3046
3046
|
capabilities,
|
|
@@ -3461,7 +3461,7 @@ var A2AIntegration = class {
|
|
|
3461
3461
|
const protocol = host === "localhost" || host === "127.0.0.1" ? "http" : "https";
|
|
3462
3462
|
const baseUrl = `${protocol}://${host}:${port}`;
|
|
3463
3463
|
logger9.info("A2A endpoints available:");
|
|
3464
|
-
logger9.info(` Agent Card: ${baseUrl}/.well-known/agent
|
|
3464
|
+
logger9.info(` Agent Card: ${baseUrl}/.well-known/agent.json`);
|
|
3465
3465
|
logger9.info(` JSON-RPC: ${baseUrl}/a2a/jsonrpc`);
|
|
3466
3466
|
logger9.info(` HTTP+JSON: ${baseUrl}/a2a/rest`);
|
|
3467
3467
|
}
|
|
@@ -3479,7 +3479,7 @@ function createA2AIntegration(agent, options = {}) {
|
|
|
3479
3479
|
|
|
3480
3480
|
// src/server/app.ts
|
|
3481
3481
|
var logger10 = createLogger("Server");
|
|
3482
|
-
var AGENT_CARD_PATH = ".well-known/agent
|
|
3482
|
+
var AGENT_CARD_PATH = ".well-known/agent.json";
|
|
3483
3483
|
function createApp(agent, options = {}) {
|
|
3484
3484
|
const app = (0, import_express2.default)();
|
|
3485
3485
|
app.use(import_express2.default.json());
|
|
@@ -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,
|
|
@@ -3522,7 +3523,7 @@ async function startServer(agent, options = {}) {
|
|
|
3522
3523
|
const protocol = logHost === "localhost" || logHost === "127.0.0.1" ? "http" : "https";
|
|
3523
3524
|
const baseUrl = `${protocol}://${logHost}:${port}`;
|
|
3524
3525
|
logger10.info("A2A Protocol Endpoints:");
|
|
3525
|
-
logger10.info(` Agent Card: ${baseUrl}/.well-known/agent
|
|
3526
|
+
logger10.info(` Agent Card: ${baseUrl}/.well-known/agent.json`);
|
|
3526
3527
|
logger10.info(` JSON-RPC: ${baseUrl}/a2a/jsonrpc`);
|
|
3527
3528
|
logger10.info(` HTTP+JSON: ${baseUrl}/a2a/rest`);
|
|
3528
3529
|
}
|