@openserv-labs/client 2.4.1 → 2.4.2

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.
Files changed (2) hide show
  1. package/dist/erc8004-api.js +13 -13
  2. package/package.json +1 -1
@@ -215,25 +215,12 @@ class Erc8004API {
215
215
  // 2. Build ERC-8004 agent card (matches monorepo addRegistrationFile format)
216
216
  const baseUrl = this.client.rawClient.defaults.baseURL || "https://api.openserv.ai";
217
217
  const services = [];
218
- // MCP endpoint (machine-facing, aggregates all x402 triggers)
219
- const mcpEndpoint = `${baseUrl}/workspaces/${workflowId}/trigger-x402-mcp/mcp`;
220
- services.push({
221
- name: "MCP",
222
- endpoint: mcpEndpoint,
223
- version: "2025-06-18",
224
- });
225
218
  for (const t of callableTriggers) {
226
219
  const meta = {};
227
220
  if (t.name)
228
221
  meta.triggerName = t.name;
229
222
  if (t.description)
230
223
  meta.description = t.description;
231
- // WEB endpoint (human-facing paywall URL)
232
- services.push({
233
- name: "web",
234
- endpoint: t.webEndpoint,
235
- ...(Object.keys(meta).length > 0 ? meta : {}),
236
- });
237
224
  // HTTP endpoint (machine-facing x402 URL)
238
225
  if (t.httpEndpoint) {
239
226
  const httpMeta = { ...meta };
@@ -245,7 +232,20 @@ class Erc8004API {
245
232
  ...(Object.keys(httpMeta).length > 0 ? httpMeta : {}),
246
233
  });
247
234
  }
235
+ // WEB endpoint (human-facing paywall URL)
236
+ services.push({
237
+ name: "web",
238
+ endpoint: t.webEndpoint,
239
+ ...(Object.keys(meta).length > 0 ? meta : {}),
240
+ });
248
241
  }
242
+ // MCP endpoint (machine-facing, aggregates all x402 triggers)
243
+ const mcpEndpoint = `${baseUrl}/workspaces/${workflowId}/x402/mcp`;
244
+ services.push({
245
+ name: "MCP",
246
+ endpoint: mcpEndpoint,
247
+ version: "2025-06-18",
248
+ });
249
249
  // Add walletAddress as an endpoint (deduplicate first)
250
250
  if (wallet.address) {
251
251
  const filtered = services.filter((s) => s.name !== "agentWallet" && s.name !== "wallet");
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@openserv-labs/client",
3
- "version": "2.4.1",
3
+ "version": "2.4.2",
4
4
  "description": "OpenServ Platform Client - Manage agents, workflows, tasks, and triggers via the OpenServ API",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",