@gnomondigital/nebulas-kit-core 0.3.0 → 0.3.1
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.
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
* Fetches agent card from A2A_URL/.well-known/agent-card.json when A2A_URL is set.
|
|
4
4
|
* Framework-agnostic; returns JSON response body.
|
|
5
5
|
*/
|
|
6
|
-
const A2A_URL = process.env.
|
|
6
|
+
const A2A_URL = process.env.A2A_URL || process.env.NEXT_PUBLIC_A2A_URL || "";
|
|
7
7
|
async function fetchAgentCard(headers) {
|
|
8
8
|
const base = A2A_URL.replace(/\/$/, "");
|
|
9
9
|
if (!base)
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
* Accepts a minimal request/response interface.
|
|
4
4
|
*/
|
|
5
5
|
import { getAuthStrategy, getAuthHeaders, } from "./auth-strategies.js";
|
|
6
|
-
const A2A_URL = process.env.
|
|
6
|
+
const A2A_URL = process.env.A2A_URL || process.env.NEXT_PUBLIC_A2A_URL || "http://localhost:9999";
|
|
7
7
|
/**
|
|
8
8
|
* Handle A2A proxy request. Returns response to send.
|
|
9
9
|
*/
|