aixyz 0.21.0 → 0.22.0
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/app/plugins/erc-8004.ts +6 -6
- package/package.json +4 -4
package/app/plugins/erc-8004.ts
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
2
|
import { getAixyzConfigRuntime } from "@aixyz/config";
|
|
3
3
|
import {
|
|
4
|
+
AgentRegistrationFile,
|
|
5
|
+
AgentRegistrationFileSchema,
|
|
4
6
|
ERC8004_REGISTRATION_TYPE,
|
|
5
7
|
ServiceSchema,
|
|
6
|
-
StrictAgentRegistrationFile,
|
|
7
|
-
StrictAgentRegistrationFileSchema,
|
|
8
8
|
} from "@aixyz/erc-8004/schemas/registration";
|
|
9
9
|
import { BasePlugin } from "../plugin";
|
|
10
10
|
import type { AixyzApp } from "../index";
|
|
@@ -16,9 +16,9 @@ import type { AixyzApp } from "../index";
|
|
|
16
16
|
export function getAgentRegistrationFile(
|
|
17
17
|
data: unknown,
|
|
18
18
|
options: { mcp: boolean; a2a: string[] },
|
|
19
|
-
):
|
|
19
|
+
): AgentRegistrationFile {
|
|
20
20
|
const config = getAixyzConfigRuntime();
|
|
21
|
-
const services:
|
|
21
|
+
const services: AgentRegistrationFile["services"] = [];
|
|
22
22
|
|
|
23
23
|
for (const path of options.a2a) {
|
|
24
24
|
services.push({
|
|
@@ -36,12 +36,12 @@ export function getAgentRegistrationFile(
|
|
|
36
36
|
});
|
|
37
37
|
}
|
|
38
38
|
|
|
39
|
-
const withDefault =
|
|
39
|
+
const withDefault = AgentRegistrationFileSchema.extend({
|
|
40
40
|
type: z.literal(ERC8004_REGISTRATION_TYPE).default(ERC8004_REGISTRATION_TYPE),
|
|
41
41
|
name: z.string().default(config.name),
|
|
42
42
|
description: z.string().default(config.description),
|
|
43
43
|
image: z.string().default(new URL("/icon.png", config.url).toString()),
|
|
44
|
-
services: z.array(ServiceSchema).
|
|
44
|
+
services: z.array(ServiceSchema).default(services),
|
|
45
45
|
active: z.boolean().default(true),
|
|
46
46
|
x402support: z.boolean().default(true),
|
|
47
47
|
});
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "aixyz",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.22.0",
|
|
4
4
|
"description": "Payment-native SDK for AI Agent",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"ai",
|
|
@@ -36,9 +36,9 @@
|
|
|
36
36
|
},
|
|
37
37
|
"dependencies": {
|
|
38
38
|
"@a2a-js/sdk": "^0.3.10",
|
|
39
|
-
"@aixyz/cli": "0.
|
|
40
|
-
"@aixyz/config": "0.
|
|
41
|
-
"@aixyz/erc-8004": "0.
|
|
39
|
+
"@aixyz/cli": "0.22.0",
|
|
40
|
+
"@aixyz/config": "0.22.0",
|
|
41
|
+
"@aixyz/erc-8004": "0.22.0",
|
|
42
42
|
"@modelcontextprotocol/sdk": "^1.27.1",
|
|
43
43
|
"@next/env": "^16.1.6",
|
|
44
44
|
"@x402/core": "^2.3.1",
|