agent0-sdk 0.2.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.
- package/LICENSE +21 -0
- package/README.md +234 -0
- package/dist/core/agent.d.ts +76 -0
- package/dist/core/agent.d.ts.map +1 -0
- package/dist/core/agent.js +477 -0
- package/dist/core/agent.js.map +1 -0
- package/dist/core/contracts.d.ts +688 -0
- package/dist/core/contracts.d.ts.map +1 -0
- package/dist/core/contracts.js +348 -0
- package/dist/core/contracts.js.map +1 -0
- package/dist/core/endpoint-crawler.d.ts +44 -0
- package/dist/core/endpoint-crawler.d.ts.map +1 -0
- package/dist/core/endpoint-crawler.js +280 -0
- package/dist/core/endpoint-crawler.js.map +1 -0
- package/dist/core/feedback-manager.d.ts +98 -0
- package/dist/core/feedback-manager.d.ts.map +1 -0
- package/dist/core/feedback-manager.js +543 -0
- package/dist/core/feedback-manager.js.map +1 -0
- package/dist/core/indexer.d.ts +37 -0
- package/dist/core/indexer.d.ts.map +1 -0
- package/dist/core/indexer.js +189 -0
- package/dist/core/indexer.js.map +1 -0
- package/dist/core/ipfs-client.d.ts +88 -0
- package/dist/core/ipfs-client.d.ts.map +1 -0
- package/dist/core/ipfs-client.js +334 -0
- package/dist/core/ipfs-client.js.map +1 -0
- package/dist/core/sdk.d.ts +177 -0
- package/dist/core/sdk.d.ts.map +1 -0
- package/dist/core/sdk.js +544 -0
- package/dist/core/sdk.js.map +1 -0
- package/dist/core/subgraph-client.d.ts +68 -0
- package/dist/core/subgraph-client.d.ts.map +1 -0
- package/dist/core/subgraph-client.js +635 -0
- package/dist/core/subgraph-client.js.map +1 -0
- package/dist/core/web3-client.d.ts +94 -0
- package/dist/core/web3-client.d.ts.map +1 -0
- package/dist/core/web3-client.js +197 -0
- package/dist/core/web3-client.js.map +1 -0
- package/dist/index.d.ts +20 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +20 -0
- package/dist/index.js.map +1 -0
- package/dist/models/enums.d.ts +22 -0
- package/dist/models/enums.d.ts.map +1 -0
- package/dist/models/enums.js +24 -0
- package/dist/models/enums.js.map +1 -0
- package/dist/models/generated/subgraph-types.d.ts +208 -0
- package/dist/models/generated/subgraph-types.d.ts.map +1 -0
- package/dist/models/generated/subgraph-types.js +2 -0
- package/dist/models/generated/subgraph-types.js.map +1 -0
- package/dist/models/index.d.ts +8 -0
- package/dist/models/index.d.ts.map +1 -0
- package/dist/models/index.js +8 -0
- package/dist/models/index.js.map +1 -0
- package/dist/models/interfaces.d.ts +125 -0
- package/dist/models/interfaces.d.ts.map +1 -0
- package/dist/models/interfaces.js +5 -0
- package/dist/models/interfaces.js.map +1 -0
- package/dist/models/types.d.ts +11 -0
- package/dist/models/types.d.ts.map +1 -0
- package/dist/models/types.js +5 -0
- package/dist/models/types.js.map +1 -0
- package/dist/utils/constants.d.ts +24 -0
- package/dist/utils/constants.d.ts.map +1 -0
- package/dist/utils/constants.js +28 -0
- package/dist/utils/constants.js.map +1 -0
- package/dist/utils/id-format.d.ts +30 -0
- package/dist/utils/id-format.d.ts.map +1 -0
- package/dist/utils/id-format.js +67 -0
- package/dist/utils/id-format.js.map +1 -0
- package/dist/utils/index.d.ts +7 -0
- package/dist/utils/index.d.ts.map +1 -0
- package/dist/utils/index.js +7 -0
- package/dist/utils/index.js.map +1 -0
- package/dist/utils/validation.d.ts +25 -0
- package/dist/utils/validation.d.ts.map +1 -0
- package/dist/utils/validation.js +61 -0
- package/dist/utils/validation.js.map +1 -0
- package/package.json +71 -0
|
@@ -0,0 +1,348 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Smart contract ABIs and interfaces for ERC-8004
|
|
3
|
+
*/
|
|
4
|
+
// ERC-721 ABI (minimal required functions)
|
|
5
|
+
export const ERC721_ABI = [
|
|
6
|
+
{
|
|
7
|
+
inputs: [{ internalType: 'uint256', name: 'tokenId', type: 'uint256' }],
|
|
8
|
+
name: 'ownerOf',
|
|
9
|
+
outputs: [{ internalType: 'address', name: '', type: 'address' }],
|
|
10
|
+
stateMutability: 'view',
|
|
11
|
+
type: 'function',
|
|
12
|
+
},
|
|
13
|
+
{
|
|
14
|
+
inputs: [
|
|
15
|
+
{ internalType: 'address', name: 'owner', type: 'address' },
|
|
16
|
+
{ internalType: 'address', name: 'operator', type: 'address' },
|
|
17
|
+
],
|
|
18
|
+
name: 'isApprovedForAll',
|
|
19
|
+
outputs: [{ internalType: 'bool', name: '', type: 'bool' }],
|
|
20
|
+
stateMutability: 'view',
|
|
21
|
+
type: 'function',
|
|
22
|
+
},
|
|
23
|
+
{
|
|
24
|
+
inputs: [{ internalType: 'uint256', name: 'tokenId', type: 'uint256' }],
|
|
25
|
+
name: 'getApproved',
|
|
26
|
+
outputs: [{ internalType: 'address', name: '', type: 'address' }],
|
|
27
|
+
stateMutability: 'view',
|
|
28
|
+
type: 'function',
|
|
29
|
+
},
|
|
30
|
+
{
|
|
31
|
+
inputs: [
|
|
32
|
+
{ internalType: 'address', name: 'from', type: 'address' },
|
|
33
|
+
{ internalType: 'address', name: 'to', type: 'address' },
|
|
34
|
+
{ internalType: 'uint256', name: 'tokenId', type: 'uint256' },
|
|
35
|
+
],
|
|
36
|
+
name: 'transferFrom',
|
|
37
|
+
outputs: [],
|
|
38
|
+
stateMutability: 'nonpayable',
|
|
39
|
+
type: 'function',
|
|
40
|
+
},
|
|
41
|
+
{
|
|
42
|
+
inputs: [
|
|
43
|
+
{ internalType: 'address', name: 'to', type: 'address' },
|
|
44
|
+
{ internalType: 'bool', name: 'approved', type: 'bool' },
|
|
45
|
+
],
|
|
46
|
+
name: 'setApprovalForAll',
|
|
47
|
+
outputs: [],
|
|
48
|
+
stateMutability: 'nonpayable',
|
|
49
|
+
type: 'function',
|
|
50
|
+
},
|
|
51
|
+
{
|
|
52
|
+
inputs: [
|
|
53
|
+
{ internalType: 'uint256', name: 'tokenId', type: 'uint256' },
|
|
54
|
+
{ internalType: 'address', name: 'to', type: 'address' },
|
|
55
|
+
],
|
|
56
|
+
name: 'approve',
|
|
57
|
+
outputs: [],
|
|
58
|
+
stateMutability: 'nonpayable',
|
|
59
|
+
type: 'function',
|
|
60
|
+
},
|
|
61
|
+
];
|
|
62
|
+
// ERC-721 URI Storage ABI
|
|
63
|
+
export const ERC721_URI_STORAGE_ABI = [
|
|
64
|
+
{
|
|
65
|
+
inputs: [{ internalType: 'uint256', name: 'tokenId', type: 'uint256' }],
|
|
66
|
+
name: 'tokenURI',
|
|
67
|
+
outputs: [{ internalType: 'string', name: '', type: 'string' }],
|
|
68
|
+
stateMutability: 'view',
|
|
69
|
+
type: 'function',
|
|
70
|
+
},
|
|
71
|
+
{
|
|
72
|
+
inputs: [
|
|
73
|
+
{ internalType: 'uint256', name: 'tokenId', type: 'uint256' },
|
|
74
|
+
{ internalType: 'string', name: '_tokenURI', type: 'string' },
|
|
75
|
+
],
|
|
76
|
+
name: 'setTokenURI',
|
|
77
|
+
outputs: [],
|
|
78
|
+
stateMutability: 'nonpayable',
|
|
79
|
+
type: 'function',
|
|
80
|
+
},
|
|
81
|
+
];
|
|
82
|
+
// Identity Registry ABI
|
|
83
|
+
export const IDENTITY_REGISTRY_ABI = [
|
|
84
|
+
...ERC721_ABI,
|
|
85
|
+
...ERC721_URI_STORAGE_ABI,
|
|
86
|
+
{
|
|
87
|
+
inputs: [],
|
|
88
|
+
name: 'register',
|
|
89
|
+
outputs: [{ internalType: 'uint256', name: 'agentId', type: 'uint256' }],
|
|
90
|
+
stateMutability: 'nonpayable',
|
|
91
|
+
type: 'function',
|
|
92
|
+
},
|
|
93
|
+
{
|
|
94
|
+
inputs: [{ internalType: 'string', name: 'tokenUri', type: 'string' }],
|
|
95
|
+
name: 'register',
|
|
96
|
+
outputs: [{ internalType: 'uint256', name: 'agentId', type: 'uint256' }],
|
|
97
|
+
stateMutability: 'nonpayable',
|
|
98
|
+
type: 'function',
|
|
99
|
+
},
|
|
100
|
+
{
|
|
101
|
+
inputs: [
|
|
102
|
+
{ internalType: 'string', name: 'tokenUri', type: 'string' },
|
|
103
|
+
{
|
|
104
|
+
components: [
|
|
105
|
+
{ internalType: 'string', name: 'key', type: 'string' },
|
|
106
|
+
{ internalType: 'bytes', name: 'value', type: 'bytes' },
|
|
107
|
+
],
|
|
108
|
+
internalType: 'struct IdentityRegistry.MetadataEntry[]',
|
|
109
|
+
name: 'metadata',
|
|
110
|
+
type: 'tuple[]',
|
|
111
|
+
},
|
|
112
|
+
],
|
|
113
|
+
name: 'register',
|
|
114
|
+
outputs: [{ internalType: 'uint256', name: 'agentId', type: 'uint256' }],
|
|
115
|
+
stateMutability: 'nonpayable',
|
|
116
|
+
type: 'function',
|
|
117
|
+
},
|
|
118
|
+
{
|
|
119
|
+
inputs: [
|
|
120
|
+
{ internalType: 'uint256', name: 'agentId', type: 'uint256' },
|
|
121
|
+
{ internalType: 'string', name: 'key', type: 'string' },
|
|
122
|
+
],
|
|
123
|
+
name: 'getMetadata',
|
|
124
|
+
outputs: [{ internalType: 'bytes', name: '', type: 'bytes' }],
|
|
125
|
+
stateMutability: 'view',
|
|
126
|
+
type: 'function',
|
|
127
|
+
},
|
|
128
|
+
{
|
|
129
|
+
inputs: [
|
|
130
|
+
{ internalType: 'uint256', name: 'agentId', type: 'uint256' },
|
|
131
|
+
{ internalType: 'string', name: 'key', type: 'string' },
|
|
132
|
+
{ internalType: 'bytes', name: 'value', type: 'bytes' },
|
|
133
|
+
],
|
|
134
|
+
name: 'setMetadata',
|
|
135
|
+
outputs: [],
|
|
136
|
+
stateMutability: 'nonpayable',
|
|
137
|
+
type: 'function',
|
|
138
|
+
},
|
|
139
|
+
{
|
|
140
|
+
inputs: [
|
|
141
|
+
{ internalType: 'uint256', name: 'agentId', type: 'uint256' },
|
|
142
|
+
{ internalType: 'string', name: 'newUri', type: 'string' },
|
|
143
|
+
],
|
|
144
|
+
name: 'setAgentUri',
|
|
145
|
+
outputs: [],
|
|
146
|
+
stateMutability: 'nonpayable',
|
|
147
|
+
type: 'function',
|
|
148
|
+
},
|
|
149
|
+
{
|
|
150
|
+
anonymous: false,
|
|
151
|
+
inputs: [
|
|
152
|
+
{ indexed: true, internalType: 'uint256', name: 'agentId', type: 'uint256' },
|
|
153
|
+
{ indexed: false, internalType: 'string', name: 'tokenURI', type: 'string' },
|
|
154
|
+
{ indexed: true, internalType: 'address', name: 'owner', type: 'address' },
|
|
155
|
+
],
|
|
156
|
+
name: 'Registered',
|
|
157
|
+
type: 'event',
|
|
158
|
+
},
|
|
159
|
+
{
|
|
160
|
+
anonymous: false,
|
|
161
|
+
inputs: [
|
|
162
|
+
{ indexed: true, internalType: 'uint256', name: 'agentId', type: 'uint256' },
|
|
163
|
+
{ indexed: true, internalType: 'string', name: 'indexedKey', type: 'string' },
|
|
164
|
+
{ indexed: false, internalType: 'string', name: 'key', type: 'string' },
|
|
165
|
+
{ indexed: false, internalType: 'bytes', name: 'value', type: 'bytes' },
|
|
166
|
+
],
|
|
167
|
+
name: 'MetadataSet',
|
|
168
|
+
type: 'event',
|
|
169
|
+
},
|
|
170
|
+
];
|
|
171
|
+
// Reputation Registry ABI
|
|
172
|
+
export const REPUTATION_REGISTRY_ABI = [
|
|
173
|
+
{
|
|
174
|
+
inputs: [],
|
|
175
|
+
name: 'getIdentityRegistry',
|
|
176
|
+
outputs: [{ internalType: 'address', name: '', type: 'address' }],
|
|
177
|
+
stateMutability: 'view',
|
|
178
|
+
type: 'function',
|
|
179
|
+
},
|
|
180
|
+
{
|
|
181
|
+
inputs: [
|
|
182
|
+
{ internalType: 'uint256', name: 'agentId', type: 'uint256' },
|
|
183
|
+
{ internalType: 'uint8', name: 'score', type: 'uint8' },
|
|
184
|
+
{ internalType: 'bytes32', name: 'tag1', type: 'bytes32' },
|
|
185
|
+
{ internalType: 'bytes32', name: 'tag2', type: 'bytes32' },
|
|
186
|
+
{ internalType: 'string', name: 'feedbackUri', type: 'string' },
|
|
187
|
+
{ internalType: 'bytes32', name: 'feedbackHash', type: 'bytes32' },
|
|
188
|
+
{ internalType: 'bytes', name: 'feedbackAuth', type: 'bytes' },
|
|
189
|
+
],
|
|
190
|
+
name: 'giveFeedback',
|
|
191
|
+
outputs: [],
|
|
192
|
+
stateMutability: 'nonpayable',
|
|
193
|
+
type: 'function',
|
|
194
|
+
},
|
|
195
|
+
{
|
|
196
|
+
inputs: [
|
|
197
|
+
{ internalType: 'uint256', name: 'agentId', type: 'uint256' },
|
|
198
|
+
{ internalType: 'uint64', name: 'feedbackIndex', type: 'uint64' },
|
|
199
|
+
],
|
|
200
|
+
name: 'revokeFeedback',
|
|
201
|
+
outputs: [],
|
|
202
|
+
stateMutability: 'nonpayable',
|
|
203
|
+
type: 'function',
|
|
204
|
+
},
|
|
205
|
+
{
|
|
206
|
+
inputs: [
|
|
207
|
+
{ internalType: 'uint256', name: 'agentId', type: 'uint256' },
|
|
208
|
+
{ internalType: 'address', name: 'clientAddress', type: 'address' },
|
|
209
|
+
{ internalType: 'uint64', name: 'feedbackIndex', type: 'uint64' },
|
|
210
|
+
{ internalType: 'string', name: 'responseUri', type: 'string' },
|
|
211
|
+
{ internalType: 'bytes32', name: 'responseHash', type: 'bytes32' },
|
|
212
|
+
],
|
|
213
|
+
name: 'appendResponse',
|
|
214
|
+
outputs: [],
|
|
215
|
+
stateMutability: 'nonpayable',
|
|
216
|
+
type: 'function',
|
|
217
|
+
},
|
|
218
|
+
{
|
|
219
|
+
inputs: [
|
|
220
|
+
{ internalType: 'uint256', name: 'agentId', type: 'uint256' },
|
|
221
|
+
{ internalType: 'address', name: 'clientAddress', type: 'address' },
|
|
222
|
+
],
|
|
223
|
+
name: 'getLastIndex',
|
|
224
|
+
outputs: [{ internalType: 'uint64', name: '', type: 'uint64' }],
|
|
225
|
+
stateMutability: 'view',
|
|
226
|
+
type: 'function',
|
|
227
|
+
},
|
|
228
|
+
{
|
|
229
|
+
inputs: [
|
|
230
|
+
{ internalType: 'uint256', name: 'agentId', type: 'uint256' },
|
|
231
|
+
{ internalType: 'address', name: 'clientAddress', type: 'address' },
|
|
232
|
+
{ internalType: 'uint64', name: 'index', type: 'uint64' },
|
|
233
|
+
],
|
|
234
|
+
name: 'readFeedback',
|
|
235
|
+
outputs: [
|
|
236
|
+
{ internalType: 'uint8', name: 'score', type: 'uint8' },
|
|
237
|
+
{ internalType: 'bytes32', name: 'tag1', type: 'bytes32' },
|
|
238
|
+
{ internalType: 'bytes32', name: 'tag2', type: 'bytes32' },
|
|
239
|
+
{ internalType: 'bool', name: 'isRevoked', type: 'bool' },
|
|
240
|
+
],
|
|
241
|
+
stateMutability: 'view',
|
|
242
|
+
type: 'function',
|
|
243
|
+
},
|
|
244
|
+
{
|
|
245
|
+
inputs: [
|
|
246
|
+
{ internalType: 'uint256', name: 'agentId', type: 'uint256' },
|
|
247
|
+
{ internalType: 'address[]', name: 'clientAddresses', type: 'address[]' },
|
|
248
|
+
{ internalType: 'bytes32', name: 'tag1', type: 'bytes32' },
|
|
249
|
+
{ internalType: 'bytes32', name: 'tag2', type: 'bytes32' },
|
|
250
|
+
],
|
|
251
|
+
name: 'getSummary',
|
|
252
|
+
outputs: [
|
|
253
|
+
{ internalType: 'uint64', name: 'count', type: 'uint64' },
|
|
254
|
+
{ internalType: 'uint8', name: 'averageScore', type: 'uint8' },
|
|
255
|
+
],
|
|
256
|
+
stateMutability: 'view',
|
|
257
|
+
type: 'function',
|
|
258
|
+
},
|
|
259
|
+
{
|
|
260
|
+
anonymous: false,
|
|
261
|
+
inputs: [
|
|
262
|
+
{ indexed: true, internalType: 'uint256', name: 'agentId', type: 'uint256' },
|
|
263
|
+
{ indexed: true, internalType: 'address', name: 'clientAddress', type: 'address' },
|
|
264
|
+
{ indexed: false, internalType: 'uint8', name: 'score', type: 'uint8' },
|
|
265
|
+
{ indexed: true, internalType: 'bytes32', name: 'tag1', type: 'bytes32' },
|
|
266
|
+
{ indexed: false, internalType: 'bytes32', name: 'tag2', type: 'bytes32' },
|
|
267
|
+
{ indexed: false, internalType: 'string', name: 'feedbackUri', type: 'string' },
|
|
268
|
+
{ indexed: false, internalType: 'bytes32', name: 'feedbackHash', type: 'bytes32' },
|
|
269
|
+
],
|
|
270
|
+
name: 'NewFeedback',
|
|
271
|
+
type: 'event',
|
|
272
|
+
},
|
|
273
|
+
{
|
|
274
|
+
anonymous: false,
|
|
275
|
+
inputs: [
|
|
276
|
+
{ indexed: true, internalType: 'uint256', name: 'agentId', type: 'uint256' },
|
|
277
|
+
{ indexed: true, internalType: 'address', name: 'clientAddress', type: 'address' },
|
|
278
|
+
{ indexed: true, internalType: 'uint64', name: 'feedbackIndex', type: 'uint64' },
|
|
279
|
+
],
|
|
280
|
+
name: 'FeedbackRevoked',
|
|
281
|
+
type: 'event',
|
|
282
|
+
},
|
|
283
|
+
];
|
|
284
|
+
// Validation Registry ABI
|
|
285
|
+
export const VALIDATION_REGISTRY_ABI = [
|
|
286
|
+
{
|
|
287
|
+
inputs: [],
|
|
288
|
+
name: 'getIdentityRegistry',
|
|
289
|
+
outputs: [{ internalType: 'address', name: '', type: 'address' }],
|
|
290
|
+
stateMutability: 'view',
|
|
291
|
+
type: 'function',
|
|
292
|
+
},
|
|
293
|
+
{
|
|
294
|
+
inputs: [
|
|
295
|
+
{ internalType: 'address', name: 'validatorAddress', type: 'address' },
|
|
296
|
+
{ internalType: 'uint256', name: 'agentId', type: 'uint256' },
|
|
297
|
+
{ internalType: 'string', name: 'requestUri', type: 'string' },
|
|
298
|
+
{ internalType: 'bytes32', name: 'requestHash', type: 'bytes32' },
|
|
299
|
+
],
|
|
300
|
+
name: 'validationRequest',
|
|
301
|
+
outputs: [],
|
|
302
|
+
stateMutability: 'nonpayable',
|
|
303
|
+
type: 'function',
|
|
304
|
+
},
|
|
305
|
+
{
|
|
306
|
+
inputs: [
|
|
307
|
+
{ internalType: 'bytes32', name: 'requestHash', type: 'bytes32' },
|
|
308
|
+
{ internalType: 'uint8', name: 'response', type: 'uint8' },
|
|
309
|
+
{ internalType: 'string', name: 'responseUri', type: 'string' },
|
|
310
|
+
{ internalType: 'bytes32', name: 'responseHash', type: 'bytes32' },
|
|
311
|
+
{ internalType: 'bytes32', name: 'tag', type: 'bytes32' },
|
|
312
|
+
],
|
|
313
|
+
name: 'validationResponse',
|
|
314
|
+
outputs: [],
|
|
315
|
+
stateMutability: 'nonpayable',
|
|
316
|
+
type: 'function',
|
|
317
|
+
},
|
|
318
|
+
];
|
|
319
|
+
/**
|
|
320
|
+
* Contract registry for different chains
|
|
321
|
+
*/
|
|
322
|
+
export const DEFAULT_REGISTRIES = {
|
|
323
|
+
11155111: {
|
|
324
|
+
// Ethereum Sepolia
|
|
325
|
+
IDENTITY: '0x8004a6090Cd10A7288092483047B097295Fb8847',
|
|
326
|
+
REPUTATION: '0x8004B8FD1A363aa02fDC07635C0c5F94f6Af5B7E',
|
|
327
|
+
VALIDATION: '0x8004CB39f29c09145F24Ad9dDe2A108C1A2cdfC5',
|
|
328
|
+
},
|
|
329
|
+
84532: {
|
|
330
|
+
// Base Sepolia
|
|
331
|
+
IDENTITY: '0x8004AA63c570c570eBF15376c0dB199918BFe9Fb',
|
|
332
|
+
REPUTATION: '0x8004bd8daB57f14Ed299135749a5CB5c42d341BF',
|
|
333
|
+
VALIDATION: '0x8004C269D0A5647E51E121FeB226200ECE932d55',
|
|
334
|
+
},
|
|
335
|
+
59141: {
|
|
336
|
+
// Linea Sepolia
|
|
337
|
+
IDENTITY: '0x8004aa7C931bCE1233973a0C6A667f73F66282e7',
|
|
338
|
+
REPUTATION: '0x8004bd8483b99310df121c46ED8858616b2Bba02',
|
|
339
|
+
VALIDATION: '0x8004c44d1EFdd699B2A26e781eF7F77c56A9a4EB',
|
|
340
|
+
},
|
|
341
|
+
};
|
|
342
|
+
/**
|
|
343
|
+
* Default subgraph URLs for different chains
|
|
344
|
+
*/
|
|
345
|
+
export const DEFAULT_SUBGRAPH_URLS = {
|
|
346
|
+
11155111: 'https://gateway.thegraph.com/api/00a452ad3cd1900273ea62c1bf283f93/subgraphs/id/6wQRC7geo9XYAhckfmfo8kbMRLeWU8KQd3XsJqFKmZLT', // Ethereum Sepolia
|
|
347
|
+
};
|
|
348
|
+
//# sourceMappingURL=contracts.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"contracts.js","sourceRoot":"","sources":["../../src/core/contracts.ts"],"names":[],"mappings":"AAAA;;GAEG;AAIH,2CAA2C;AAC3C,MAAM,CAAC,MAAM,UAAU,GAAG;IACxB;QACE,MAAM,EAAE,CAAC,EAAE,YAAY,EAAE,SAAS,EAAE,IAAI,EAAE,SAAS,EAAE,IAAI,EAAE,SAAS,EAAE,CAAC;QACvE,IAAI,EAAE,SAAS;QACf,OAAO,EAAE,CAAC,EAAE,YAAY,EAAE,SAAS,EAAE,IAAI,EAAE,EAAE,EAAE,IAAI,EAAE,SAAS,EAAE,CAAC;QACjE,eAAe,EAAE,MAAM;QACvB,IAAI,EAAE,UAAU;KACjB;IACD;QACE,MAAM,EAAE;YACN,EAAE,YAAY,EAAE,SAAS,EAAE,IAAI,EAAE,OAAO,EAAE,IAAI,EAAE,SAAS,EAAE;YAC3D,EAAE,YAAY,EAAE,SAAS,EAAE,IAAI,EAAE,UAAU,EAAE,IAAI,EAAE,SAAS,EAAE;SAC/D;QACD,IAAI,EAAE,kBAAkB;QACxB,OAAO,EAAE,CAAC,EAAE,YAAY,EAAE,MAAM,EAAE,IAAI,EAAE,EAAE,EAAE,IAAI,EAAE,MAAM,EAAE,CAAC;QAC3D,eAAe,EAAE,MAAM;QACvB,IAAI,EAAE,UAAU;KACjB;IACD;QACE,MAAM,EAAE,CAAC,EAAE,YAAY,EAAE,SAAS,EAAE,IAAI,EAAE,SAAS,EAAE,IAAI,EAAE,SAAS,EAAE,CAAC;QACvE,IAAI,EAAE,aAAa;QACnB,OAAO,EAAE,CAAC,EAAE,YAAY,EAAE,SAAS,EAAE,IAAI,EAAE,EAAE,EAAE,IAAI,EAAE,SAAS,EAAE,CAAC;QACjE,eAAe,EAAE,MAAM;QACvB,IAAI,EAAE,UAAU;KACjB;IACD;QACE,MAAM,EAAE;YACN,EA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AAU;KACjB;CACO,CAAC;AAEX;;GAEG;AACH,MAAM,CAAC,MAAM,kBAAkB,GAA4C;IACzE,QAAQ,EAAE;QACR,mBAAmB;QACnB,QAAQ,EAAE,4CAA4C;QACtD,UAAU,EAAE,4CAA4C;QACxD,UAAU,EAAE,4CAA4C;KACzD;IACD,KAAK,EAAE;QACL,eAAe;QACf,QAAQ,EAAE,4CAA4C;QACtD,UAAU,EAAE,4CAA4C;QACxD,UAAU,EAAE,4CAA4C;KACzD;IACD,KAAK,EAAE;QACL,gBAAgB;QAChB,QAAQ,EAAE,4CAA4C;QACtD,UAAU,EAAE,4CAA4C;QACxD,UAAU,EAAE,4CAA4C;KACzD;CACF,CAAC;AAEF;;GAEG;AACH,MAAM,CAAC,MAAM,qBAAqB,GAA4B;IAC5D,QAAQ,EACN,6HAA6H,EAAE,mBAAmB;CACrJ,CAAC"}
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Endpoint Crawler for MCP and A2A Servers
|
|
3
|
+
* Automatically fetches capabilities (tools, prompts, resources, skills) from endpoints
|
|
4
|
+
*/
|
|
5
|
+
export interface McpCapabilities {
|
|
6
|
+
mcpTools?: string[];
|
|
7
|
+
mcpPrompts?: string[];
|
|
8
|
+
mcpResources?: string[];
|
|
9
|
+
}
|
|
10
|
+
export interface A2aCapabilities {
|
|
11
|
+
a2aSkills?: string[];
|
|
12
|
+
}
|
|
13
|
+
/**
|
|
14
|
+
* Crawls MCP and A2A endpoints to fetch capabilities
|
|
15
|
+
*/
|
|
16
|
+
export declare class EndpointCrawler {
|
|
17
|
+
private timeout;
|
|
18
|
+
constructor(timeout?: number);
|
|
19
|
+
/**
|
|
20
|
+
* Fetch MCP capabilities (tools, prompts, resources) from an MCP server
|
|
21
|
+
*/
|
|
22
|
+
fetchMcpCapabilities(endpoint: string): Promise<McpCapabilities | null>;
|
|
23
|
+
/**
|
|
24
|
+
* Try to fetch capabilities via JSON-RPC
|
|
25
|
+
*/
|
|
26
|
+
private _fetchViaJsonRpc;
|
|
27
|
+
/**
|
|
28
|
+
* Make a JSON-RPC call and return the result
|
|
29
|
+
*/
|
|
30
|
+
private _jsonRpcCall;
|
|
31
|
+
/**
|
|
32
|
+
* Parse Server-Sent Events (SSE) format response
|
|
33
|
+
*/
|
|
34
|
+
private _parseSseResponse;
|
|
35
|
+
/**
|
|
36
|
+
* Fetch A2A capabilities (skills) from an A2A server
|
|
37
|
+
*/
|
|
38
|
+
fetchA2aCapabilities(endpoint: string): Promise<A2aCapabilities | null>;
|
|
39
|
+
/**
|
|
40
|
+
* Extract a list of strings from nested JSON data
|
|
41
|
+
*/
|
|
42
|
+
private _extractList;
|
|
43
|
+
}
|
|
44
|
+
//# sourceMappingURL=endpoint-crawler.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"endpoint-crawler.d.ts","sourceRoot":"","sources":["../../src/core/endpoint-crawler.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,MAAM,WAAW,eAAe;IAC9B,QAAQ,CAAC,EAAE,MAAM,EAAE,CAAC;IACpB,UAAU,CAAC,EAAE,MAAM,EAAE,CAAC;IACtB,YAAY,CAAC,EAAE,MAAM,EAAE,CAAC;CACzB;AAED,MAAM,WAAW,eAAe;IAC9B,SAAS,CAAC,EAAE,MAAM,EAAE,CAAC;CACtB;AAcD;;GAEG;AACH,qBAAa,eAAe;IAC1B,OAAO,CAAC,OAAO,CAAS;gBAEZ,OAAO,GAAE,MAAa;IAIlC;;OAEG;IACG,oBAAoB,CAAC,QAAQ,EAAE,MAAM,GAAG,OAAO,CAAC,eAAe,GAAG,IAAI,CAAC;IA0C7E;;OAEG;YACW,gBAAgB;IA+D9B;;OAEG;YACW,YAAY;IAyC1B;;OAEG;IACH,OAAO,CAAC,iBAAiB;IAoBzB;;OAEG;IACG,oBAAoB,CAAC,QAAQ,EAAE,MAAM,GAAG,OAAO,CAAC,eAAe,GAAG,IAAI,CAAC;IA4C7E;;OAEG;IACH,OAAO,CAAC,YAAY;CAkDrB"}
|