integrate-sdk 0.7.45 → 0.7.46
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/ai/google.d.ts +6 -7
- package/dist/ai/google.d.ts.map +1 -1
- package/dist/ai/google.js +22 -18
- package/dist/ai/index.js +22 -18
- package/dist/server.js +22 -18
- package/dist/src/ai/google.d.ts +6 -7
- package/dist/src/ai/google.d.ts.map +1 -1
- package/package.json +1 -1
package/dist/ai/google.d.ts
CHANGED
|
@@ -6,8 +6,7 @@
|
|
|
6
6
|
import type { MCPClient } from "../client.js";
|
|
7
7
|
import type { MCPTool } from "../protocol/messages.js";
|
|
8
8
|
import { type AIToolsOptions } from "./utils.js";
|
|
9
|
-
import { Type } from "@google/genai";
|
|
10
|
-
import type { Schema, FunctionDeclaration, FunctionCall } from "@google/genai";
|
|
9
|
+
import type { Schema, FunctionDeclaration, FunctionCall, Type } from "@google/genai";
|
|
11
10
|
export type GoogleTool = FunctionDeclaration;
|
|
12
11
|
export type GoogleFunctionCall = FunctionCall;
|
|
13
12
|
export type { Schema, Type };
|
|
@@ -26,10 +25,10 @@ export interface GoogleToolsOptions extends AIToolsOptions {
|
|
|
26
25
|
*
|
|
27
26
|
* @example
|
|
28
27
|
* ```typescript
|
|
29
|
-
* const googleTool = convertMCPToolToGoogle(mcpTool, client);
|
|
28
|
+
* const googleTool = await convertMCPToolToGoogle(mcpTool, client);
|
|
30
29
|
* ```
|
|
31
30
|
*/
|
|
32
|
-
export declare function convertMCPToolToGoogle(mcpTool: MCPTool, _client: MCPClient<any>, _options?: GoogleToolsOptions): GoogleTool
|
|
31
|
+
export declare function convertMCPToolToGoogle(mcpTool: MCPTool, _client: MCPClient<any>, _options?: GoogleToolsOptions): Promise<GoogleTool>;
|
|
33
32
|
/**
|
|
34
33
|
* Convert all enabled MCP tools to Google GenAI format
|
|
35
34
|
*
|
|
@@ -40,15 +39,15 @@ export declare function convertMCPToolToGoogle(mcpTool: MCPTool, _client: MCPCli
|
|
|
40
39
|
* @example
|
|
41
40
|
* ```typescript
|
|
42
41
|
* // Client-side usage
|
|
43
|
-
* const tools = convertMCPToolsToGoogle(mcpClient);
|
|
42
|
+
* const tools = await convertMCPToolsToGoogle(mcpClient);
|
|
44
43
|
*
|
|
45
44
|
* // Server-side with provider tokens
|
|
46
|
-
* const tools = convertMCPToolsToGoogle(serverClient, {
|
|
45
|
+
* const tools = await convertMCPToolsToGoogle(serverClient, {
|
|
47
46
|
* providerTokens: { github: 'ghp_...', gmail: 'ya29...' }
|
|
48
47
|
* });
|
|
49
48
|
* ```
|
|
50
49
|
*/
|
|
51
|
-
export declare function convertMCPToolsToGoogle(client: MCPClient<any>, options?: GoogleToolsOptions): GoogleTool[]
|
|
50
|
+
export declare function convertMCPToolsToGoogle(client: MCPClient<any>, options?: GoogleToolsOptions): Promise<GoogleTool[]>;
|
|
52
51
|
/**
|
|
53
52
|
* Execute a function call from Google GenAI
|
|
54
53
|
*
|
package/dist/ai/google.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"google.d.ts","sourceRoot":"","sources":["../../../src/ai/google.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AAC9C,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,yBAAyB,CAAC;AACvD,OAAO,EAAkE,KAAK,cAAc,EAAE,MAAM,YAAY,CAAC;AAIjH,OAAO,
|
|
1
|
+
{"version":3,"file":"google.d.ts","sourceRoot":"","sources":["../../../src/ai/google.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AAC9C,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,yBAAyB,CAAC;AACvD,OAAO,EAAkE,KAAK,cAAc,EAAE,MAAM,YAAY,CAAC;AAIjH,OAAO,KAAK,EACV,MAAM,EACN,mBA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AAG,CAAC,EACtB,OAAO,CAAC,EAAE,kBAAkB,GAC3B,OAAO,CAAC,UAAU,EAAE,CAAC,CAevB"}
|
package/dist/ai/google.js
CHANGED
|
@@ -4203,19 +4203,22 @@ async function ensureClientConnected(client) {
|
|
|
4203
4203
|
}
|
|
4204
4204
|
|
|
4205
4205
|
// google.ts
|
|
4206
|
-
|
|
4207
|
-
|
|
4206
|
+
async function getGoogleType() {
|
|
4207
|
+
const { Type } = await import("@google/genai");
|
|
4208
|
+
return Type;
|
|
4209
|
+
}
|
|
4210
|
+
function convertJsonSchemaTypeToGoogleType(type, TypeEnum) {
|
|
4208
4211
|
const typeMap = {
|
|
4209
|
-
string:
|
|
4210
|
-
number:
|
|
4211
|
-
integer:
|
|
4212
|
-
boolean:
|
|
4213
|
-
array:
|
|
4214
|
-
object:
|
|
4212
|
+
string: TypeEnum.STRING,
|
|
4213
|
+
number: TypeEnum.NUMBER,
|
|
4214
|
+
integer: TypeEnum.INTEGER,
|
|
4215
|
+
boolean: TypeEnum.BOOLEAN,
|
|
4216
|
+
array: TypeEnum.ARRAY,
|
|
4217
|
+
object: TypeEnum.OBJECT
|
|
4215
4218
|
};
|
|
4216
|
-
return typeMap[type.toLowerCase()] ||
|
|
4219
|
+
return typeMap[type.toLowerCase()] || TypeEnum.STRING;
|
|
4217
4220
|
}
|
|
4218
|
-
function convertPropertiesToSchema(properties) {
|
|
4221
|
+
function convertPropertiesToSchema(properties, TypeEnum) {
|
|
4219
4222
|
const result = {};
|
|
4220
4223
|
for (const [key, value] of Object.entries(properties)) {
|
|
4221
4224
|
if (!value || typeof value !== "object") {
|
|
@@ -4227,13 +4230,13 @@ function convertPropertiesToSchema(properties) {
|
|
|
4227
4230
|
enum: value.enum
|
|
4228
4231
|
};
|
|
4229
4232
|
if (value.type) {
|
|
4230
|
-
schema.type = convertJsonSchemaTypeToGoogleType(value.type);
|
|
4233
|
+
schema.type = convertJsonSchemaTypeToGoogleType(value.type, TypeEnum);
|
|
4231
4234
|
}
|
|
4232
4235
|
if (value.items) {
|
|
4233
|
-
schema.items = convertPropertiesToSchema({ items: value.items }).items;
|
|
4236
|
+
schema.items = convertPropertiesToSchema({ items: value.items }, TypeEnum).items;
|
|
4234
4237
|
}
|
|
4235
4238
|
if (value.properties) {
|
|
4236
|
-
schema.properties = convertPropertiesToSchema(value.properties);
|
|
4239
|
+
schema.properties = convertPropertiesToSchema(value.properties, TypeEnum);
|
|
4237
4240
|
}
|
|
4238
4241
|
for (const [k, v] of Object.entries(value)) {
|
|
4239
4242
|
if (!["type", "description", "enum", "items", "properties"].includes(k)) {
|
|
@@ -4244,11 +4247,12 @@ function convertPropertiesToSchema(properties) {
|
|
|
4244
4247
|
}
|
|
4245
4248
|
return result;
|
|
4246
4249
|
}
|
|
4247
|
-
function convertMCPToolToGoogle(mcpTool, _client, _options) {
|
|
4250
|
+
async function convertMCPToolToGoogle(mcpTool, _client, _options) {
|
|
4251
|
+
const TypeEnum = await getGoogleType();
|
|
4248
4252
|
const properties = mcpTool.inputSchema?.properties || {};
|
|
4249
|
-
const convertedProperties = convertPropertiesToSchema(properties);
|
|
4253
|
+
const convertedProperties = convertPropertiesToSchema(properties, TypeEnum);
|
|
4250
4254
|
const parameters = {
|
|
4251
|
-
type:
|
|
4255
|
+
type: TypeEnum.OBJECT,
|
|
4252
4256
|
description: mcpTool.description || "",
|
|
4253
4257
|
properties: convertedProperties
|
|
4254
4258
|
};
|
|
@@ -4261,9 +4265,9 @@ function convertMCPToolToGoogle(mcpTool, _client, _options) {
|
|
|
4261
4265
|
parameters
|
|
4262
4266
|
};
|
|
4263
4267
|
}
|
|
4264
|
-
function convertMCPToolsToGoogle(client, options) {
|
|
4268
|
+
async function convertMCPToolsToGoogle(client, options) {
|
|
4265
4269
|
const mcpTools = client.getEnabledTools();
|
|
4266
|
-
return mcpTools.map((mcpTool) => convertMCPToolToGoogle(mcpTool, client, options));
|
|
4270
|
+
return await Promise.all(mcpTools.map((mcpTool) => convertMCPToolToGoogle(mcpTool, client, options)));
|
|
4267
4271
|
}
|
|
4268
4272
|
async function executeGoogleFunctionCall(client, functionCall, options) {
|
|
4269
4273
|
if (!functionCall?.name) {
|
package/dist/ai/index.js
CHANGED
|
@@ -4317,19 +4317,22 @@ async function getCloudflareTools(client, options) {
|
|
|
4317
4317
|
}
|
|
4318
4318
|
|
|
4319
4319
|
// google.ts
|
|
4320
|
-
|
|
4321
|
-
|
|
4320
|
+
async function getGoogleType() {
|
|
4321
|
+
const { Type } = await import("@google/genai");
|
|
4322
|
+
return Type;
|
|
4323
|
+
}
|
|
4324
|
+
function convertJsonSchemaTypeToGoogleType(type, TypeEnum) {
|
|
4322
4325
|
const typeMap = {
|
|
4323
|
-
string:
|
|
4324
|
-
number:
|
|
4325
|
-
integer:
|
|
4326
|
-
boolean:
|
|
4327
|
-
array:
|
|
4328
|
-
object:
|
|
4326
|
+
string: TypeEnum.STRING,
|
|
4327
|
+
number: TypeEnum.NUMBER,
|
|
4328
|
+
integer: TypeEnum.INTEGER,
|
|
4329
|
+
boolean: TypeEnum.BOOLEAN,
|
|
4330
|
+
array: TypeEnum.ARRAY,
|
|
4331
|
+
object: TypeEnum.OBJECT
|
|
4329
4332
|
};
|
|
4330
|
-
return typeMap[type.toLowerCase()] ||
|
|
4333
|
+
return typeMap[type.toLowerCase()] || TypeEnum.STRING;
|
|
4331
4334
|
}
|
|
4332
|
-
function convertPropertiesToSchema(properties) {
|
|
4335
|
+
function convertPropertiesToSchema(properties, TypeEnum) {
|
|
4333
4336
|
const result = {};
|
|
4334
4337
|
for (const [key, value] of Object.entries(properties)) {
|
|
4335
4338
|
if (!value || typeof value !== "object") {
|
|
@@ -4341,13 +4344,13 @@ function convertPropertiesToSchema(properties) {
|
|
|
4341
4344
|
enum: value.enum
|
|
4342
4345
|
};
|
|
4343
4346
|
if (value.type) {
|
|
4344
|
-
schema.type = convertJsonSchemaTypeToGoogleType(value.type);
|
|
4347
|
+
schema.type = convertJsonSchemaTypeToGoogleType(value.type, TypeEnum);
|
|
4345
4348
|
}
|
|
4346
4349
|
if (value.items) {
|
|
4347
|
-
schema.items = convertPropertiesToSchema({ items: value.items }).items;
|
|
4350
|
+
schema.items = convertPropertiesToSchema({ items: value.items }, TypeEnum).items;
|
|
4348
4351
|
}
|
|
4349
4352
|
if (value.properties) {
|
|
4350
|
-
schema.properties = convertPropertiesToSchema(value.properties);
|
|
4353
|
+
schema.properties = convertPropertiesToSchema(value.properties, TypeEnum);
|
|
4351
4354
|
}
|
|
4352
4355
|
for (const [k, v] of Object.entries(value)) {
|
|
4353
4356
|
if (!["type", "description", "enum", "items", "properties"].includes(k)) {
|
|
@@ -4358,11 +4361,12 @@ function convertPropertiesToSchema(properties) {
|
|
|
4358
4361
|
}
|
|
4359
4362
|
return result;
|
|
4360
4363
|
}
|
|
4361
|
-
function convertMCPToolToGoogle(mcpTool, _client, _options) {
|
|
4364
|
+
async function convertMCPToolToGoogle(mcpTool, _client, _options) {
|
|
4365
|
+
const TypeEnum = await getGoogleType();
|
|
4362
4366
|
const properties = mcpTool.inputSchema?.properties || {};
|
|
4363
|
-
const convertedProperties = convertPropertiesToSchema(properties);
|
|
4367
|
+
const convertedProperties = convertPropertiesToSchema(properties, TypeEnum);
|
|
4364
4368
|
const parameters = {
|
|
4365
|
-
type:
|
|
4369
|
+
type: TypeEnum.OBJECT,
|
|
4366
4370
|
description: mcpTool.description || "",
|
|
4367
4371
|
properties: convertedProperties
|
|
4368
4372
|
};
|
|
@@ -4375,9 +4379,9 @@ function convertMCPToolToGoogle(mcpTool, _client, _options) {
|
|
|
4375
4379
|
parameters
|
|
4376
4380
|
};
|
|
4377
4381
|
}
|
|
4378
|
-
function convertMCPToolsToGoogle(client, options) {
|
|
4382
|
+
async function convertMCPToolsToGoogle(client, options) {
|
|
4379
4383
|
const mcpTools = client.getEnabledTools();
|
|
4380
|
-
return mcpTools.map((mcpTool) => convertMCPToolToGoogle(mcpTool, client, options));
|
|
4384
|
+
return await Promise.all(mcpTools.map((mcpTool) => convertMCPToolToGoogle(mcpTool, client, options)));
|
|
4381
4385
|
}
|
|
4382
4386
|
async function executeGoogleFunctionCall(client, functionCall, options) {
|
|
4383
4387
|
if (!functionCall?.name) {
|
package/dist/server.js
CHANGED
|
@@ -6697,19 +6697,22 @@ async function handleAnthropicMessage(client, message, options) {
|
|
|
6697
6697
|
];
|
|
6698
6698
|
}
|
|
6699
6699
|
// src/ai/google.ts
|
|
6700
|
-
|
|
6701
|
-
|
|
6700
|
+
async function getGoogleType() {
|
|
6701
|
+
const { Type } = await import("@google/genai");
|
|
6702
|
+
return Type;
|
|
6703
|
+
}
|
|
6704
|
+
function convertJsonSchemaTypeToGoogleType(type, TypeEnum) {
|
|
6702
6705
|
const typeMap = {
|
|
6703
|
-
string:
|
|
6704
|
-
number:
|
|
6705
|
-
integer:
|
|
6706
|
-
boolean:
|
|
6707
|
-
array:
|
|
6708
|
-
object:
|
|
6706
|
+
string: TypeEnum.STRING,
|
|
6707
|
+
number: TypeEnum.NUMBER,
|
|
6708
|
+
integer: TypeEnum.INTEGER,
|
|
6709
|
+
boolean: TypeEnum.BOOLEAN,
|
|
6710
|
+
array: TypeEnum.ARRAY,
|
|
6711
|
+
object: TypeEnum.OBJECT
|
|
6709
6712
|
};
|
|
6710
|
-
return typeMap[type.toLowerCase()] ||
|
|
6713
|
+
return typeMap[type.toLowerCase()] || TypeEnum.STRING;
|
|
6711
6714
|
}
|
|
6712
|
-
function convertPropertiesToSchema(properties) {
|
|
6715
|
+
function convertPropertiesToSchema(properties, TypeEnum) {
|
|
6713
6716
|
const result = {};
|
|
6714
6717
|
for (const [key, value] of Object.entries(properties)) {
|
|
6715
6718
|
if (!value || typeof value !== "object") {
|
|
@@ -6721,13 +6724,13 @@ function convertPropertiesToSchema(properties) {
|
|
|
6721
6724
|
enum: value.enum
|
|
6722
6725
|
};
|
|
6723
6726
|
if (value.type) {
|
|
6724
|
-
schema.type = convertJsonSchemaTypeToGoogleType(value.type);
|
|
6727
|
+
schema.type = convertJsonSchemaTypeToGoogleType(value.type, TypeEnum);
|
|
6725
6728
|
}
|
|
6726
6729
|
if (value.items) {
|
|
6727
|
-
schema.items = convertPropertiesToSchema({ items: value.items }).items;
|
|
6730
|
+
schema.items = convertPropertiesToSchema({ items: value.items }, TypeEnum).items;
|
|
6728
6731
|
}
|
|
6729
6732
|
if (value.properties) {
|
|
6730
|
-
schema.properties = convertPropertiesToSchema(value.properties);
|
|
6733
|
+
schema.properties = convertPropertiesToSchema(value.properties, TypeEnum);
|
|
6731
6734
|
}
|
|
6732
6735
|
for (const [k, v] of Object.entries(value)) {
|
|
6733
6736
|
if (!["type", "description", "enum", "items", "properties"].includes(k)) {
|
|
@@ -6738,11 +6741,12 @@ function convertPropertiesToSchema(properties) {
|
|
|
6738
6741
|
}
|
|
6739
6742
|
return result;
|
|
6740
6743
|
}
|
|
6741
|
-
function convertMCPToolToGoogle(mcpTool, _client, _options) {
|
|
6744
|
+
async function convertMCPToolToGoogle(mcpTool, _client, _options) {
|
|
6745
|
+
const TypeEnum = await getGoogleType();
|
|
6742
6746
|
const properties = mcpTool.inputSchema?.properties || {};
|
|
6743
|
-
const convertedProperties = convertPropertiesToSchema(properties);
|
|
6747
|
+
const convertedProperties = convertPropertiesToSchema(properties, TypeEnum);
|
|
6744
6748
|
const parameters = {
|
|
6745
|
-
type:
|
|
6749
|
+
type: TypeEnum.OBJECT,
|
|
6746
6750
|
description: mcpTool.description || "",
|
|
6747
6751
|
properties: convertedProperties
|
|
6748
6752
|
};
|
|
@@ -6755,9 +6759,9 @@ function convertMCPToolToGoogle(mcpTool, _client, _options) {
|
|
|
6755
6759
|
parameters
|
|
6756
6760
|
};
|
|
6757
6761
|
}
|
|
6758
|
-
function convertMCPToolsToGoogle(client, options) {
|
|
6762
|
+
async function convertMCPToolsToGoogle(client, options) {
|
|
6759
6763
|
const mcpTools = client.getEnabledTools();
|
|
6760
|
-
return mcpTools.map((mcpTool) => convertMCPToolToGoogle(mcpTool, client, options));
|
|
6764
|
+
return await Promise.all(mcpTools.map((mcpTool) => convertMCPToolToGoogle(mcpTool, client, options)));
|
|
6761
6765
|
}
|
|
6762
6766
|
async function executeGoogleFunctionCall(client, functionCall, options) {
|
|
6763
6767
|
if (!functionCall?.name) {
|
package/dist/src/ai/google.d.ts
CHANGED
|
@@ -6,8 +6,7 @@
|
|
|
6
6
|
import type { MCPClient } from "../client.js";
|
|
7
7
|
import type { MCPTool } from "../protocol/messages.js";
|
|
8
8
|
import { type AIToolsOptions } from "./utils.js";
|
|
9
|
-
import { Type } from "@google/genai";
|
|
10
|
-
import type { Schema, FunctionDeclaration, FunctionCall } from "@google/genai";
|
|
9
|
+
import type { Schema, FunctionDeclaration, FunctionCall, Type } from "@google/genai";
|
|
11
10
|
export type GoogleTool = FunctionDeclaration;
|
|
12
11
|
export type GoogleFunctionCall = FunctionCall;
|
|
13
12
|
export type { Schema, Type };
|
|
@@ -26,10 +25,10 @@ export interface GoogleToolsOptions extends AIToolsOptions {
|
|
|
26
25
|
*
|
|
27
26
|
* @example
|
|
28
27
|
* ```typescript
|
|
29
|
-
* const googleTool = convertMCPToolToGoogle(mcpTool, client);
|
|
28
|
+
* const googleTool = await convertMCPToolToGoogle(mcpTool, client);
|
|
30
29
|
* ```
|
|
31
30
|
*/
|
|
32
|
-
export declare function convertMCPToolToGoogle(mcpTool: MCPTool, _client: MCPClient<any>, _options?: GoogleToolsOptions): GoogleTool
|
|
31
|
+
export declare function convertMCPToolToGoogle(mcpTool: MCPTool, _client: MCPClient<any>, _options?: GoogleToolsOptions): Promise<GoogleTool>;
|
|
33
32
|
/**
|
|
34
33
|
* Convert all enabled MCP tools to Google GenAI format
|
|
35
34
|
*
|
|
@@ -40,15 +39,15 @@ export declare function convertMCPToolToGoogle(mcpTool: MCPTool, _client: MCPCli
|
|
|
40
39
|
* @example
|
|
41
40
|
* ```typescript
|
|
42
41
|
* // Client-side usage
|
|
43
|
-
* const tools = convertMCPToolsToGoogle(mcpClient);
|
|
42
|
+
* const tools = await convertMCPToolsToGoogle(mcpClient);
|
|
44
43
|
*
|
|
45
44
|
* // Server-side with provider tokens
|
|
46
|
-
* const tools = convertMCPToolsToGoogle(serverClient, {
|
|
45
|
+
* const tools = await convertMCPToolsToGoogle(serverClient, {
|
|
47
46
|
* providerTokens: { github: 'ghp_...', gmail: 'ya29...' }
|
|
48
47
|
* });
|
|
49
48
|
* ```
|
|
50
49
|
*/
|
|
51
|
-
export declare function convertMCPToolsToGoogle(client: MCPClient<any>, options?: GoogleToolsOptions): GoogleTool[]
|
|
50
|
+
export declare function convertMCPToolsToGoogle(client: MCPClient<any>, options?: GoogleToolsOptions): Promise<GoogleTool[]>;
|
|
52
51
|
/**
|
|
53
52
|
* Execute a function call from Google GenAI
|
|
54
53
|
*
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"google.d.ts","sourceRoot":"","sources":["../../../src/ai/google.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AAC9C,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,yBAAyB,CAAC;AACvD,OAAO,EAAkE,KAAK,cAAc,EAAE,MAAM,YAAY,CAAC;AAIjH,OAAO,
|
|
1
|
+
{"version":3,"file":"google.d.ts","sourceRoot":"","sources":["../../../src/ai/google.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AAC9C,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,yBAAyB,CAAC;AACvD,OAAO,EAAkE,KAAK,cAAc,EAAE,MAAM,YAAY,CAAC;AAIjH,OAAO,KAAK,EACV,MAAM,EACN,mBAAmB,EACnB,YAAY,EACZ,IAAI,EACL,MAAM,eAAe,CAAC;AAGvB,MAAM,MAAM,UAAU,GAAG,mBAAmB,CAAC;AAC7C,MAAM,MAAM,kBAAkB,GAAG,YAAY,CAAC;AAC9C,YAAY,EAAE,MAAM,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