@bosonprotocol/agentic-commerce 1.0.0-alpha.46 → 1.0.0-alpha.48
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/boson/goat-sdk-plugin/boson-protocol-plugin.service.d.ts +261 -0
- package/dist/boson/goat-sdk-plugin/boson-protocol-plugin.service.d.ts.map +1 -0
- package/dist/boson/goat-sdk-plugin/boson-protocol-plugin.service.js +466 -0
- package/dist/boson/goat-sdk-plugin/boson-protocol-plugin.service.js.map +1 -0
- package/dist/boson/goat-sdk-plugin/boson-protocol.plugin.d.ts +10 -0
- package/dist/boson/goat-sdk-plugin/boson-protocol.plugin.d.ts.map +1 -0
- package/dist/boson/goat-sdk-plugin/boson-protocol.plugin.js +23 -0
- package/dist/boson/goat-sdk-plugin/boson-protocol.plugin.js.map +1 -0
- package/dist/boson/goat-sdk-plugin/examples/anthropic.d.ts +2 -0
- package/dist/boson/goat-sdk-plugin/examples/anthropic.d.ts.map +1 -0
- package/dist/boson/goat-sdk-plugin/examples/anthropic.js +160 -0
- package/dist/boson/goat-sdk-plugin/examples/anthropic.js.map +1 -0
- package/dist/boson/goat-sdk-plugin/examples/vercel.d.ts +2 -0
- package/dist/boson/goat-sdk-plugin/examples/vercel.d.ts.map +1 -0
- package/dist/boson/goat-sdk-plugin/examples/vercel.js +148 -0
- package/dist/boson/goat-sdk-plugin/examples/vercel.js.map +1 -0
- package/dist/boson/goat-sdk-plugin/index.d.ts +2 -2
- package/dist/boson/goat-sdk-plugin/index.d.ts.map +1 -1
- package/dist/boson/goat-sdk-plugin/index.js +6 -4
- package/dist/boson/goat-sdk-plugin/index.js.map +1 -1
- package/dist/boson/goat-sdk-plugin/parameters.d.ts +488 -0
- package/dist/boson/goat-sdk-plugin/parameters.d.ts.map +1 -0
- package/dist/boson/goat-sdk-plugin/parameters.js +89 -0
- package/dist/boson/goat-sdk-plugin/parameters.js.map +1 -0
- package/dist/boson/index.d.ts +1 -1
- package/dist/boson/index.d.ts.map +1 -1
- package/dist/boson/index.js +2 -2
- package/dist/boson/index.js.map +1 -1
- package/dist/boson/mcp-client/index.d.ts +3752 -3
- package/dist/boson/mcp-client/index.d.ts.map +1 -1
- package/dist/boson/mcp-client/index.js +181 -0
- package/dist/boson/mcp-client/index.js.map +1 -1
- package/dist/boson/mcp-server/filters/disputeResolversFilter.d.ts +3 -3
- package/dist/boson/mcp-server/filters/disputeResolversFilter.d.ts.map +1 -1
- package/dist/boson/mcp-server/filters/disputeResolversFilter.js.map +1 -1
- package/dist/boson/mcp-server/filters/disputesFilter.d.ts +3 -3
- package/dist/boson/mcp-server/filters/disputesFilter.d.ts.map +1 -1
- package/dist/boson/mcp-server/filters/disputesFilter.js.map +1 -1
- package/dist/boson/mcp-server/filters/exchangesFilter.d.ts +3 -3
- package/dist/boson/mcp-server/filters/exchangesFilter.d.ts.map +1 -1
- package/dist/boson/mcp-server/filters/exchangesFilter.js.map +1 -1
- package/dist/boson/mcp-server/filters/fundsFilter.d.ts +3 -3
- package/dist/boson/mcp-server/filters/fundsFilter.d.ts.map +1 -1
- package/dist/boson/mcp-server/filters/fundsFilter.js.map +1 -1
- package/dist/boson/mcp-server/filters/offersFilter.d.ts +3 -3
- package/dist/boson/mcp-server/filters/offersFilter.d.ts.map +1 -1
- package/dist/boson/mcp-server/filters/offersFilter.js.map +1 -1
- package/dist/boson/mcp-server/filters/productsFilter.d.ts +3 -3
- package/dist/boson/mcp-server/filters/productsFilter.d.ts.map +1 -1
- package/dist/boson/mcp-server/filters/productsFilter.js.map +1 -1
- package/dist/boson/mcp-server/filters/sellersByAddressFilter.d.ts +4 -3
- package/dist/boson/mcp-server/filters/sellersByAddressFilter.d.ts.map +1 -1
- package/dist/boson/mcp-server/filters/sellersByAddressFilter.js.map +1 -1
- package/dist/boson/mcp-server/filters/sellersFilter.d.ts +3 -3
- package/dist/boson/mcp-server/filters/sellersFilter.d.ts.map +1 -1
- package/dist/boson/mcp-server/filters/sellersFilter.js.map +1 -1
- package/dist/boson/mcp-server/handlers/metaTx.d.ts +18 -18
- package/dist/boson/mcp-server/index.d.ts.map +1 -1
- package/dist/boson/mcp-server/index.js +2 -1
- package/dist/boson/mcp-server/index.js.map +1 -1
- package/dist/boson/mcp-server/resourceParameterTypes.d.ts +498 -0
- package/dist/boson/mcp-server/resourceParameterTypes.d.ts.map +1 -0
- package/dist/boson/mcp-server/resourceParameterTypes.js +174 -0
- package/dist/boson/mcp-server/resourceParameterTypes.js.map +1 -0
- package/dist/boson/mcp-server/validation.d.ts +123 -123
- package/dist/boson/mcp-server/validation.d.ts.map +1 -1
- package/dist/boson/mcp-server/validation.js +27 -122
- package/dist/boson/mcp-server/validation.js.map +1 -1
- package/dist/common/mcp-server/configValidation.d.ts +1 -0
- package/dist/common/mcp-server/configValidation.d.ts.map +1 -1
- package/dist/common/mcp-server/configValidation.js +12 -4
- package/dist/common/mcp-server/configValidation.js.map +1 -1
- package/dist/common/mcp-server/jsonSchemaToZodShape.d.ts.map +1 -1
- package/dist/common/mcp-server/jsonSchemaToZodShape.js +39 -6
- package/dist/common/mcp-server/jsonSchemaToZodShape.js.map +1 -1
- package/dist/common/mcp-server/transactionSigning.d.ts +26 -26
- package/dist/fermion/mcp-server/validation.d.ts +79 -55
- package/dist/fermion/mcp-server/validation.d.ts.map +1 -1
- package/dist/fermion/mcp-server/validation.js +2 -1
- package/dist/fermion/mcp-server/validation.js.map +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +2 -2
- package/dist/index.js.map +1 -1
- package/package.json +22 -16
|
@@ -0,0 +1,466 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
3
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
4
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
5
|
+
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
6
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
7
|
+
};
|
|
8
|
+
var __metadata = (this && this.__metadata) || function (k, v) {
|
|
9
|
+
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
10
|
+
};
|
|
11
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
|
+
exports.BosonProtocolPluginService = void 0;
|
|
13
|
+
require("reflect-metadata");
|
|
14
|
+
const core_1 = require("@goat-sdk/core");
|
|
15
|
+
const wallet_evm_1 = require("@goat-sdk/wallet-evm");
|
|
16
|
+
const zod_1 = require("zod");
|
|
17
|
+
const parameters_js_1 = require("./parameters.js");
|
|
18
|
+
// Zod validators for MCP response and transaction data
|
|
19
|
+
const mcpResponseSchema = zod_1.z.object({
|
|
20
|
+
content: zod_1.z.array(zod_1.z.object({
|
|
21
|
+
type: zod_1.z.literal("text"),
|
|
22
|
+
text: zod_1.z.string(),
|
|
23
|
+
})),
|
|
24
|
+
});
|
|
25
|
+
const transactionDataSchema = zod_1.z.object({
|
|
26
|
+
to: zod_1.z.string().regex(/^0x[0-9a-fA-F]{40}$/),
|
|
27
|
+
data: zod_1.z.string().regex(/^0x[0-9a-fA-F]*$/),
|
|
28
|
+
value: zod_1.z.string().optional(),
|
|
29
|
+
gas: zod_1.z.string().optional(),
|
|
30
|
+
gasPrice: zod_1.z.string().optional(),
|
|
31
|
+
maxFeePerGas: zod_1.z.string().optional(),
|
|
32
|
+
maxPriorityFeePerGas: zod_1.z.string().optional(),
|
|
33
|
+
});
|
|
34
|
+
const parsedMcpResponseSchema = zod_1.z.object({
|
|
35
|
+
transactionData: transactionDataSchema,
|
|
36
|
+
});
|
|
37
|
+
class BosonProtocolPluginService {
|
|
38
|
+
mcpClient;
|
|
39
|
+
url;
|
|
40
|
+
constructor(mcpClient, url) {
|
|
41
|
+
this.mcpClient = mcpClient;
|
|
42
|
+
this.url = url;
|
|
43
|
+
}
|
|
44
|
+
async connectIfNeeded() {
|
|
45
|
+
if (!this.mcpClient.isConnected) {
|
|
46
|
+
await this.mcpClient.connectToServer(this.url);
|
|
47
|
+
}
|
|
48
|
+
}
|
|
49
|
+
/**
|
|
50
|
+
* Parse MCP response and execute transaction with wallet client
|
|
51
|
+
* @param mcpResponse - The response from MCP client
|
|
52
|
+
* @param walletClient - The wallet client to execute the transaction
|
|
53
|
+
* @returns Transaction hash
|
|
54
|
+
*/
|
|
55
|
+
async parseAndExecuteTransaction(mcpResponse, walletClient) {
|
|
56
|
+
// Validate MCP response structure
|
|
57
|
+
const validatedResponse = mcpResponseSchema.parse(mcpResponse);
|
|
58
|
+
// Extract text from content array
|
|
59
|
+
const textResponse = validatedResponse.content[0]?.text;
|
|
60
|
+
if (!textResponse) {
|
|
61
|
+
throw new Error("No text content found in MCP response");
|
|
62
|
+
}
|
|
63
|
+
// Parse JSON response and validate structure
|
|
64
|
+
const parsedResponse = JSON.parse(textResponse);
|
|
65
|
+
const validatedParsedResponse = parsedMcpResponseSchema.parse(parsedResponse);
|
|
66
|
+
const { transactionData } = validatedParsedResponse;
|
|
67
|
+
// Prepare transaction request with all necessary fields
|
|
68
|
+
const txRequest = {
|
|
69
|
+
to: transactionData.to,
|
|
70
|
+
data: transactionData.data,
|
|
71
|
+
value: transactionData.value ? BigInt(transactionData.value) : 0n,
|
|
72
|
+
gas: transactionData.gas ? BigInt(transactionData.gas) : undefined,
|
|
73
|
+
gasPrice: transactionData.gasPrice
|
|
74
|
+
? BigInt(transactionData.gasPrice)
|
|
75
|
+
: undefined,
|
|
76
|
+
maxFeePerGas: transactionData.maxFeePerGas
|
|
77
|
+
? BigInt(transactionData.maxFeePerGas)
|
|
78
|
+
: undefined,
|
|
79
|
+
maxPriorityFeePerGas: transactionData.maxPriorityFeePerGas
|
|
80
|
+
? BigInt(transactionData.maxPriorityFeePerGas)
|
|
81
|
+
: undefined,
|
|
82
|
+
};
|
|
83
|
+
const result = await walletClient.sendTransaction(txRequest);
|
|
84
|
+
return result.hash;
|
|
85
|
+
}
|
|
86
|
+
async initializeSDK(walletClient, parameters) {
|
|
87
|
+
try {
|
|
88
|
+
await this.connectIfNeeded();
|
|
89
|
+
// Initialize SDK with wallet address
|
|
90
|
+
const result = await this.mcpClient.initializeSDK({
|
|
91
|
+
...parameters,
|
|
92
|
+
signerAddress: walletClient.getAddress(),
|
|
93
|
+
});
|
|
94
|
+
return {
|
|
95
|
+
success: true,
|
|
96
|
+
message: result.content,
|
|
97
|
+
};
|
|
98
|
+
}
|
|
99
|
+
catch (error) {
|
|
100
|
+
return {
|
|
101
|
+
success: false,
|
|
102
|
+
error: error instanceof Error ? error.message : "Unknown error",
|
|
103
|
+
};
|
|
104
|
+
}
|
|
105
|
+
}
|
|
106
|
+
async createOffer(walletClient, parameters) {
|
|
107
|
+
try {
|
|
108
|
+
await this.connectIfNeeded();
|
|
109
|
+
const mcpResponse = await this.mcpClient.createOffer(parameters);
|
|
110
|
+
const hash = await this.parseAndExecuteTransaction(mcpResponse, walletClient);
|
|
111
|
+
return {
|
|
112
|
+
success: true,
|
|
113
|
+
message: { hash },
|
|
114
|
+
};
|
|
115
|
+
}
|
|
116
|
+
catch (error) {
|
|
117
|
+
return {
|
|
118
|
+
success: false,
|
|
119
|
+
error: error instanceof Error ? error.message : "Unknown error",
|
|
120
|
+
};
|
|
121
|
+
}
|
|
122
|
+
}
|
|
123
|
+
async voidOffer(walletClient, parameters) {
|
|
124
|
+
try {
|
|
125
|
+
await this.connectIfNeeded();
|
|
126
|
+
const mcpResponse = await this.mcpClient.voidOffer(parameters);
|
|
127
|
+
const hash = await this.parseAndExecuteTransaction(mcpResponse, walletClient);
|
|
128
|
+
return {
|
|
129
|
+
success: true,
|
|
130
|
+
message: { hash },
|
|
131
|
+
};
|
|
132
|
+
}
|
|
133
|
+
catch (error) {
|
|
134
|
+
return {
|
|
135
|
+
success: false,
|
|
136
|
+
error: error instanceof Error ? error.message : "Unknown error",
|
|
137
|
+
};
|
|
138
|
+
}
|
|
139
|
+
}
|
|
140
|
+
async createSeller(walletClient, parameters) {
|
|
141
|
+
try {
|
|
142
|
+
await this.connectIfNeeded();
|
|
143
|
+
const mcpResponse = await this.mcpClient.createSeller(parameters);
|
|
144
|
+
const hash = await this.parseAndExecuteTransaction(mcpResponse, walletClient);
|
|
145
|
+
return {
|
|
146
|
+
success: true,
|
|
147
|
+
message: { hash },
|
|
148
|
+
};
|
|
149
|
+
}
|
|
150
|
+
catch (error) {
|
|
151
|
+
return {
|
|
152
|
+
success: false,
|
|
153
|
+
error: error instanceof Error ? error.message : "Unknown error",
|
|
154
|
+
};
|
|
155
|
+
}
|
|
156
|
+
}
|
|
157
|
+
async withdrawFunds(walletClient, parameters) {
|
|
158
|
+
try {
|
|
159
|
+
await this.connectIfNeeded();
|
|
160
|
+
const mcpResponse = await this.mcpClient.withdrawFunds(parameters);
|
|
161
|
+
const hash = await this.parseAndExecuteTransaction(mcpResponse, walletClient);
|
|
162
|
+
return {
|
|
163
|
+
success: true,
|
|
164
|
+
message: { hash },
|
|
165
|
+
};
|
|
166
|
+
}
|
|
167
|
+
catch (error) {
|
|
168
|
+
return {
|
|
169
|
+
success: false,
|
|
170
|
+
error: error instanceof Error ? error.message : "Unknown error",
|
|
171
|
+
};
|
|
172
|
+
}
|
|
173
|
+
}
|
|
174
|
+
async depositFunds(walletClient, parameters) {
|
|
175
|
+
try {
|
|
176
|
+
await this.connectIfNeeded();
|
|
177
|
+
const mcpResponse = await this.mcpClient.depositFunds(parameters);
|
|
178
|
+
const hash = await this.parseAndExecuteTransaction(mcpResponse, walletClient);
|
|
179
|
+
return {
|
|
180
|
+
success: true,
|
|
181
|
+
message: { hash },
|
|
182
|
+
};
|
|
183
|
+
}
|
|
184
|
+
catch (error) {
|
|
185
|
+
return {
|
|
186
|
+
success: false,
|
|
187
|
+
error: error instanceof Error ? error.message : "Unknown error",
|
|
188
|
+
};
|
|
189
|
+
}
|
|
190
|
+
}
|
|
191
|
+
async commitToOffer(walletClient, parameters) {
|
|
192
|
+
try {
|
|
193
|
+
await this.connectIfNeeded();
|
|
194
|
+
const mcpResponse = await this.mcpClient.commitToOffer(parameters);
|
|
195
|
+
const hash = await this.parseAndExecuteTransaction(mcpResponse, walletClient);
|
|
196
|
+
return {
|
|
197
|
+
success: true,
|
|
198
|
+
message: { hash },
|
|
199
|
+
};
|
|
200
|
+
}
|
|
201
|
+
catch (error) {
|
|
202
|
+
return {
|
|
203
|
+
success: false,
|
|
204
|
+
error: error instanceof Error ? error.message : "Unknown error",
|
|
205
|
+
};
|
|
206
|
+
}
|
|
207
|
+
}
|
|
208
|
+
async cancelVoucher(walletClient, parameters) {
|
|
209
|
+
try {
|
|
210
|
+
await this.connectIfNeeded();
|
|
211
|
+
const mcpResponse = await this.mcpClient.cancelVoucher(parameters);
|
|
212
|
+
const hash = await this.parseAndExecuteTransaction(mcpResponse, walletClient);
|
|
213
|
+
return {
|
|
214
|
+
success: true,
|
|
215
|
+
message: { hash },
|
|
216
|
+
};
|
|
217
|
+
}
|
|
218
|
+
catch (error) {
|
|
219
|
+
return {
|
|
220
|
+
success: false,
|
|
221
|
+
error: error instanceof Error ? error.message : "Unknown error",
|
|
222
|
+
};
|
|
223
|
+
}
|
|
224
|
+
}
|
|
225
|
+
async redeemVoucher(walletClient, parameters) {
|
|
226
|
+
try {
|
|
227
|
+
await this.connectIfNeeded();
|
|
228
|
+
const mcpResponse = await this.mcpClient.redeemVoucher(parameters);
|
|
229
|
+
const hash = await this.parseAndExecuteTransaction(mcpResponse, walletClient);
|
|
230
|
+
return {
|
|
231
|
+
success: true,
|
|
232
|
+
message: { hash },
|
|
233
|
+
};
|
|
234
|
+
}
|
|
235
|
+
catch (error) {
|
|
236
|
+
return {
|
|
237
|
+
success: false,
|
|
238
|
+
error: error instanceof Error ? error.message : "Unknown error",
|
|
239
|
+
};
|
|
240
|
+
}
|
|
241
|
+
}
|
|
242
|
+
async revokeVoucher(walletClient, parameters) {
|
|
243
|
+
try {
|
|
244
|
+
await this.connectIfNeeded();
|
|
245
|
+
const mcpResponse = await this.mcpClient.revokeVoucher(parameters);
|
|
246
|
+
const hash = await this.parseAndExecuteTransaction(mcpResponse, walletClient);
|
|
247
|
+
return {
|
|
248
|
+
success: true,
|
|
249
|
+
message: { hash },
|
|
250
|
+
};
|
|
251
|
+
}
|
|
252
|
+
catch (error) {
|
|
253
|
+
return {
|
|
254
|
+
success: false,
|
|
255
|
+
error: error instanceof Error ? error.message : "Unknown error",
|
|
256
|
+
};
|
|
257
|
+
}
|
|
258
|
+
}
|
|
259
|
+
// Query tools (return data, not transactions)
|
|
260
|
+
async getFunds(walletClient, parameters) {
|
|
261
|
+
try {
|
|
262
|
+
await this.connectIfNeeded();
|
|
263
|
+
const result = await this.mcpClient.getFunds(parameters);
|
|
264
|
+
return {
|
|
265
|
+
success: true,
|
|
266
|
+
message: result.content,
|
|
267
|
+
};
|
|
268
|
+
}
|
|
269
|
+
catch (error) {
|
|
270
|
+
return {
|
|
271
|
+
success: false,
|
|
272
|
+
error: error instanceof Error ? error.message : "Unknown error",
|
|
273
|
+
};
|
|
274
|
+
}
|
|
275
|
+
}
|
|
276
|
+
async getOffers(walletClient, parameters) {
|
|
277
|
+
try {
|
|
278
|
+
await this.connectIfNeeded();
|
|
279
|
+
const result = await this.mcpClient.getOffers(parameters);
|
|
280
|
+
return {
|
|
281
|
+
success: true,
|
|
282
|
+
message: result.content,
|
|
283
|
+
};
|
|
284
|
+
}
|
|
285
|
+
catch (error) {
|
|
286
|
+
return {
|
|
287
|
+
success: false,
|
|
288
|
+
error: error instanceof Error ? error.message : "Unknown error",
|
|
289
|
+
};
|
|
290
|
+
}
|
|
291
|
+
}
|
|
292
|
+
async getExchanges(walletClient, parameters) {
|
|
293
|
+
try {
|
|
294
|
+
await this.connectIfNeeded();
|
|
295
|
+
const result = await this.mcpClient.getExchanges(parameters);
|
|
296
|
+
return {
|
|
297
|
+
success: true,
|
|
298
|
+
message: result.content,
|
|
299
|
+
};
|
|
300
|
+
}
|
|
301
|
+
catch (error) {
|
|
302
|
+
return {
|
|
303
|
+
success: false,
|
|
304
|
+
error: error instanceof Error ? error.message : "Unknown error",
|
|
305
|
+
};
|
|
306
|
+
}
|
|
307
|
+
}
|
|
308
|
+
async getSellers(walletClient, parameters) {
|
|
309
|
+
try {
|
|
310
|
+
await this.connectIfNeeded();
|
|
311
|
+
const result = await this.mcpClient.getSellers(parameters);
|
|
312
|
+
return {
|
|
313
|
+
success: true,
|
|
314
|
+
message: result.content,
|
|
315
|
+
};
|
|
316
|
+
}
|
|
317
|
+
catch (error) {
|
|
318
|
+
return {
|
|
319
|
+
success: false,
|
|
320
|
+
error: error instanceof Error ? error.message : "Unknown error",
|
|
321
|
+
};
|
|
322
|
+
}
|
|
323
|
+
}
|
|
324
|
+
}
|
|
325
|
+
exports.BosonProtocolPluginService = BosonProtocolPluginService;
|
|
326
|
+
__decorate([
|
|
327
|
+
(0, core_1.Tool)({
|
|
328
|
+
name: "initialize_sdk",
|
|
329
|
+
description: "Initialize the Boson Protocol SDK with configuration parameters",
|
|
330
|
+
}),
|
|
331
|
+
__metadata("design:type", Function),
|
|
332
|
+
__metadata("design:paramtypes", [wallet_evm_1.EVMWalletClient,
|
|
333
|
+
parameters_js_1.InitializeSdkParameters]),
|
|
334
|
+
__metadata("design:returntype", Promise)
|
|
335
|
+
], BosonProtocolPluginService.prototype, "initializeSDK", null);
|
|
336
|
+
__decorate([
|
|
337
|
+
(0, core_1.Tool)({
|
|
338
|
+
name: "create_offer",
|
|
339
|
+
description: "Create offer",
|
|
340
|
+
}),
|
|
341
|
+
__metadata("design:type", Function),
|
|
342
|
+
__metadata("design:paramtypes", [wallet_evm_1.EVMWalletClient,
|
|
343
|
+
parameters_js_1.CreateOfferParameters]),
|
|
344
|
+
__metadata("design:returntype", Promise)
|
|
345
|
+
], BosonProtocolPluginService.prototype, "createOffer", null);
|
|
346
|
+
__decorate([
|
|
347
|
+
(0, core_1.Tool)({
|
|
348
|
+
name: "void_offer",
|
|
349
|
+
description: "Void an offer",
|
|
350
|
+
}),
|
|
351
|
+
__metadata("design:type", Function),
|
|
352
|
+
__metadata("design:paramtypes", [wallet_evm_1.EVMWalletClient,
|
|
353
|
+
parameters_js_1.VoidOfferParameters]),
|
|
354
|
+
__metadata("design:returntype", Promise)
|
|
355
|
+
], BosonProtocolPluginService.prototype, "voidOffer", null);
|
|
356
|
+
__decorate([
|
|
357
|
+
(0, core_1.Tool)({
|
|
358
|
+
name: "create_seller",
|
|
359
|
+
description: "Create a seller",
|
|
360
|
+
}),
|
|
361
|
+
__metadata("design:type", Function),
|
|
362
|
+
__metadata("design:paramtypes", [wallet_evm_1.EVMWalletClient,
|
|
363
|
+
parameters_js_1.CreateSellerParameters]),
|
|
364
|
+
__metadata("design:returntype", Promise)
|
|
365
|
+
], BosonProtocolPluginService.prototype, "createSeller", null);
|
|
366
|
+
__decorate([
|
|
367
|
+
(0, core_1.Tool)({
|
|
368
|
+
name: "withdraw_funds",
|
|
369
|
+
description: "Withdraw funds",
|
|
370
|
+
}),
|
|
371
|
+
__metadata("design:type", Function),
|
|
372
|
+
__metadata("design:paramtypes", [wallet_evm_1.EVMWalletClient,
|
|
373
|
+
parameters_js_1.WithdrawFundsParameters]),
|
|
374
|
+
__metadata("design:returntype", Promise)
|
|
375
|
+
], BosonProtocolPluginService.prototype, "withdrawFunds", null);
|
|
376
|
+
__decorate([
|
|
377
|
+
(0, core_1.Tool)({
|
|
378
|
+
name: "deposit_funds",
|
|
379
|
+
description: "Deposit funds",
|
|
380
|
+
}),
|
|
381
|
+
__metadata("design:type", Function),
|
|
382
|
+
__metadata("design:paramtypes", [wallet_evm_1.EVMWalletClient,
|
|
383
|
+
parameters_js_1.DepositFundsParameters]),
|
|
384
|
+
__metadata("design:returntype", Promise)
|
|
385
|
+
], BosonProtocolPluginService.prototype, "depositFunds", null);
|
|
386
|
+
__decorate([
|
|
387
|
+
(0, core_1.Tool)({
|
|
388
|
+
name: "commit_to_offer",
|
|
389
|
+
description: "Commit to an offer",
|
|
390
|
+
}),
|
|
391
|
+
__metadata("design:type", Function),
|
|
392
|
+
__metadata("design:paramtypes", [wallet_evm_1.EVMWalletClient,
|
|
393
|
+
parameters_js_1.CommitToOfferParameters]),
|
|
394
|
+
__metadata("design:returntype", Promise)
|
|
395
|
+
], BosonProtocolPluginService.prototype, "commitToOffer", null);
|
|
396
|
+
__decorate([
|
|
397
|
+
(0, core_1.Tool)({
|
|
398
|
+
name: "cancel_voucher",
|
|
399
|
+
description: "Cancel a voucher",
|
|
400
|
+
}),
|
|
401
|
+
__metadata("design:type", Function),
|
|
402
|
+
__metadata("design:paramtypes", [wallet_evm_1.EVMWalletClient,
|
|
403
|
+
parameters_js_1.CancelVoucherParameters]),
|
|
404
|
+
__metadata("design:returntype", Promise)
|
|
405
|
+
], BosonProtocolPluginService.prototype, "cancelVoucher", null);
|
|
406
|
+
__decorate([
|
|
407
|
+
(0, core_1.Tool)({
|
|
408
|
+
name: "redeem_voucher",
|
|
409
|
+
description: "Redeem a voucher",
|
|
410
|
+
}),
|
|
411
|
+
__metadata("design:type", Function),
|
|
412
|
+
__metadata("design:paramtypes", [wallet_evm_1.EVMWalletClient,
|
|
413
|
+
parameters_js_1.RedeemVoucherParameters]),
|
|
414
|
+
__metadata("design:returntype", Promise)
|
|
415
|
+
], BosonProtocolPluginService.prototype, "redeemVoucher", null);
|
|
416
|
+
__decorate([
|
|
417
|
+
(0, core_1.Tool)({
|
|
418
|
+
name: "revoke_voucher",
|
|
419
|
+
description: "Revoke a voucher",
|
|
420
|
+
}),
|
|
421
|
+
__metadata("design:type", Function),
|
|
422
|
+
__metadata("design:paramtypes", [wallet_evm_1.EVMWalletClient,
|
|
423
|
+
parameters_js_1.RevokeVoucherParameters]),
|
|
424
|
+
__metadata("design:returntype", Promise)
|
|
425
|
+
], BosonProtocolPluginService.prototype, "revokeVoucher", null);
|
|
426
|
+
__decorate([
|
|
427
|
+
(0, core_1.Tool)({
|
|
428
|
+
name: "get_funds",
|
|
429
|
+
description: "Get funds information",
|
|
430
|
+
}),
|
|
431
|
+
__metadata("design:type", Function),
|
|
432
|
+
__metadata("design:paramtypes", [wallet_evm_1.EVMWalletClient,
|
|
433
|
+
parameters_js_1.GetFundsParameters]),
|
|
434
|
+
__metadata("design:returntype", Promise)
|
|
435
|
+
], BosonProtocolPluginService.prototype, "getFunds", null);
|
|
436
|
+
__decorate([
|
|
437
|
+
(0, core_1.Tool)({
|
|
438
|
+
name: "get_offers",
|
|
439
|
+
description: "Get offers information",
|
|
440
|
+
}),
|
|
441
|
+
__metadata("design:type", Function),
|
|
442
|
+
__metadata("design:paramtypes", [wallet_evm_1.EVMWalletClient,
|
|
443
|
+
parameters_js_1.GetOffersParameters]),
|
|
444
|
+
__metadata("design:returntype", Promise)
|
|
445
|
+
], BosonProtocolPluginService.prototype, "getOffers", null);
|
|
446
|
+
__decorate([
|
|
447
|
+
(0, core_1.Tool)({
|
|
448
|
+
name: "get_exchanges",
|
|
449
|
+
description: "Get exchanges information",
|
|
450
|
+
}),
|
|
451
|
+
__metadata("design:type", Function),
|
|
452
|
+
__metadata("design:paramtypes", [wallet_evm_1.EVMWalletClient,
|
|
453
|
+
parameters_js_1.GetExchangesParameters]),
|
|
454
|
+
__metadata("design:returntype", Promise)
|
|
455
|
+
], BosonProtocolPluginService.prototype, "getExchanges", null);
|
|
456
|
+
__decorate([
|
|
457
|
+
(0, core_1.Tool)({
|
|
458
|
+
name: "get_sellers",
|
|
459
|
+
description: "Get sellers information",
|
|
460
|
+
}),
|
|
461
|
+
__metadata("design:type", Function),
|
|
462
|
+
__metadata("design:paramtypes", [wallet_evm_1.EVMWalletClient,
|
|
463
|
+
parameters_js_1.GetSellersParameters]),
|
|
464
|
+
__metadata("design:returntype", Promise)
|
|
465
|
+
], BosonProtocolPluginService.prototype, "getSellers", null);
|
|
466
|
+
//# sourceMappingURL=boson-protocol-plugin.service.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"boson-protocol-plugin.service.js","sourceRoot":"","sources":["../../../src/boson/goat-sdk-plugin/boson-protocol-plugin.service.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,4BAA0B;AAE1B,yCAAsC;AACtC,qDAAuD;AACvD,6BAAwB;AAGxB,mDAeyB;AAEzB,uDAAuD;AACvD,MAAM,iBAAiB,GAAG,OAAC,CAAC,MAAM,CAAC;IACjC,OAAO,EAAE,OAAC,CAAC,KAAK,CACd,OAAC,CAAC,MAAM,CAAC;QACP,IAAI,EAAE,OAAC,CAAC,OAAO,CAAC,MAAM,CAAC;QACvB,IAAI,EAAE,OAAC,CAAC,MAAM,EAAE;KACjB,CAAC,CACH;CACF,CAAC,CAAC;AAEH,MAAM,qBAAqB,GAAG,OAAC,CAAC,MAAM,CAAC;IACrC,EAAE,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,KAAK,CAAC,qBAAqB,CAAC;IAC3C,IAAI,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,KAAK,CAAC,kBAAkB,CAAC;IAC1C,KAAK,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IAC5B,GAAG,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IAC1B,QAAQ,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IAC/B,YAAY,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IACnC,oBAAoB,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;CAC5C,CAAC,CAAC;AAEH,MAAM,uBAAuB,GAAG,OAAC,CAAC,MAAM,CAAC;IACvC,eAAe,EAAE,qBAAqB;CACvC,CAAC,CAAC;AAMH,MAAa,0BAA0B;IAE3B;IACA;IAFV,YACU,SAAyB,EACzB,GAAW;QADX,cAAS,GAAT,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AAMK;IAJL,IAAA,WAAI,EAAC;QACJ,IAAI,EAAE,eAAe;QACrB,WAAW,EAAE,2BAA2B;KACzC,CAAC;;qCAEc,4BAAe;QACjB,sCAAsB;;8DAgBnC;AAMK;IAJL,IAAA,WAAI,EAAC;QACJ,IAAI,EAAE,aAAa;QACnB,WAAW,EAAE,yBAAyB;KACvC,CAAC;;qCAEc,4BAAe;QACjB,oCAAoB;;4DAgBjC"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { Chain, PluginBase } from "@goat-sdk/core";
|
|
2
|
+
export interface BosonProtocolOptions {
|
|
3
|
+
url: string;
|
|
4
|
+
}
|
|
5
|
+
export declare class BosonProtocolPlugin extends PluginBase {
|
|
6
|
+
constructor(options: BosonProtocolOptions);
|
|
7
|
+
supportsChain(chain: Chain): boolean;
|
|
8
|
+
}
|
|
9
|
+
export declare function bosonProtocolPlugin(options: BosonProtocolOptions): BosonProtocolPlugin;
|
|
10
|
+
//# sourceMappingURL=boson-protocol.plugin.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"boson-protocol.plugin.d.ts","sourceRoot":"","sources":["../../../src/boson/goat-sdk-plugin/boson-protocol.plugin.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,UAAU,EAAE,MAAM,gBAAgB,CAAC;AAMnD,MAAM,WAAW,oBAAoB;IACnC,GAAG,EAAE,MAAM,CAAC;CACb;AAED,qBAAa,mBAAoB,SAAQ,UAAU;gBACrC,OAAO,EAAE,oBAAoB;IAMzC,aAAa,CAAC,KAAK,EAAE,KAAK;CAG3B;AAED,wBAAgB,mBAAmB,CAAC,OAAO,EAAE,oBAAoB,uBAEhE"}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.BosonProtocolPlugin = void 0;
|
|
4
|
+
exports.bosonProtocolPlugin = bosonProtocolPlugin;
|
|
5
|
+
const core_1 = require("@goat-sdk/core");
|
|
6
|
+
const configValidation_1 = require("../../common/mcp-server/configValidation");
|
|
7
|
+
const mcp_client_1 = require("../mcp-client");
|
|
8
|
+
const boson_protocol_plugin_service_1 = require("./boson-protocol-plugin.service");
|
|
9
|
+
class BosonProtocolPlugin extends core_1.PluginBase {
|
|
10
|
+
constructor(options) {
|
|
11
|
+
super("boson-protocol", [
|
|
12
|
+
new boson_protocol_plugin_service_1.BosonProtocolPluginService(new mcp_client_1.BosonMCPClient(), options.url),
|
|
13
|
+
]);
|
|
14
|
+
}
|
|
15
|
+
supportsChain(chain) {
|
|
16
|
+
return chain.type === "evm" && configValidation_1.supportedChainIds.includes(chain.id);
|
|
17
|
+
}
|
|
18
|
+
}
|
|
19
|
+
exports.BosonProtocolPlugin = BosonProtocolPlugin;
|
|
20
|
+
function bosonProtocolPlugin(options) {
|
|
21
|
+
return new BosonProtocolPlugin(options);
|
|
22
|
+
}
|
|
23
|
+
//# sourceMappingURL=boson-protocol.plugin.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"boson-protocol.plugin.js","sourceRoot":"","sources":["../../../src/boson/goat-sdk-plugin/boson-protocol.plugin.ts"],"names":[],"mappings":";;;AAsBA,kDAEC;AAxBD,yCAAmD;AAEnD,+EAA6E;AAC7E,8CAA+C;AAC/C,mFAA6E;AAM7E,MAAa,mBAAoB,SAAQ,iBAAU;IACjD,YAAY,OAA6B;QACvC,KAAK,CAAC,gBAAgB,EAAE;YACtB,IAAI,0DAA0B,CAAC,IAAI,2BAAc,EAAE,EAAE,OAAO,CAAC,GAAG,CAAC;SAClE,CAAC,CAAC;IACL,CAAC;IAED,aAAa,CAAC,KAAY;QACxB,OAAO,KAAK,CAAC,IAAI,KAAK,KAAK,IAAI,oCAAiB,CAAC,QAAQ,CAAC,KAAK,CAAC,EAAE,CAAC,CAAC;IACtE,CAAC;CACF;AAVD,kDAUC;AAED,SAAgB,mBAAmB,CAAC,OAA6B;IAC/D,OAAO,IAAI,mBAAmB,CAAC,OAAO,CAAC,CAAC;AAC1C,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"anthropic.d.ts","sourceRoot":"","sources":["../../../../src/boson/goat-sdk-plugin/examples/anthropic.ts"],"names":[],"mappings":""}
|