@dobbyai/mcp-external 1.0.1 → 1.0.3

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 (37) hide show
  1. package/README.md +67 -14
  2. package/dist/__tests__/tools/services.test.d.ts +2 -0
  3. package/dist/__tests__/tools/services.test.d.ts.map +1 -0
  4. package/dist/__tests__/tools/services.test.js +223 -0
  5. package/dist/__tests__/tools/services.test.js.map +1 -0
  6. package/dist/lib/dobby-client.d.ts +9 -0
  7. package/dist/lib/dobby-client.d.ts.map +1 -1
  8. package/dist/lib/dobby-client.js +37 -0
  9. package/dist/lib/dobby-client.js.map +1 -1
  10. package/dist/resources/index.d.ts.map +1 -1
  11. package/dist/resources/index.js +27 -0
  12. package/dist/resources/index.js.map +1 -1
  13. package/dist/tools/crew-builder.d.ts +165 -0
  14. package/dist/tools/crew-builder.d.ts.map +1 -0
  15. package/dist/tools/crew-builder.js +306 -0
  16. package/dist/tools/crew-builder.js.map +1 -0
  17. package/dist/tools/crewai.d.ts +140 -0
  18. package/dist/tools/crewai.d.ts.map +1 -0
  19. package/dist/tools/crewai.js +226 -0
  20. package/dist/tools/crewai.js.map +1 -0
  21. package/dist/tools/index.d.ts +453 -0
  22. package/dist/tools/index.d.ts.map +1 -1
  23. package/dist/tools/index.js +83 -0
  24. package/dist/tools/index.js.map +1 -1
  25. package/dist/tools/jira.d.ts +437 -0
  26. package/dist/tools/jira.d.ts.map +1 -0
  27. package/dist/tools/jira.js +628 -0
  28. package/dist/tools/jira.js.map +1 -0
  29. package/dist/tools/mcp-tools.d.ts +90 -0
  30. package/dist/tools/mcp-tools.d.ts.map +1 -0
  31. package/dist/tools/mcp-tools.js +203 -0
  32. package/dist/tools/mcp-tools.js.map +1 -0
  33. package/dist/tools/services.d.ts +38 -0
  34. package/dist/tools/services.d.ts.map +1 -0
  35. package/dist/tools/services.js +166 -0
  36. package/dist/tools/services.js.map +1 -0
  37. package/package.json +1 -1
@@ -0,0 +1,226 @@
1
+ /**
2
+ * CrewAI Tools
3
+ *
4
+ * MCP tools for interacting with CrewAI agents through the Dobby gateway proxy.
5
+ * All calls go through /api/v1/gateway/agents/proxy which handles:
6
+ * - credential decryption
7
+ * - connection lookup
8
+ * - request forwarding
9
+ */
10
+ // ============================================
11
+ // Tool Definitions
12
+ // ============================================
13
+ export const crewaiTools = {
14
+ crewai_health: {
15
+ name: 'crewai_health',
16
+ description: 'Check the health status of the connected CrewAI agent. Returns the agent status and connection info.',
17
+ inputSchema: {
18
+ type: 'object',
19
+ properties: {
20
+ connection_id: {
21
+ type: 'string',
22
+ description: 'Optional: specific connection ID. If omitted, uses the first active CrewAI connection.',
23
+ },
24
+ },
25
+ },
26
+ },
27
+ crewai_inputs: {
28
+ name: 'crewai_inputs',
29
+ description: 'Get the required input fields for the CrewAI crew. Returns the list of input parameter names needed to start a kickoff.',
30
+ inputSchema: {
31
+ type: 'object',
32
+ properties: {
33
+ connection_id: {
34
+ type: 'string',
35
+ description: 'Optional: specific connection ID. If omitted, uses the first active CrewAI connection.',
36
+ },
37
+ },
38
+ },
39
+ },
40
+ crewai_kickoff: {
41
+ name: 'crewai_kickoff',
42
+ description: 'Start a CrewAI crew execution (kickoff). Provide the required inputs and the crew will begin processing. Returns a kickoff_id to track the status.',
43
+ inputSchema: {
44
+ type: 'object',
45
+ properties: {
46
+ inputs: {
47
+ type: 'object',
48
+ description: 'The input parameters for the crew. Use crewai_inputs first to see which fields are required.',
49
+ additionalProperties: { type: 'string' },
50
+ },
51
+ connection_id: {
52
+ type: 'string',
53
+ description: 'Optional: specific connection ID. If omitted, uses the first active CrewAI connection.',
54
+ },
55
+ },
56
+ required: ['inputs'],
57
+ },
58
+ },
59
+ crewai_status: {
60
+ name: 'crewai_status',
61
+ description: 'Check the status of a CrewAI crew execution. Provide the kickoff_id from a previous crewai_kickoff call. Returns the state, result, and execution details.',
62
+ inputSchema: {
63
+ type: 'object',
64
+ properties: {
65
+ kickoff_id: {
66
+ type: 'string',
67
+ description: 'The kickoff ID returned from crewai_kickoff.',
68
+ },
69
+ connection_id: {
70
+ type: 'string',
71
+ description: 'Optional: specific connection ID. If omitted, uses the first active CrewAI connection.',
72
+ },
73
+ },
74
+ required: ['kickoff_id'],
75
+ },
76
+ },
77
+ };
78
+ async function callGatewayProxy(client, payload) {
79
+ const url = `${client.apiUrl}/api/v1/gateway/agents/proxy`;
80
+ const response = await fetch(url, {
81
+ method: 'POST',
82
+ headers: {
83
+ 'Content-Type': 'application/json',
84
+ Authorization: `Bearer ${client.apiKey}`,
85
+ ...(client.tenantId ? { 'X-Tenant-Id': client.tenantId } : {}),
86
+ },
87
+ body: JSON.stringify({
88
+ ...payload,
89
+ provider_id: payload.provider_id || 'crewai',
90
+ }),
91
+ });
92
+ if (!response.ok) {
93
+ const errBody = await response.json().catch(() => ({
94
+ error: `Gateway proxy returned ${response.status}`,
95
+ }));
96
+ throw new Error(errBody.error ||
97
+ `Gateway proxy error: HTTP ${response.status}`);
98
+ }
99
+ return response.json();
100
+ }
101
+ // ============================================
102
+ // Tool Handlers
103
+ // ============================================
104
+ export async function handleCrewAIHealth(client, args) {
105
+ try {
106
+ const data = await callGatewayProxy(client, {
107
+ action: 'health',
108
+ connection_id: args.connection_id,
109
+ });
110
+ const conn = data.connection || {};
111
+ let text = `# CrewAI Health Check\n\n`;
112
+ text += `- **Status:** ${data.response?.status || 'unknown'}\n`;
113
+ text += `- **Connection:** ${conn.display_name || conn.connection_id}\n`;
114
+ text += `- **Provider:** ${conn.provider_id}\n`;
115
+ text += `- **Connection Status:** ${conn.status}\n`;
116
+ text += `- **Latency:** ${data.latency_ms}ms\n`;
117
+ return { content: [{ type: 'text', text }] };
118
+ }
119
+ catch (error) {
120
+ return {
121
+ content: [
122
+ { type: 'text', text: `CrewAI health check failed: ${error.message}` },
123
+ ],
124
+ isError: true,
125
+ };
126
+ }
127
+ }
128
+ export async function handleCrewAIInputs(client, args) {
129
+ try {
130
+ const data = await callGatewayProxy(client, {
131
+ action: 'inputs',
132
+ connection_id: args.connection_id,
133
+ });
134
+ const inputs = data.response?.inputs || [];
135
+ const conn = data.connection || {};
136
+ let text = `# CrewAI Required Inputs\n\n`;
137
+ text += `**Crew:** ${conn.display_name || 'CrewAI'}\n\n`;
138
+ if (inputs.length > 0) {
139
+ text += `The following inputs are required to start a kickoff:\n\n`;
140
+ for (const input of inputs) {
141
+ text += `- \`${input}\`\n`;
142
+ }
143
+ text += `\nUse \`crewai_kickoff\` with these inputs to start the crew.`;
144
+ }
145
+ else {
146
+ text += `No inputs required. You can call \`crewai_kickoff\` with an empty inputs object.`;
147
+ }
148
+ return { content: [{ type: 'text', text }] };
149
+ }
150
+ catch (error) {
151
+ return {
152
+ content: [
153
+ { type: 'text', text: `Failed to get CrewAI inputs: ${error.message}` },
154
+ ],
155
+ isError: true,
156
+ };
157
+ }
158
+ }
159
+ export async function handleCrewAIKickoff(client, args) {
160
+ try {
161
+ const data = await callGatewayProxy(client, {
162
+ action: 'kickoff',
163
+ inputs: args.inputs,
164
+ connection_id: args.connection_id,
165
+ });
166
+ const kickoffId = data.response?.kickoff_id;
167
+ const conn = data.connection || {};
168
+ let text = `# CrewAI Kickoff Started\n\n`;
169
+ text += `- **Crew:** ${conn.display_name || 'CrewAI'}\n`;
170
+ text += `- **Kickoff ID:** \`${kickoffId}\`\n`;
171
+ text += `- **Inputs:** ${JSON.stringify(args.inputs)}\n`;
172
+ text += `- **Latency:** ${data.latency_ms}ms\n\n`;
173
+ text += `Use \`crewai_status\` with kickoff_id \`${kickoffId}\` to check progress.`;
174
+ return { content: [{ type: 'text', text }] };
175
+ }
176
+ catch (error) {
177
+ return {
178
+ content: [
179
+ { type: 'text', text: `CrewAI kickoff failed: ${error.message}` },
180
+ ],
181
+ isError: true,
182
+ };
183
+ }
184
+ }
185
+ export async function handleCrewAIStatus(client, args) {
186
+ try {
187
+ const data = await callGatewayProxy(client, {
188
+ action: 'status',
189
+ kickoff_id: args.kickoff_id,
190
+ connection_id: args.connection_id,
191
+ });
192
+ const resp = data.response || {};
193
+ const conn = data.connection || {};
194
+ let text = `# CrewAI Execution Status\n\n`;
195
+ text += `- **Crew:** ${conn.display_name || 'CrewAI'}\n`;
196
+ text += `- **Kickoff ID:** \`${args.kickoff_id}\`\n`;
197
+ text += `- **State:** ${resp.state || 'unknown'}\n`;
198
+ text += `- **Status:** ${resp.status || 'unknown'}\n`;
199
+ if (resp.last_executed_task) {
200
+ text += `- **Last Task:** ${resp.last_executed_task}\n`;
201
+ }
202
+ if (resp.last_step) {
203
+ text += `- **Last Step:** ${resp.last_step}\n`;
204
+ }
205
+ text += `- **Latency:** ${data.latency_ms}ms\n`;
206
+ if (resp.result) {
207
+ text += `\n## Result\n\n${resp.result}\n`;
208
+ }
209
+ if (resp.result_json) {
210
+ text += `\n## Result (JSON)\n\n\`\`\`json\n${JSON.stringify(resp.result_json, null, 2)}\n\`\`\`\n`;
211
+ }
212
+ return { content: [{ type: 'text', text }] };
213
+ }
214
+ catch (error) {
215
+ return {
216
+ content: [
217
+ {
218
+ type: 'text',
219
+ text: `Failed to get CrewAI status: ${error.message}`,
220
+ },
221
+ ],
222
+ isError: true,
223
+ };
224
+ }
225
+ }
226
+ //# sourceMappingURL=crewai.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"crewai.js","sourceRoot":"","sources":["../../src/tools/crewai.ts"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AAIH,+CAA+C;AAC/C,mBAAmB;AACnB,+CAA+C;AAE/C,MAAM,CAAC,MAAM,WAAW,GAAG;IACzB,aAAa,EAAE;QACb,IAAI,EAAE,eAAe;QACrB,WAAW,EACT,sGAAsG;QACxG,WAAW,EAAE;YACX,IAAI,EAAE,QAAiB;YACvB,UAAU,EAAE;gBACV,aAAa,EAAE;oBACb,IAAI,EAAE,QAAQ;oBACd,WAAW,EACT,wFAAwF;iBAC3F;aACF;SACF;KACF;IAED,aAAa,EAAE;QACb,IAAI,EAAE,eAAe;QACrB,WAAW,EACT,yHAAy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,EAAE,CAAC,CAAC,YAAY,CAAC;QACrG,CAAC;QAED,OAAO,EAAE,OAAO,EAAE,CAAC,EAAE,IAAI,EAAE,MAAe,EAAE,IAAI,EAAE,CAAC,EAAE,CAAC;IACxD,CAAC;IAAC,OAAO,KAAU,EAAE,CAAC;QACpB,OAAO;YACL,OAAO,EAAE;gBACP;oBACE,IAAI,EAAE,MAAe;oBACrB,IAAI,EAAE,gCAAgC,KAAK,CAAC,OAAO,EAAE;iBACtD;aACF;YACD,OAAO,EAAE,IAAI;SACd,CAAC;IACJ,CAAC;AACH,CAAC"}
@@ -7,8 +7,461 @@
7
7
  export * from './tasks.js';
8
8
  export * from './messages.js';
9
9
  export * from './approvals.js';
10
+ export * from './services.js';
11
+ export * from './crewai.js';
12
+ export * from './crew-builder.js';
13
+ export * from './mcp-tools.js';
14
+ export * from './jira.js';
10
15
  import { DobbyClient } from '../lib/dobby-client.js';
11
16
  export declare const allTools: {
17
+ jira_search_issues: {
18
+ name: string;
19
+ description: string;
20
+ inputSchema: {
21
+ type: "object";
22
+ properties: {
23
+ jql: {
24
+ type: string;
25
+ description: string;
26
+ };
27
+ max_results: {
28
+ type: string;
29
+ description: string;
30
+ };
31
+ next_page_token: {
32
+ type: string;
33
+ description: string;
34
+ };
35
+ connection_id: {
36
+ type: string;
37
+ description: string;
38
+ };
39
+ };
40
+ required: string[];
41
+ };
42
+ };
43
+ jira_get_issue: {
44
+ name: string;
45
+ description: string;
46
+ inputSchema: {
47
+ type: "object";
48
+ properties: {
49
+ issue_key: {
50
+ type: string;
51
+ description: string;
52
+ };
53
+ connection_id: {
54
+ type: string;
55
+ description: string;
56
+ };
57
+ };
58
+ required: string[];
59
+ };
60
+ };
61
+ jira_create_issue: {
62
+ name: string;
63
+ description: string;
64
+ inputSchema: {
65
+ type: "object";
66
+ properties: {
67
+ project_key: {
68
+ type: string;
69
+ description: string;
70
+ };
71
+ summary: {
72
+ type: string;
73
+ description: string;
74
+ };
75
+ description: {
76
+ type: string;
77
+ description: string;
78
+ };
79
+ issue_type: {
80
+ type: string;
81
+ description: string;
82
+ };
83
+ priority: {
84
+ type: string;
85
+ description: string;
86
+ };
87
+ labels: {
88
+ type: string;
89
+ items: {
90
+ type: string;
91
+ };
92
+ description: string;
93
+ };
94
+ connection_id: {
95
+ type: string;
96
+ description: string;
97
+ };
98
+ };
99
+ required: string[];
100
+ };
101
+ };
102
+ jira_update_issue: {
103
+ name: string;
104
+ description: string;
105
+ inputSchema: {
106
+ type: "object";
107
+ properties: {
108
+ issue_key: {
109
+ type: string;
110
+ description: string;
111
+ };
112
+ summary: {
113
+ type: string;
114
+ description: string;
115
+ };
116
+ description: {
117
+ type: string;
118
+ description: string;
119
+ };
120
+ priority: {
121
+ type: string;
122
+ description: string;
123
+ };
124
+ labels: {
125
+ type: string;
126
+ items: {
127
+ type: string;
128
+ };
129
+ description: string;
130
+ };
131
+ connection_id: {
132
+ type: string;
133
+ description: string;
134
+ };
135
+ };
136
+ required: string[];
137
+ };
138
+ };
139
+ jira_add_comment: {
140
+ name: string;
141
+ description: string;
142
+ inputSchema: {
143
+ type: "object";
144
+ properties: {
145
+ issue_key: {
146
+ type: string;
147
+ description: string;
148
+ };
149
+ comment_body: {
150
+ type: string;
151
+ description: string;
152
+ };
153
+ connection_id: {
154
+ type: string;
155
+ description: string;
156
+ };
157
+ };
158
+ required: string[];
159
+ };
160
+ };
161
+ jira_get_comments: {
162
+ name: string;
163
+ description: string;
164
+ inputSchema: {
165
+ type: "object";
166
+ properties: {
167
+ issue_key: {
168
+ type: string;
169
+ description: string;
170
+ };
171
+ max_results: {
172
+ type: string;
173
+ description: string;
174
+ };
175
+ connection_id: {
176
+ type: string;
177
+ description: string;
178
+ };
179
+ };
180
+ required: string[];
181
+ };
182
+ };
183
+ jira_get_transitions: {
184
+ name: string;
185
+ description: string;
186
+ inputSchema: {
187
+ type: "object";
188
+ properties: {
189
+ issue_key: {
190
+ type: string;
191
+ description: string;
192
+ };
193
+ connection_id: {
194
+ type: string;
195
+ description: string;
196
+ };
197
+ };
198
+ required: string[];
199
+ };
200
+ };
201
+ jira_transition_issue: {
202
+ name: string;
203
+ description: string;
204
+ inputSchema: {
205
+ type: "object";
206
+ properties: {
207
+ issue_key: {
208
+ type: string;
209
+ description: string;
210
+ };
211
+ transition_id: {
212
+ type: string;
213
+ description: string;
214
+ };
215
+ connection_id: {
216
+ type: string;
217
+ description: string;
218
+ };
219
+ };
220
+ required: string[];
221
+ };
222
+ };
223
+ jira_list_projects: {
224
+ name: string;
225
+ description: string;
226
+ inputSchema: {
227
+ type: "object";
228
+ properties: {
229
+ max_results: {
230
+ type: string;
231
+ description: string;
232
+ };
233
+ connection_id: {
234
+ type: string;
235
+ description: string;
236
+ };
237
+ };
238
+ };
239
+ };
240
+ jira_assign_issue: {
241
+ name: string;
242
+ description: string;
243
+ inputSchema: {
244
+ type: "object";
245
+ properties: {
246
+ issue_key: {
247
+ type: string;
248
+ description: string;
249
+ };
250
+ assignee_account_id: {
251
+ type: string;
252
+ description: string;
253
+ };
254
+ connection_id: {
255
+ type: string;
256
+ description: string;
257
+ };
258
+ };
259
+ required: string[];
260
+ };
261
+ };
262
+ mcp_discover_tools: {
263
+ name: string;
264
+ description: string;
265
+ inputSchema: {
266
+ type: "object";
267
+ properties: {
268
+ connection_id: {
269
+ type: string;
270
+ description: string;
271
+ };
272
+ provider_id: {
273
+ type: string;
274
+ description: string;
275
+ };
276
+ };
277
+ };
278
+ };
279
+ mcp_call_tool: {
280
+ name: string;
281
+ description: string;
282
+ inputSchema: {
283
+ type: "object";
284
+ properties: {
285
+ tool_name: {
286
+ type: string;
287
+ description: string;
288
+ };
289
+ tool_arguments: {
290
+ type: string;
291
+ description: string;
292
+ additionalProperties: boolean;
293
+ };
294
+ connection_id: {
295
+ type: string;
296
+ description: string;
297
+ };
298
+ provider_id: {
299
+ type: string;
300
+ description: string;
301
+ };
302
+ };
303
+ required: string[];
304
+ };
305
+ };
306
+ crew_validate: {
307
+ name: string;
308
+ description: string;
309
+ inputSchema: {
310
+ type: "object";
311
+ properties: {
312
+ agents_yaml: {
313
+ type: string;
314
+ description: string;
315
+ };
316
+ tasks_yaml: {
317
+ type: string;
318
+ description: string;
319
+ };
320
+ };
321
+ required: string[];
322
+ };
323
+ };
324
+ crew_kickoff: {
325
+ name: string;
326
+ description: string;
327
+ inputSchema: {
328
+ type: "object";
329
+ properties: {
330
+ agents_yaml: {
331
+ type: string;
332
+ description: string;
333
+ };
334
+ tasks_yaml: {
335
+ type: string;
336
+ description: string;
337
+ };
338
+ variables: {
339
+ type: string;
340
+ description: string;
341
+ additionalProperties: {
342
+ type: string;
343
+ };
344
+ };
345
+ process_type: {
346
+ type: string;
347
+ enum: string[];
348
+ description: string;
349
+ };
350
+ };
351
+ required: string[];
352
+ };
353
+ };
354
+ crew_status: {
355
+ name: string;
356
+ description: string;
357
+ inputSchema: {
358
+ type: "object";
359
+ properties: {
360
+ run_id: {
361
+ type: string;
362
+ description: string;
363
+ };
364
+ };
365
+ required: string[];
366
+ };
367
+ };
368
+ crew_list: {
369
+ name: string;
370
+ description: string;
371
+ inputSchema: {
372
+ type: "object";
373
+ properties: {
374
+ limit: {
375
+ type: string;
376
+ description: string;
377
+ };
378
+ status_filter: {
379
+ type: string;
380
+ enum: string[];
381
+ description: string;
382
+ };
383
+ };
384
+ };
385
+ };
386
+ crewai_health: {
387
+ name: string;
388
+ description: string;
389
+ inputSchema: {
390
+ type: "object";
391
+ properties: {
392
+ connection_id: {
393
+ type: string;
394
+ description: string;
395
+ };
396
+ };
397
+ };
398
+ };
399
+ crewai_inputs: {
400
+ name: string;
401
+ description: string;
402
+ inputSchema: {
403
+ type: "object";
404
+ properties: {
405
+ connection_id: {
406
+ type: string;
407
+ description: string;
408
+ };
409
+ };
410
+ };
411
+ };
412
+ crewai_kickoff: {
413
+ name: string;
414
+ description: string;
415
+ inputSchema: {
416
+ type: "object";
417
+ properties: {
418
+ inputs: {
419
+ type: string;
420
+ description: string;
421
+ additionalProperties: {
422
+ type: string;
423
+ };
424
+ };
425
+ connection_id: {
426
+ type: string;
427
+ description: string;
428
+ };
429
+ };
430
+ required: string[];
431
+ };
432
+ };
433
+ crewai_status: {
434
+ name: string;
435
+ description: string;
436
+ inputSchema: {
437
+ type: "object";
438
+ properties: {
439
+ kickoff_id: {
440
+ type: string;
441
+ description: string;
442
+ };
443
+ connection_id: {
444
+ type: string;
445
+ description: string;
446
+ };
447
+ };
448
+ required: string[];
449
+ };
450
+ };
451
+ list_services: {
452
+ name: string;
453
+ description: string;
454
+ inputSchema: {
455
+ type: "object";
456
+ properties: {
457
+ category: {
458
+ type: string;
459
+ enum: string[];
460
+ description: string;
461
+ };
462
+ };
463
+ };
464
+ };
12
465
  get_pending_approvals: {
13
466
  name: string;
14
467
  description: string;
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/tools/index.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,cAAc,YAAY,CAAC;AAC3B,cAAc,eAAe,CAAC;AAC9B,cAAc,gBAAgB,CAAC;AAK/B,OAAO,EAAE,WAAW,EAAE,MAAM,wBAAwB,CAAC;AAMrD,eAAO,MAAM,QAAQ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAIpB,CAAC;AAEF,MAAM,MAAM,QAAQ,GAAG,MAAM,OAAO,QAAQ,CAAC;AAM7C,MAAM,WAAW,iBAAiB;IAChC,OAAO,EAAE,OAAO,CAAC;IACjB,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,SAAS,CAAC,EAAE,MAAM,CAAC;I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