@agnt-id/agent0 0.1.1 → 0.1.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.
package/dist/bridge.js CHANGED
@@ -91,7 +91,7 @@ export function toRegistrationFile(agnt, options = {}) {
91
91
  services,
92
92
  registrations,
93
93
  active: options.active ?? true,
94
- x402Support: rec.x402Support,
94
+ x402Support: rec.x402Config?.enabled,
95
95
  };
96
96
  if (image)
97
97
  file.image = image;
@@ -137,8 +137,14 @@ export function fromRegistrationFile(file) {
137
137
  if (file.supportedTrust?.length) {
138
138
  rec.trustModels = [...file.supportedTrust];
139
139
  }
140
- if (file.x402Support != null)
141
- rec.x402Support = file.x402Support;
140
+ if (file.x402Support != null) {
141
+ rec.x402Config = {
142
+ paymentAddress: "",
143
+ pricePerCall: "0",
144
+ chainId: 8453,
145
+ enabled: file.x402Support,
146
+ };
147
+ }
142
148
  if (file.image)
143
149
  rec.texts = { avatar: file.image };
144
150
  if (file.description) {
package/dist/types.d.ts CHANGED
@@ -81,7 +81,12 @@ export type AgntRecordLike = {
81
81
  a2aVersion?: string;
82
82
  mcpVersion?: string;
83
83
  profileURI?: string;
84
- x402Support?: boolean;
84
+ x402Config?: {
85
+ paymentAddress: string;
86
+ pricePerCall: string;
87
+ chainId: number;
88
+ enabled: boolean;
89
+ };
85
90
  trustModels?: string[];
86
91
  };
87
92
  /** Minimal resolved .agnt name. */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@agnt-id/agent0",
3
- "version": "0.1.1",
3
+ "version": "0.1.2",
4
4
  "description": "Bridge between .agnt names and ERC-8004 agent identities",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",