@workglow/tasks 0.0.100 → 0.0.102

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.
@@ -4,22 +4,15 @@
4
4
  * SPDX-License-Identifier: Apache-2.0
5
5
  */
6
6
  import { CreateWorkflow, IExecuteContext, Task, TaskConfig } from "@workglow/task-graph";
7
- import { FromSchema } from "@workglow/util";
8
- declare const inputSchema: {
7
+ import { DataPortSchema, FromSchema } from "@workglow/util";
8
+ declare const configSchema: {
9
9
  readonly type: "object";
10
10
  readonly properties: {
11
11
  readonly prompt_name: {
12
12
  readonly type: "string";
13
13
  readonly title: "Prompt Name";
14
14
  readonly description: "The name of the prompt to get";
15
- };
16
- readonly prompt_arguments: {
17
- readonly type: "object";
18
- readonly additionalProperties: {
19
- readonly type: "string";
20
- };
21
- readonly title: "Prompt Arguments";
22
- readonly description: "Arguments to pass to the prompt";
15
+ readonly format: "string:mcp-promptname";
23
16
  };
24
17
  readonly transport: {
25
18
  readonly type: "string";
@@ -29,7 +22,7 @@ declare const inputSchema: {
29
22
  };
30
23
  readonly server_url: {
31
24
  readonly type: "string";
32
- readonly format: "uri";
25
+ readonly format: "string:uri";
33
26
  readonly title: "Server URL";
34
27
  readonly description: "The URL of the MCP server (for sse and streamable-http transports)";
35
28
  };
@@ -54,11 +47,54 @@ declare const inputSchema: {
54
47
  readonly title: "Environment";
55
48
  readonly description: "Environment variables (for stdio transport)";
56
49
  };
50
+ readonly id: {
51
+ readonly "x-ui-hidden": true;
52
+ };
53
+ readonly title: {
54
+ readonly type: "string";
55
+ };
56
+ readonly description: {
57
+ readonly type: "string";
58
+ };
59
+ readonly cacheable: {
60
+ readonly type: "boolean";
61
+ };
62
+ readonly inputSchema: {
63
+ readonly type: "object";
64
+ readonly properties: {};
65
+ readonly additionalProperties: true;
66
+ readonly "x-ui-hidden": true;
67
+ };
68
+ readonly outputSchema: {
69
+ readonly type: "object";
70
+ readonly properties: {};
71
+ readonly additionalProperties: true;
72
+ readonly "x-ui-hidden": true;
73
+ };
74
+ readonly extras: {
75
+ readonly type: "object";
76
+ readonly additionalProperties: true;
77
+ readonly "x-ui-hidden": true;
78
+ };
57
79
  };
58
80
  readonly required: readonly ["transport", "prompt_name"];
81
+ readonly if: {
82
+ readonly properties: {
83
+ readonly transport: {
84
+ readonly const: "stdio";
85
+ };
86
+ };
87
+ readonly required: readonly ["transport"];
88
+ };
89
+ readonly then: {
90
+ readonly required: readonly ["command"];
91
+ };
92
+ readonly else: {
93
+ readonly required: readonly ["server_url"];
94
+ };
59
95
  readonly additionalProperties: false;
60
96
  };
61
- declare const outputSchema: {
97
+ declare const fallbackOutputSchema: {
62
98
  readonly type: "object";
63
99
  readonly properties: {
64
100
  readonly messages: {
@@ -332,65 +368,20 @@ declare const outputSchema: {
332
368
  readonly required: readonly ["messages"];
333
369
  readonly additionalProperties: false;
334
370
  };
335
- export type McpPromptGetTaskInput = FromSchema<typeof inputSchema>;
336
- export type McpPromptGetTaskOutput = FromSchema<typeof outputSchema>;
337
- export declare class McpPromptGetTask extends Task<McpPromptGetTaskInput, McpPromptGetTaskOutput, TaskConfig> {
371
+ export type McpPromptGetTaskConfig = TaskConfig & FromSchema<typeof configSchema>;
372
+ export type McpPromptGetTaskInput = Record<string, unknown>;
373
+ export type McpPromptGetTaskOutput = FromSchema<typeof fallbackOutputSchema>;
374
+ export declare class McpPromptGetTask extends Task<McpPromptGetTaskInput, McpPromptGetTaskOutput, McpPromptGetTaskConfig> {
338
375
  static type: string;
339
376
  static category: string;
340
377
  static title: string;
341
378
  static description: string;
342
379
  static readonly cacheable = false;
380
+ static customizable: boolean;
381
+ static hasDynamicSchemas: boolean;
343
382
  static inputSchema(): {
344
383
  readonly type: "object";
345
- readonly properties: {
346
- readonly prompt_name: {
347
- readonly type: "string";
348
- readonly title: "Prompt Name";
349
- readonly description: "The name of the prompt to get";
350
- };
351
- readonly prompt_arguments: {
352
- readonly type: "object";
353
- readonly additionalProperties: {
354
- readonly type: "string";
355
- };
356
- readonly title: "Prompt Arguments";
357
- readonly description: "Arguments to pass to the prompt";
358
- };
359
- readonly transport: {
360
- readonly type: "string";
361
- readonly enum: readonly ["stdio", "sse", "streamable-http"];
362
- readonly title: "Transport";
363
- readonly description: "The transport type to use for connecting to the MCP server";
364
- };
365
- readonly server_url: {
366
- readonly type: "string";
367
- readonly format: "uri";
368
- readonly title: "Server URL";
369
- readonly description: "The URL of the MCP server (for sse and streamable-http transports)";
370
- };
371
- readonly command: {
372
- readonly type: "string";
373
- readonly title: "Command";
374
- readonly description: "The command to run (for stdio transport)";
375
- };
376
- readonly args: {
377
- readonly type: "array";
378
- readonly items: {
379
- readonly type: "string";
380
- };
381
- readonly title: "Arguments";
382
- readonly description: "Command arguments (for stdio transport)";
383
- };
384
- readonly env: {
385
- readonly type: "object";
386
- readonly additionalProperties: {
387
- readonly type: "string";
388
- };
389
- readonly title: "Environment";
390
- readonly description: "Environment variables (for stdio transport)";
391
- };
392
- };
393
- readonly required: readonly ["transport", "prompt_name"];
384
+ readonly properties: {};
394
385
  readonly additionalProperties: false;
395
386
  };
396
387
  static outputSchema(): {
@@ -667,12 +658,105 @@ export declare class McpPromptGetTask extends Task<McpPromptGetTaskInput, McpPro
667
658
  readonly required: readonly ["messages"];
668
659
  readonly additionalProperties: false;
669
660
  };
661
+ static configSchema(): {
662
+ readonly type: "object";
663
+ readonly properties: {
664
+ readonly prompt_name: {
665
+ readonly type: "string";
666
+ readonly title: "Prompt Name";
667
+ readonly description: "The name of the prompt to get";
668
+ readonly format: "string:mcp-promptname";
669
+ };
670
+ readonly transport: {
671
+ readonly type: "string";
672
+ readonly enum: readonly ["stdio", "sse", "streamable-http"];
673
+ readonly title: "Transport";
674
+ readonly description: "The transport type to use for connecting to the MCP server";
675
+ };
676
+ readonly server_url: {
677
+ readonly type: "string";
678
+ readonly format: "string:uri";
679
+ readonly title: "Server URL";
680
+ readonly description: "The URL of the MCP server (for sse and streamable-http transports)";
681
+ };
682
+ readonly command: {
683
+ readonly type: "string";
684
+ readonly title: "Command";
685
+ readonly description: "The command to run (for stdio transport)";
686
+ };
687
+ readonly args: {
688
+ readonly type: "array";
689
+ readonly items: {
690
+ readonly type: "string";
691
+ };
692
+ readonly title: "Arguments";
693
+ readonly description: "Command arguments (for stdio transport)";
694
+ };
695
+ readonly env: {
696
+ readonly type: "object";
697
+ readonly additionalProperties: {
698
+ readonly type: "string";
699
+ };
700
+ readonly title: "Environment";
701
+ readonly description: "Environment variables (for stdio transport)";
702
+ };
703
+ readonly id: {
704
+ readonly "x-ui-hidden": true;
705
+ };
706
+ readonly title: {
707
+ readonly type: "string";
708
+ };
709
+ readonly description: {
710
+ readonly type: "string";
711
+ };
712
+ readonly cacheable: {
713
+ readonly type: "boolean";
714
+ };
715
+ readonly inputSchema: {
716
+ readonly type: "object";
717
+ readonly properties: {};
718
+ readonly additionalProperties: true;
719
+ readonly "x-ui-hidden": true;
720
+ };
721
+ readonly outputSchema: {
722
+ readonly type: "object";
723
+ readonly properties: {};
724
+ readonly additionalProperties: true;
725
+ readonly "x-ui-hidden": true;
726
+ };
727
+ readonly extras: {
728
+ readonly type: "object";
729
+ readonly additionalProperties: true;
730
+ readonly "x-ui-hidden": true;
731
+ };
732
+ };
733
+ readonly required: readonly ["transport", "prompt_name"];
734
+ readonly if: {
735
+ readonly properties: {
736
+ readonly transport: {
737
+ readonly const: "stdio";
738
+ };
739
+ };
740
+ readonly required: readonly ["transport"];
741
+ };
742
+ readonly then: {
743
+ readonly required: readonly ["command"];
744
+ };
745
+ readonly else: {
746
+ readonly required: readonly ["server_url"];
747
+ };
748
+ readonly additionalProperties: false;
749
+ };
750
+ inputSchema(): DataPortSchema;
751
+ outputSchema(): DataPortSchema;
752
+ private _schemasDiscovering;
753
+ discoverSchemas(signal?: AbortSignal): Promise<void>;
670
754
  execute(input: McpPromptGetTaskInput, context: IExecuteContext): Promise<McpPromptGetTaskOutput>;
671
755
  }
672
- export declare const mcpPromptGet: (input: McpPromptGetTaskInput, config?: TaskConfig) => Promise<McpPromptGetTaskOutput>;
756
+ export declare const mcpPromptGet: (input: McpPromptGetTaskInput, config: McpPromptGetTaskConfig) => Promise<McpPromptGetTaskOutput>;
673
757
  declare module "@workglow/task-graph" {
674
758
  interface Workflow {
675
- mcpPromptGet: CreateWorkflow<McpPromptGetTaskInput, McpPromptGetTaskOutput, TaskConfig>;
759
+ mcpPromptGet: CreateWorkflow<McpPromptGetTaskInput, McpPromptGetTaskOutput, McpPromptGetTaskConfig>;
676
760
  }
677
761
  }
678
762
  export {};
@@ -1 +1 @@
1
- {"version":3,"file":"McpPromptGetTask.d.ts","sourceRoot":"","sources":["../../../src/task/mcp/McpPromptGetTask.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,EAAE,cAAc,EAAE,eAAe,EAAE,IAAI,EAAE,UAAU,EAAY,MAAM,sBAAsB,CAAC;AACnG,OAAO,EAEL,UAAU,EAGX,MAAM,gBAAgB,CAAC;AAExB,QAAA,MAAM,WAAW;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAkBkB,CAAC;AAyGpC,QAAA,MAAM,YAAY;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAyBiB,CAAC;AAEpC,MAAM,MAAM,qBAAqB,GAAG,UAAU,CAAC,OAAO,WAAW,CAAC,CAAC;AACnE,MAAM,MAAM,sBAAsB,GAAG,UAAU,CAAC,OAAO,YAAY,CAAC,CAAC;AAErE,qBAAa,gBAAiB,SAAQ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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;WAIZ,YAAY;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;IAIV,WAAW,IAAI,cAAc;IAI7B,YAAY,IAAI,cAAc;IAI9C,OAAO,CAAC,mBAAmB,CAAS;IAE9B,eAAe,CAAC,MAAM,CAAC,EAAE,WAAW,GAAG,OAAO,CAAC,IAAI,CAAC;IA0CpD,OAAO,CACX,KAAK,EAAE,qBAAqB,EAC5B,OAAO,EAAE,eAAe,GACvB,OAAO,CAAC,sBAAsB,CAAC;CAoBnC;AAED,eAAO,MAAM,YAAY,GACvB,OAAO,qBAAqB,EAC5B,QAAQ,sBAAsB,KAC7B,OAAO,CAAC,sBAAsB,CAEhC,CAAC;AAEF,OAAO,QAAQ,sBAAsB,CAAC;IACpC,UAAU,QAAQ;QAChB,YAAY,EAAE,cAAc,CAC1B,qBAAqB,EACrB,sBAAsB,EACtB,sBAAsB,CACvB,CAAC;KACH;CACF"}
@@ -5,13 +5,14 @@
5
5
  */
6
6
  import { CreateWorkflow, IExecuteContext, Task, TaskConfig } from "@workglow/task-graph";
7
7
  import { FromSchema } from "@workglow/util";
8
- declare const inputSchema: {
8
+ declare const configSchema: {
9
9
  readonly type: "object";
10
10
  readonly properties: {
11
11
  readonly resource_uri: {
12
12
  readonly type: "string";
13
13
  readonly title: "Resource URI";
14
14
  readonly description: "The URI of the resource to read";
15
+ readonly format: "string:uri:mcp-resourceuri";
15
16
  };
16
17
  readonly transport: {
17
18
  readonly type: "string";
@@ -21,7 +22,7 @@ declare const inputSchema: {
21
22
  };
22
23
  readonly server_url: {
23
24
  readonly type: "string";
24
- readonly format: "uri";
25
+ readonly format: "string:uri";
25
26
  readonly title: "Server URL";
26
27
  readonly description: "The URL of the MCP server (for sse and streamable-http transports)";
27
28
  };
@@ -46,8 +47,56 @@ declare const inputSchema: {
46
47
  readonly title: "Environment";
47
48
  readonly description: "Environment variables (for stdio transport)";
48
49
  };
50
+ readonly id: {
51
+ readonly "x-ui-hidden": true;
52
+ };
53
+ readonly title: {
54
+ readonly type: "string";
55
+ };
56
+ readonly description: {
57
+ readonly type: "string";
58
+ };
59
+ readonly cacheable: {
60
+ readonly type: "boolean";
61
+ };
62
+ readonly inputSchema: {
63
+ readonly type: "object";
64
+ readonly properties: {};
65
+ readonly additionalProperties: true;
66
+ readonly "x-ui-hidden": true;
67
+ };
68
+ readonly outputSchema: {
69
+ readonly type: "object";
70
+ readonly properties: {};
71
+ readonly additionalProperties: true;
72
+ readonly "x-ui-hidden": true;
73
+ };
74
+ readonly extras: {
75
+ readonly type: "object";
76
+ readonly additionalProperties: true;
77
+ readonly "x-ui-hidden": true;
78
+ };
49
79
  };
50
80
  readonly required: readonly ["transport", "resource_uri"];
81
+ readonly if: {
82
+ readonly properties: {
83
+ readonly transport: {
84
+ readonly const: "stdio";
85
+ };
86
+ };
87
+ readonly required: readonly ["transport"];
88
+ };
89
+ readonly then: {
90
+ readonly required: readonly ["command"];
91
+ };
92
+ readonly else: {
93
+ readonly required: readonly ["server_url"];
94
+ };
95
+ readonly additionalProperties: false;
96
+ };
97
+ declare const inputSchema: {
98
+ readonly type: "object";
99
+ readonly properties: {};
51
100
  readonly additionalProperties: false;
52
101
  };
53
102
  declare const outputSchema: {
@@ -103,57 +152,19 @@ declare const outputSchema: {
103
152
  readonly required: readonly ["contents"];
104
153
  readonly additionalProperties: false;
105
154
  };
155
+ export type McpResourceReadTaskConfig = TaskConfig & FromSchema<typeof configSchema>;
106
156
  export type McpResourceReadTaskInput = FromSchema<typeof inputSchema>;
107
157
  export type McpResourceReadTaskOutput = FromSchema<typeof outputSchema>;
108
- export declare class McpResourceReadTask extends Task<McpResourceReadTaskInput, McpResourceReadTaskOutput, TaskConfig> {
158
+ export declare class McpResourceReadTask extends Task<McpResourceReadTaskInput, McpResourceReadTaskOutput, McpResourceReadTaskConfig> {
109
159
  static type: string;
110
160
  static category: string;
111
161
  static title: string;
112
162
  static description: string;
113
163
  static readonly cacheable = false;
164
+ static customizable: boolean;
114
165
  static inputSchema(): {
115
166
  readonly type: "object";
116
- readonly properties: {
117
- readonly resource_uri: {
118
- readonly type: "string";
119
- readonly title: "Resource URI";
120
- readonly description: "The URI of the resource to read";
121
- };
122
- readonly transport: {
123
- readonly type: "string";
124
- readonly enum: readonly ["stdio", "sse", "streamable-http"];
125
- readonly title: "Transport";
126
- readonly description: "The transport type to use for connecting to the MCP server";
127
- };
128
- readonly server_url: {
129
- readonly type: "string";
130
- readonly format: "uri";
131
- readonly title: "Server URL";
132
- readonly description: "The URL of the MCP server (for sse and streamable-http transports)";
133
- };
134
- readonly command: {
135
- readonly type: "string";
136
- readonly title: "Command";
137
- readonly description: "The command to run (for stdio transport)";
138
- };
139
- readonly args: {
140
- readonly type: "array";
141
- readonly items: {
142
- readonly type: "string";
143
- };
144
- readonly title: "Arguments";
145
- readonly description: "Command arguments (for stdio transport)";
146
- };
147
- readonly env: {
148
- readonly type: "object";
149
- readonly additionalProperties: {
150
- readonly type: "string";
151
- };
152
- readonly title: "Environment";
153
- readonly description: "Environment variables (for stdio transport)";
154
- };
155
- };
156
- readonly required: readonly ["transport", "resource_uri"];
167
+ readonly properties: {};
157
168
  readonly additionalProperties: false;
158
169
  };
159
170
  static outputSchema(): {
@@ -209,12 +220,101 @@ export declare class McpResourceReadTask extends Task<McpResourceReadTaskInput,
209
220
  readonly required: readonly ["contents"];
210
221
  readonly additionalProperties: false;
211
222
  };
212
- execute(input: McpResourceReadTaskInput, context: IExecuteContext): Promise<McpResourceReadTaskOutput>;
223
+ static configSchema(): {
224
+ readonly type: "object";
225
+ readonly properties: {
226
+ readonly resource_uri: {
227
+ readonly type: "string";
228
+ readonly title: "Resource URI";
229
+ readonly description: "The URI of the resource to read";
230
+ readonly format: "string:uri:mcp-resourceuri";
231
+ };
232
+ readonly transport: {
233
+ readonly type: "string";
234
+ readonly enum: readonly ["stdio", "sse", "streamable-http"];
235
+ readonly title: "Transport";
236
+ readonly description: "The transport type to use for connecting to the MCP server";
237
+ };
238
+ readonly server_url: {
239
+ readonly type: "string";
240
+ readonly format: "string:uri";
241
+ readonly title: "Server URL";
242
+ readonly description: "The URL of the MCP server (for sse and streamable-http transports)";
243
+ };
244
+ readonly command: {
245
+ readonly type: "string";
246
+ readonly title: "Command";
247
+ readonly description: "The command to run (for stdio transport)";
248
+ };
249
+ readonly args: {
250
+ readonly type: "array";
251
+ readonly items: {
252
+ readonly type: "string";
253
+ };
254
+ readonly title: "Arguments";
255
+ readonly description: "Command arguments (for stdio transport)";
256
+ };
257
+ readonly env: {
258
+ readonly type: "object";
259
+ readonly additionalProperties: {
260
+ readonly type: "string";
261
+ };
262
+ readonly title: "Environment";
263
+ readonly description: "Environment variables (for stdio transport)";
264
+ };
265
+ readonly id: {
266
+ readonly "x-ui-hidden": true;
267
+ };
268
+ readonly title: {
269
+ readonly type: "string";
270
+ };
271
+ readonly description: {
272
+ readonly type: "string";
273
+ };
274
+ readonly cacheable: {
275
+ readonly type: "boolean";
276
+ };
277
+ readonly inputSchema: {
278
+ readonly type: "object";
279
+ readonly properties: {};
280
+ readonly additionalProperties: true;
281
+ readonly "x-ui-hidden": true;
282
+ };
283
+ readonly outputSchema: {
284
+ readonly type: "object";
285
+ readonly properties: {};
286
+ readonly additionalProperties: true;
287
+ readonly "x-ui-hidden": true;
288
+ };
289
+ readonly extras: {
290
+ readonly type: "object";
291
+ readonly additionalProperties: true;
292
+ readonly "x-ui-hidden": true;
293
+ };
294
+ };
295
+ readonly required: readonly ["transport", "resource_uri"];
296
+ readonly if: {
297
+ readonly properties: {
298
+ readonly transport: {
299
+ readonly const: "stdio";
300
+ };
301
+ };
302
+ readonly required: readonly ["transport"];
303
+ };
304
+ readonly then: {
305
+ readonly required: readonly ["command"];
306
+ };
307
+ readonly else: {
308
+ readonly required: readonly ["server_url"];
309
+ };
310
+ readonly additionalProperties: false;
311
+ };
312
+ execute(_input: McpResourceReadTaskInput, context: IExecuteContext): Promise<McpResourceReadTaskOutput>;
213
313
  }
214
- export declare const mcpResourceRead: (input: McpResourceReadTaskInput, config?: TaskConfig) => Promise<McpResourceReadTaskOutput>;
314
+ export declare const mcpResourceRead: (config: McpResourceReadTaskConfig) => Promise<McpResourceReadTaskOutput>;
215
315
  declare module "@workglow/task-graph" {
216
316
  interface Workflow {
217
- mcpResourceRead: CreateWorkflow<McpResourceReadTaskInput, McpResourceReadTaskOutput, TaskConfig>;
317
+ mcpResourceRead: CreateWorkflow<McpResourceReadTaskInput, McpResourceReadTaskOutput, McpResourceReadTaskConfig>;
218
318
  }
219
319
  }
220
320
  export {};
@@ -1 +1 @@
1
- {"version":3,"file":"McpResourceReadTask.d.ts","sourceRoot":"","sources":["../../../src/task/mcp/McpResourceReadTask.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,EAAE,cAAc,EAAE,eAAe,EAAE,IAAI,EAAE,UAAU,EAAY,MAAM,sBAAsB,CAAC;AACnG,OAAO,EAEL,UAAU,EAIX,MAAM,gBAAgB,CAAC;AAExB,QAAA,MAAM,WAAW;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAYkB,CAAC;AA6BpC,QAAA,MAAM,YAAY;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAYiB,CAAC;AAEpC,MAAM,MAAM,wBAAwB,GAAG,UAAU,CAAC,OAAO,WAAW,CAAC,CAAC;AACtE,MAAM,MAAM,yBAAyB,GAAG,UAAU,CAAC,OAAO,YAAY,CAAC,CAAC;AAExE,qBAAa,mBAAoB,SAAQ,IAAI,CAC3C,wBAAwB,EACxB,yBAAyB,EACzB,UAAU,CACX;IACC,OAAc,IAAI,SAAyB;IAC3C,OAAc,QA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