integrate-sdk 0.9.17-dev.0 → 0.9.18-dev.0
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/adapters/index.js +6 -16
- package/dist/adapters/solid-start.js +6 -16
- package/dist/adapters/svelte-kit.js +6 -16
- package/dist/ai/anthropic.d.ts.map +1 -1
- package/dist/ai/anthropic.js +79 -26
- package/dist/ai/google.d.ts.map +1 -1
- package/dist/ai/google.js +84 -26
- package/dist/ai/index.js +116 -31
- package/dist/ai/openai.d.ts.map +1 -1
- package/dist/ai/openai.js +77 -26
- package/dist/ai/vercel-ai.d.ts.map +1 -1
- package/dist/ai/vercel-ai.js +74 -25
- package/dist/code-mode/index.d.ts +1 -1
- package/dist/code-mode/index.d.ts.map +1 -1
- package/dist/code-mode/index.js +67 -24
- package/dist/code-mode/tool-builder.d.ts +32 -4
- package/dist/code-mode/tool-builder.d.ts.map +1 -1
- package/dist/code-mode/tool-builder.js +67 -24
- package/dist/code-mode/type-generator.d.ts +4 -0
- package/dist/code-mode/type-generator.d.ts.map +1 -1
- package/dist/code-mode/type-generator.js +33 -3
- package/dist/server.js +118 -32
- package/dist/src/ai/anthropic.d.ts.map +1 -1
- package/dist/src/ai/google.d.ts.map +1 -1
- package/dist/src/ai/openai.d.ts.map +1 -1
- package/dist/src/ai/vercel-ai.d.ts.map +1 -1
- package/dist/src/code-mode/index.d.ts +1 -1
- package/dist/src/code-mode/index.d.ts.map +1 -1
- package/dist/src/code-mode/tool-builder.d.ts +32 -4
- package/dist/src/code-mode/tool-builder.d.ts.map +1 -1
- package/dist/src/code-mode/type-generator.d.ts +4 -0
- package/dist/src/code-mode/type-generator.d.ts.map +1 -1
- package/dist/src/server.d.ts.map +1 -1
- package/package.json +1 -1
|
@@ -182,6 +182,8 @@ function generateCodeModeTypes(tools) {
|
|
|
182
182
|
const methodMap = {};
|
|
183
183
|
const integrationCounts = {};
|
|
184
184
|
const sections = [];
|
|
185
|
+
const compactLines = [];
|
|
186
|
+
const perIntegration = {};
|
|
185
187
|
const integrationIds = Object.keys(byIntegration).sort();
|
|
186
188
|
sections.push("/**");
|
|
187
189
|
sections.push(" * Integrate SDK — available APIs inside `execute_code`.");
|
|
@@ -194,18 +196,35 @@ function generateCodeModeTypes(tools) {
|
|
|
194
196
|
const integrationTools = byIntegration[integrationId].slice().sort((a, b) => a.name.localeCompare(b.name));
|
|
195
197
|
integrationCounts[integrationId] = integrationTools.length;
|
|
196
198
|
const interfaceName = pascalCase(integrationId) + "Client";
|
|
199
|
+
const fullSections = [];
|
|
200
|
+
fullSections.push(`export interface ${interfaceName} {`);
|
|
197
201
|
sections.push(`export interface ${interfaceName} {`);
|
|
202
|
+
const compactMethods = [];
|
|
198
203
|
for (const tool of integrationTools) {
|
|
199
204
|
const methodName = toolNameToMethod(tool.name);
|
|
200
205
|
methodMap[`${integrationId}.${methodName}`] = tool.name;
|
|
201
|
-
|
|
206
|
+
const fullDesc = formatDescription(tool.description, " ");
|
|
207
|
+
fullSections.push(fullDesc);
|
|
208
|
+
sections.push(fullDesc);
|
|
202
209
|
const argType = argsType(tool.inputSchema);
|
|
203
210
|
const argIsOptional = !methodHasRequiredArgs(tool.inputSchema);
|
|
204
211
|
const paramName = argIsOptional ? "args?" : "args";
|
|
205
|
-
|
|
212
|
+
const fullLine = ` ${safeIdent(methodName)}(${paramName}: ${argType}): Promise<ToolResult>;`;
|
|
213
|
+
fullSections.push(fullLine);
|
|
214
|
+
sections.push(fullLine);
|
|
215
|
+
const compactArgs = compactArgsSignature(tool.inputSchema);
|
|
216
|
+
const compactParam = argIsOptional ? `args?: ${compactArgs}` : `args: ${compactArgs}`;
|
|
217
|
+
compactMethods.push(` ${safeIdent(methodName)}(${compactParam}): Promise<ToolResult>`);
|
|
206
218
|
}
|
|
207
219
|
sections.push("}");
|
|
208
220
|
sections.push("");
|
|
221
|
+
fullSections.push("}");
|
|
222
|
+
perIntegration[integrationId] = fullSections.join(`
|
|
223
|
+
`);
|
|
224
|
+
compactLines.push(`client.${integrationId}:`);
|
|
225
|
+
for (const m of compactMethods) {
|
|
226
|
+
compactLines.push(m);
|
|
227
|
+
}
|
|
209
228
|
}
|
|
210
229
|
sections.push("export interface ToolResult {");
|
|
211
230
|
sections.push(" content: Array<{ type: 'text' | 'image' | 'resource'; text?: string; data?: string; mimeType?: string; [key: string]: unknown }>;");
|
|
@@ -223,11 +242,22 @@ function generateCodeModeTypes(tools) {
|
|
|
223
242
|
sections.push("export declare const client: Client;");
|
|
224
243
|
return {
|
|
225
244
|
source: sections.filter((line, idx, arr) => !(line === "" && arr[idx - 1] === "")).join(`
|
|
245
|
+
`),
|
|
246
|
+
compact: compactLines.join(`
|
|
226
247
|
`),
|
|
227
248
|
methodMap,
|
|
228
|
-
integrationCounts
|
|
249
|
+
integrationCounts,
|
|
250
|
+
perIntegration
|
|
229
251
|
};
|
|
230
252
|
}
|
|
253
|
+
function compactArgsSignature(schema) {
|
|
254
|
+
if (!schema || !schema.properties || Object.keys(schema.properties).length === 0) {
|
|
255
|
+
return "{}";
|
|
256
|
+
}
|
|
257
|
+
const required = new Set(Array.isArray(schema.required) ? schema.required : []);
|
|
258
|
+
const params = Object.keys(schema.properties).map((key) => `${safeIdent(key)}${required.has(key) ? "" : "?"}`);
|
|
259
|
+
return `{ ${params.join(", ")} }`;
|
|
260
|
+
}
|
|
231
261
|
function pascalCase(id) {
|
|
232
262
|
return id.split(/[^A-Za-z0-9]/).filter(Boolean).map((p) => p.charAt(0).toUpperCase() + p.slice(1)).join("") || "Unknown";
|
|
233
263
|
}
|
package/dist/server.js
CHANGED
|
@@ -1337,6 +1337,8 @@ function generateCodeModeTypes(tools) {
|
|
|
1337
1337
|
const methodMap = {};
|
|
1338
1338
|
const integrationCounts = {};
|
|
1339
1339
|
const sections = [];
|
|
1340
|
+
const compactLines = [];
|
|
1341
|
+
const perIntegration = {};
|
|
1340
1342
|
const integrationIds = Object.keys(byIntegration).sort();
|
|
1341
1343
|
sections.push("/**");
|
|
1342
1344
|
sections.push(" * Integrate SDK — available APIs inside `execute_code`.");
|
|
@@ -1349,18 +1351,35 @@ function generateCodeModeTypes(tools) {
|
|
|
1349
1351
|
const integrationTools = byIntegration[integrationId].slice().sort((a, b) => a.name.localeCompare(b.name));
|
|
1350
1352
|
integrationCounts[integrationId] = integrationTools.length;
|
|
1351
1353
|
const interfaceName = pascalCase(integrationId) + "Client";
|
|
1354
|
+
const fullSections = [];
|
|
1355
|
+
fullSections.push(`export interface ${interfaceName} {`);
|
|
1352
1356
|
sections.push(`export interface ${interfaceName} {`);
|
|
1357
|
+
const compactMethods = [];
|
|
1353
1358
|
for (const tool of integrationTools) {
|
|
1354
1359
|
const methodName = toolNameToMethod(tool.name);
|
|
1355
1360
|
methodMap[`${integrationId}.${methodName}`] = tool.name;
|
|
1356
|
-
|
|
1361
|
+
const fullDesc = formatDescription(tool.description, " ");
|
|
1362
|
+
fullSections.push(fullDesc);
|
|
1363
|
+
sections.push(fullDesc);
|
|
1357
1364
|
const argType = argsType(tool.inputSchema);
|
|
1358
1365
|
const argIsOptional = !methodHasRequiredArgs(tool.inputSchema);
|
|
1359
1366
|
const paramName = argIsOptional ? "args?" : "args";
|
|
1360
|
-
|
|
1367
|
+
const fullLine = ` ${safeIdent(methodName)}(${paramName}: ${argType}): Promise<ToolResult>;`;
|
|
1368
|
+
fullSections.push(fullLine);
|
|
1369
|
+
sections.push(fullLine);
|
|
1370
|
+
const compactArgs = compactArgsSignature(tool.inputSchema);
|
|
1371
|
+
const compactParam = argIsOptional ? `args?: ${compactArgs}` : `args: ${compactArgs}`;
|
|
1372
|
+
compactMethods.push(` ${safeIdent(methodName)}(${compactParam}): Promise<ToolResult>`);
|
|
1361
1373
|
}
|
|
1362
1374
|
sections.push("}");
|
|
1363
1375
|
sections.push("");
|
|
1376
|
+
fullSections.push("}");
|
|
1377
|
+
perIntegration[integrationId] = fullSections.join(`
|
|
1378
|
+
`);
|
|
1379
|
+
compactLines.push(`client.${integrationId}:`);
|
|
1380
|
+
for (const m of compactMethods) {
|
|
1381
|
+
compactLines.push(m);
|
|
1382
|
+
}
|
|
1364
1383
|
}
|
|
1365
1384
|
sections.push("export interface ToolResult {");
|
|
1366
1385
|
sections.push(" content: Array<{ type: 'text' | 'image' | 'resource'; text?: string; data?: string; mimeType?: string; [key: string]: unknown }>;");
|
|
@@ -1378,11 +1397,22 @@ function generateCodeModeTypes(tools) {
|
|
|
1378
1397
|
sections.push("export declare const client: Client;");
|
|
1379
1398
|
return {
|
|
1380
1399
|
source: sections.filter((line, idx, arr) => !(line === "" && arr[idx - 1] === "")).join(`
|
|
1400
|
+
`),
|
|
1401
|
+
compact: compactLines.join(`
|
|
1381
1402
|
`),
|
|
1382
1403
|
methodMap,
|
|
1383
|
-
integrationCounts
|
|
1404
|
+
integrationCounts,
|
|
1405
|
+
perIntegration
|
|
1384
1406
|
};
|
|
1385
1407
|
}
|
|
1408
|
+
function compactArgsSignature(schema) {
|
|
1409
|
+
if (!schema || !schema.properties || Object.keys(schema.properties).length === 0) {
|
|
1410
|
+
return "{}";
|
|
1411
|
+
}
|
|
1412
|
+
const required = new Set(Array.isArray(schema.required) ? schema.required : []);
|
|
1413
|
+
const params = Object.keys(schema.properties).map((key) => `${safeIdent(key)}${required.has(key) ? "" : "?"}`);
|
|
1414
|
+
return `{ ${params.join(", ")} }`;
|
|
1415
|
+
}
|
|
1386
1416
|
function pascalCase(id) {
|
|
1387
1417
|
return id.split(/[^A-Za-z0-9]/).filter(Boolean).map((p) => p.charAt(0).toUpperCase() + p.slice(1)).join("") || "Unknown";
|
|
1388
1418
|
}
|
|
@@ -1710,6 +1740,7 @@ __export(exports_tool_builder, {
|
|
|
1710
1740
|
canUseCodeMode: () => canUseCodeMode,
|
|
1711
1741
|
buildCodeModeTool: () => buildCodeModeTool,
|
|
1712
1742
|
__resetCodeModeFallbackWarnings: () => __resetCodeModeFallbackWarnings,
|
|
1743
|
+
TYPES_TOOL_NAME: () => TYPES_TOOL_NAME,
|
|
1713
1744
|
CODE_MODE_TOOL_NAME: () => CODE_MODE_TOOL_NAME
|
|
1714
1745
|
});
|
|
1715
1746
|
function resolveCodeModeClientConfig(client) {
|
|
@@ -1756,10 +1787,7 @@ function buildCodeModeTool(client, options) {
|
|
|
1756
1787
|
const serverCodeModeConfig = resolveCodeModeClientConfig(client);
|
|
1757
1788
|
const sandboxOverrides = options.sandbox ?? {};
|
|
1758
1789
|
const description = `${DEFAULT_INSTRUCTIONS}
|
|
1759
|
-
|
|
1760
|
-
\`\`\`typescript
|
|
1761
|
-
${generated.source}
|
|
1762
|
-
\`\`\``;
|
|
1790
|
+
${generated.compact}`;
|
|
1763
1791
|
const execute = async ({ code }) => {
|
|
1764
1792
|
const publicUrl = resolveCodeModePublicUrl({
|
|
1765
1793
|
publicUrl: sandboxOverrides.publicUrl ?? serverCodeModeConfig.publicUrl
|
|
@@ -1789,7 +1817,8 @@ ${generated.source}
|
|
|
1789
1817
|
networkPolicy: sandboxOverrides.networkPolicy ?? serverCodeModeConfig.networkPolicy
|
|
1790
1818
|
});
|
|
1791
1819
|
};
|
|
1792
|
-
|
|
1820
|
+
const availableIntegrations = Object.keys(generated.perIntegration);
|
|
1821
|
+
const codeTool = {
|
|
1793
1822
|
name: CODE_MODE_TOOL_NAME,
|
|
1794
1823
|
description,
|
|
1795
1824
|
parameters: {
|
|
@@ -1805,30 +1834,43 @@ ${generated.source}
|
|
|
1805
1834
|
},
|
|
1806
1835
|
execute
|
|
1807
1836
|
};
|
|
1837
|
+
const typesTool = {
|
|
1838
|
+
name: TYPES_TOOL_NAME,
|
|
1839
|
+
description: "Get full TypeScript type definitions (method signatures, parameter types, JSDoc) for a specific integration. " + `Available integrations: ${availableIntegrations.join(", ")}.`,
|
|
1840
|
+
parameters: {
|
|
1841
|
+
type: "object",
|
|
1842
|
+
properties: {
|
|
1843
|
+
integration: {
|
|
1844
|
+
type: "string",
|
|
1845
|
+
description: `Integration name to get types for (${availableIntegrations.join(", ")}).`
|
|
1846
|
+
}
|
|
1847
|
+
},
|
|
1848
|
+
required: ["integration"],
|
|
1849
|
+
additionalProperties: false
|
|
1850
|
+
},
|
|
1851
|
+
execute: ({ integration }) => {
|
|
1852
|
+
const types2 = generated.perIntegration[integration];
|
|
1853
|
+
if (!types2) {
|
|
1854
|
+
return { error: `Unknown integration "${integration}".`, available: availableIntegrations };
|
|
1855
|
+
}
|
|
1856
|
+
return { types: types2 };
|
|
1857
|
+
}
|
|
1858
|
+
};
|
|
1859
|
+
return { codeTool, typesTool };
|
|
1808
1860
|
}
|
|
1809
|
-
var CODE_MODE_TOOL_NAME = "execute_code", DEFAULT_INSTRUCTIONS, warnedCodeModeReasons;
|
|
1861
|
+
var CODE_MODE_TOOL_NAME = "execute_code", TYPES_TOOL_NAME = "get_integration_types", DEFAULT_INSTRUCTIONS, warnedCodeModeReasons;
|
|
1810
1862
|
var init_tool_builder = __esm(() => {
|
|
1811
1863
|
init_type_generator();
|
|
1812
1864
|
init_executor();
|
|
1813
1865
|
DEFAULT_INSTRUCTIONS = [
|
|
1814
|
-
"
|
|
1815
|
-
"
|
|
1816
|
-
"
|
|
1817
|
-
"
|
|
1818
|
-
"that is the whole point of this tool.",
|
|
1866
|
+
"Write an async JS/TS snippet that runs in an isolated sandbox using `client.<integration>.<method>(args)`.",
|
|
1867
|
+
"Chain multiple operations in one snippet. Use `await`, `return <value>` for JSON output, `console.log()` for debug.",
|
|
1868
|
+
"Each method returns `ToolResult { content: [{ type, text? }], isError? }` — parse `result.content[0].text` as JSON.",
|
|
1869
|
+
"Only `client`, `callTool`, `fetch`, `console`, `JSON` are available (no npm imports).",
|
|
1819
1870
|
"",
|
|
1820
|
-
"
|
|
1821
|
-
"- The snippet is the body of an `async` function. Use `await` freely.",
|
|
1822
|
-
"- Use `return <value>` at the end to hand a structured result back to the caller;",
|
|
1823
|
-
" the caller receives it as JSON.",
|
|
1824
|
-
"- Use `console.log(...)` for intermediate observations you want to read later.",
|
|
1825
|
-
"- Throw / let errors propagate; the runtime will surface them with a non-zero exit.",
|
|
1826
|
-
"- Each method call returns an object of shape `ToolResult` (see types below).",
|
|
1827
|
-
" The payload usually lives in `result.content[0].text` as JSON — parse it if needed.",
|
|
1828
|
-
"- You cannot import npm packages. Only the pre-imported `client` and standard",
|
|
1829
|
-
" globals (`fetch`, `console`, `JSON`, ...) are available.",
|
|
1871
|
+
"Call `get_integration_types` with an integration name to get full parameter types before writing code.",
|
|
1830
1872
|
"",
|
|
1831
|
-
"
|
|
1873
|
+
"Available methods:"
|
|
1832
1874
|
].join(`
|
|
1833
1875
|
`);
|
|
1834
1876
|
warnedCodeModeReasons = new Set;
|
|
@@ -10036,7 +10078,7 @@ async function getVercelAITools(client, options) {
|
|
|
10036
10078
|
}
|
|
10037
10079
|
}
|
|
10038
10080
|
if (effectiveMode === "code") {
|
|
10039
|
-
const codeTool = buildCodeModeTool(client, {
|
|
10081
|
+
const { codeTool, typesTool } = buildCodeModeTool(client, {
|
|
10040
10082
|
tools: mcpTools,
|
|
10041
10083
|
providerTokens,
|
|
10042
10084
|
context: options?.context,
|
|
@@ -10049,6 +10091,13 @@ async function getVercelAITools(client, options) {
|
|
|
10049
10091
|
}),
|
|
10050
10092
|
execute: async (args) => codeTool.execute(args)
|
|
10051
10093
|
};
|
|
10094
|
+
vercelTools[TYPES_TOOL_NAME] = {
|
|
10095
|
+
description: typesTool.description,
|
|
10096
|
+
inputSchema: exports_external.object({
|
|
10097
|
+
integration: exports_external.string().describe(typesTool.parameters.properties.integration.description)
|
|
10098
|
+
}),
|
|
10099
|
+
execute: async (args) => typesTool.execute(args)
|
|
10100
|
+
};
|
|
10052
10101
|
} else {
|
|
10053
10102
|
for (const mcpTool of mcpTools) {
|
|
10054
10103
|
vercelTools[mcpTool.name] = convertMCPToolToVercelAI(mcpTool, client, finalOptions);
|
|
@@ -11334,7 +11383,7 @@ async function getOpenAITools(client, options) {
|
|
|
11334
11383
|
}
|
|
11335
11384
|
}
|
|
11336
11385
|
const openaiTools = effectiveMode === "code" ? (() => {
|
|
11337
|
-
const codeTool = buildCodeModeTool(client, {
|
|
11386
|
+
const { codeTool, typesTool } = buildCodeModeTool(client, {
|
|
11338
11387
|
tools: mcpTools,
|
|
11339
11388
|
providerTokens,
|
|
11340
11389
|
context: options?.context,
|
|
@@ -11346,6 +11395,12 @@ async function getOpenAITools(client, options) {
|
|
|
11346
11395
|
description: codeTool.description,
|
|
11347
11396
|
parameters: codeTool.parameters,
|
|
11348
11397
|
strict: options?.strict ?? null
|
|
11398
|
+
}, {
|
|
11399
|
+
type: "function",
|
|
11400
|
+
name: TYPES_TOOL_NAME,
|
|
11401
|
+
description: typesTool.description,
|
|
11402
|
+
parameters: typesTool.parameters,
|
|
11403
|
+
strict: options?.strict ?? null
|
|
11349
11404
|
}];
|
|
11350
11405
|
})() : mcpTools.map((mcpTool) => convertMCPToolToOpenAI(mcpTool, client, finalOptions));
|
|
11351
11406
|
const triggerConfig = client.__triggerConfig;
|
|
@@ -11396,8 +11451,11 @@ async function handleOpenAIToolCalls(client, toolCalls, options) {
|
|
|
11396
11451
|
const args = JSON.parse(toolCall.arguments);
|
|
11397
11452
|
let result;
|
|
11398
11453
|
if (toolCall.name === CODE_MODE_TOOL_NAME) {
|
|
11399
|
-
const codeTool = await getCodeModeTool();
|
|
11454
|
+
const { codeTool } = await getCodeModeTool();
|
|
11400
11455
|
result = await codeTool.execute(args);
|
|
11456
|
+
} else if (toolCall.name === TYPES_TOOL_NAME) {
|
|
11457
|
+
const { typesTool } = await getCodeModeTool();
|
|
11458
|
+
result = typesTool.execute(args);
|
|
11401
11459
|
} else if (triggerTools && triggerTools[toolCall.name]) {
|
|
11402
11460
|
result = await triggerTools[toolCall.name].execute(args);
|
|
11403
11461
|
} else {
|
|
@@ -11471,8 +11529,11 @@ async function handleAnthropicToolCalls(client, messageContent, options) {
|
|
|
11471
11529
|
try {
|
|
11472
11530
|
let result;
|
|
11473
11531
|
if (toolUse.name === CODE_MODE_TOOL_NAME) {
|
|
11474
|
-
const codeTool = await getCodeModeTool();
|
|
11532
|
+
const { codeTool } = await getCodeModeTool();
|
|
11475
11533
|
result = await codeTool.execute(toolUse.input);
|
|
11534
|
+
} else if (toolUse.name === TYPES_TOOL_NAME) {
|
|
11535
|
+
const { typesTool } = await getCodeModeTool();
|
|
11536
|
+
result = typesTool.execute(toolUse.input);
|
|
11476
11537
|
} else if (triggerTools && triggerTools[toolUse.name]) {
|
|
11477
11538
|
result = await triggerTools[toolUse.name].execute(toolUse.input);
|
|
11478
11539
|
} else {
|
|
@@ -11519,7 +11580,7 @@ async function getAnthropicTools(client, options) {
|
|
|
11519
11580
|
}
|
|
11520
11581
|
}
|
|
11521
11582
|
const anthropicTools = effectiveMode === "code" ? (() => {
|
|
11522
|
-
const codeTool = buildCodeModeTool(client, {
|
|
11583
|
+
const { codeTool, typesTool } = buildCodeModeTool(client, {
|
|
11523
11584
|
tools: mcpTools,
|
|
11524
11585
|
providerTokens,
|
|
11525
11586
|
context: options?.context,
|
|
@@ -11533,6 +11594,14 @@ async function getAnthropicTools(client, options) {
|
|
|
11533
11594
|
properties: codeTool.parameters.properties,
|
|
11534
11595
|
required: [...codeTool.parameters.required]
|
|
11535
11596
|
}
|
|
11597
|
+
}, {
|
|
11598
|
+
name: TYPES_TOOL_NAME,
|
|
11599
|
+
description: typesTool.description,
|
|
11600
|
+
input_schema: {
|
|
11601
|
+
type: "object",
|
|
11602
|
+
properties: typesTool.parameters.properties,
|
|
11603
|
+
required: [...typesTool.parameters.required]
|
|
11604
|
+
}
|
|
11536
11605
|
}];
|
|
11537
11606
|
})() : mcpTools.map((mcpTool) => convertMCPToolToAnthropic(mcpTool, client, finalOptions));
|
|
11538
11607
|
const triggerConfig = client.__triggerConfig;
|
|
@@ -11679,8 +11748,11 @@ async function executeGoogleFunctionCalls(client, functionCalls, options) {
|
|
|
11679
11748
|
const args = call.args || {};
|
|
11680
11749
|
let result;
|
|
11681
11750
|
if (call.name === CODE_MODE_TOOL_NAME) {
|
|
11682
|
-
const codeTool = await getCodeModeTool();
|
|
11751
|
+
const { codeTool } = await getCodeModeTool();
|
|
11683
11752
|
result = await codeTool.execute(args);
|
|
11753
|
+
} else if (call.name === TYPES_TOOL_NAME) {
|
|
11754
|
+
const { typesTool } = await getCodeModeTool();
|
|
11755
|
+
result = typesTool.execute(args);
|
|
11684
11756
|
} else if (triggerTools && triggerTools[call.name]) {
|
|
11685
11757
|
result = await triggerTools[call.name].execute(args);
|
|
11686
11758
|
} else {
|
|
@@ -11715,7 +11787,7 @@ async function getGoogleTools(client, options) {
|
|
|
11715
11787
|
let googleTools;
|
|
11716
11788
|
if (effectiveMode === "code") {
|
|
11717
11789
|
const TypeEnum = await getGoogleType();
|
|
11718
|
-
const codeTool = buildCodeModeTool(client, {
|
|
11790
|
+
const { codeTool, typesTool } = buildCodeModeTool(client, {
|
|
11719
11791
|
tools: mcpTools,
|
|
11720
11792
|
providerTokens,
|
|
11721
11793
|
context: options?.context,
|
|
@@ -11734,6 +11806,19 @@ async function getGoogleTools(client, options) {
|
|
|
11734
11806
|
},
|
|
11735
11807
|
required: ["code"]
|
|
11736
11808
|
}
|
|
11809
|
+
}, {
|
|
11810
|
+
name: TYPES_TOOL_NAME,
|
|
11811
|
+
description: typesTool.description,
|
|
11812
|
+
parameters: {
|
|
11813
|
+
type: TypeEnum.OBJECT,
|
|
11814
|
+
properties: {
|
|
11815
|
+
integration: {
|
|
11816
|
+
type: TypeEnum.STRING,
|
|
11817
|
+
description: typesTool.parameters.properties.integration.description
|
|
11818
|
+
}
|
|
11819
|
+
},
|
|
11820
|
+
required: ["integration"]
|
|
11821
|
+
}
|
|
11737
11822
|
}];
|
|
11738
11823
|
} else {
|
|
11739
11824
|
googleTools = await Promise.all(mcpTools.map((mcpTool) => convertMCPToolToGoogle(mcpTool, client, finalOptions)));
|
|
@@ -12104,6 +12189,7 @@ function createMCPServer(config) {
|
|
|
12104
12189
|
const result = await executeSandboxCode2({
|
|
12105
12190
|
code: body.code,
|
|
12106
12191
|
mcpUrl: publicUrl.replace(/\/$/, "") + "/api/integrate/mcp",
|
|
12192
|
+
apiKey: config.apiKey,
|
|
12107
12193
|
providerTokens,
|
|
12108
12194
|
context: contextOverride,
|
|
12109
12195
|
integrationsHeader: integrationIds.join(","),
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"anthropic.d.ts","sourceRoot":"","sources":["../../../src/ai/anthropic.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AAE9C,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,oBAAoB,CAAC;AACrD,OAAO,EAAkE,KAAK,cAAc,EAAE,MAAM,YAAY,CAAC;
|
|
1
|
+
{"version":3,"file":"anthropic.d.ts","sourceRoot":"","sources":["../../../src/ai/anthropic.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AAE9C,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,oBAAoB,CAAC;AACrD,OAAO,EAAkE,KAAK,cAAc,EAAE,MAAM,YAAY,CAAC;AAUjH,OAAO,KAAK,SAAS,MAAM,mBAAmB,CAAC;AAE/C;;;GAGG;AACH,MAAM,WAAW,aAAa;IAC5B,IAAI,EAAE,MAAM,CAAC;IACb,WAAW,EAAE,MAAM,CAAC;IACpB,YAAY,EAAE;QACZ,IAAI,EAAE,QAAQ,CAAC;QACf,UAAU,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;QACrC,QAAQ,CAAC,EAAE,MAAM,EAAE,CAAC;QACpB,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,CAAC;KACxB,CAAC;CACH;AAED;;GAEG;AACH,MAAM,WAAW,qBAAsB,SAAQ,cAAc;IAC3D,kDAAkD;IAClD,OAAO,CAAC,EAAE,UAAU,CAAC;IACrB;;;;;;;;;OASG;IACH,IAAI,CAAC,EAAE,MA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C5I"}
|
|
@@ -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;AAE9C,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,oBAAoB,CAAC;AACrD,OAAO,EAAkE,KAAK,cAAc,EAAE,MAAM,YAAY,CAAC;
|
|
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;AAE9C,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,oBAAoB,CAAC;AACrD,OAAO,EAAkE,KAAK,cAAc,EAAE,MAAM,YAAY,CAAC;AAajH,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,EAAE,IAAI,EAAE,CAAC;AAuB7B;;GAEG;AACH,MAAM,WAAW,kBAAmB,SAAQ,cAAc;IACxD,kDAAkD;IAClD,OAAO,CAAC,EAAE,UAAU,CAAC;IACrB;;;;;;;;;OASG;IACH,IAAI,CAAC,EAAE,MAAM,GAAG,OAAO,CAAC;CACzB;AAsGD;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA0CG;AACH,wBAAsB,0BAA0B,CAC9C,MAAM,EAAE,SAAS,CAAC,GAAG,CAAC,EACtB,aAAa,EAAE,kBAAkB,EAAE,GAAG,SAAS,GAAG,IAAI,EACtD,OAAO,CAAC,EAAE,kBAAkB,GAC3B,OAAO,CAAC,MAAM,EAAE,CAAC,CA+DnB;AAED;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAyEG;AACH,wBAAsB,cAAc,CAClC,MAAM,EAAE,SAAS,CAAC,GAAG,CAAC,EACtB,OAAO,CAAC,EAAE,kBAAkB,GAC3B,OAAO,CAAC,UAAU,EAAE,CAAC,CAqGvB"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"openai.d.ts","sourceRoot":"","sources":["../../../src/ai/openai.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AAE9C,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,oBAAoB,CAAC;AACrD,OAAO,EAAkE,KAAK,cAAc,EAAE,MAAM,YAAY,CAAC;
|
|
1
|
+
{"version":3,"file":"openai.d.ts","sourceRoot":"","sources":["../../../src/ai/openai.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AAE9C,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,oBAAoB,CAAC;AACrD,OAAO,EAAkE,KAAK,cAAc,EAAE,MAAM,YAAY,CAAC;AAUjH,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,QAAQ,CAAC;AAErC;;;GAGG;AACH,MAAM,WAAW,UAAU;IACzB,IAAI,EAAE,UAAU,CAAC;IACjB,IAAI,EAAE,MAAM,CAAC;IACb,UAAU,EAAE;QACV,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,CAAC;KACxB,GAAG,IAAI,CAAC;IACT,MAAM,EAAE,OAAO,GAAG,IAAI,CAAC;IACvB,WAAW,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;CAC7B;AAED;;GAEG;AACH,MAAM,WAAW,kBAAmB,SAAQ,cAAc;IACxD;;;OAGG;IACH,MAAM,CAAC,EAAE,OAAO,CAAC;IACjB,kDAAk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file":"vercel-ai.d.ts","sourceRoot":"","sources":["../../../src/ai/vercel-ai.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AAE9C,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,oBAAoB,CAAC;AACrD,OAAO,EAKL,KAAK,cAAc,EACpB,MAAM,YAAY,CAAC;AAUpB;;;GAGG;AACH,MAAM,WAAW,YAAY;IAC3B,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,WAAW,EAAE,CAAC,CAAC,OAAO,CAAC,GAAG,CAAC,CAAC;IAC5B,OAAO,EAAE,CAAC,IAAI,EAAE,GAAG,EAAE,OAAO,CAAC,EAAE,GAAG,KAAK,OAAO,CAAC,GAAG,CAAC,CAAC;CACrD;AAED;;GAEG;AACH,MAAM,WAAW,oBAAqB,SAAQ,cAAc;IAC1D,kDAAkD;IAClD,OAAO,CAAC,EAAE,UAAU,CAAC;IACrB;;;;;;;;;;;OAWG;IACH,IAAI,CAAC,EAAE,MAAM,GAAG,OAAO,CAAC;CACzB;AA+BD;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAmDG;AACH,wBAAsB,gBAAgB,CACpC,MAAM,EAAE,SAAS,CAAC,GAAG,CAAC,EACtB,OAAO,CAAC,EAAE,oBAAoB,gCAyE/B"}
|
|
@@ -8,5 +8,5 @@
|
|
|
8
8
|
export { generateCodeModeTypes, type GeneratedTypes, } from "./type-generator.js";
|
|
9
9
|
export { executeSandboxCode, __setSandboxFactoryForTests, type ExecuteSandboxCodeOptions, type ExecuteSandboxCodeResult, } from "./executor.js";
|
|
10
10
|
export { RUNTIME_STUB_SOURCE } from "./runtime-stub.js";
|
|
11
|
-
export { buildCodeModeTool, canUseCodeMode, CODE_MODE_TOOL_NAME, type CodeModeToolOptions, type CodeModeToolDefinition, } from "./tool-builder.js";
|
|
11
|
+
export { buildCodeModeTool, canUseCodeMode, CODE_MODE_TOOL_NAME, TYPES_TOOL_NAME, type CodeModeToolOptions, type CodeModeToolDefinition, type TypesToolDefinition, type CodeModeTools, } from "./tool-builder.js";
|
|
12
12
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/code-mode/index.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,OAAO,EACL,qBAAqB,EACrB,KAAK,cAAc,GACpB,MAAM,qBAAqB,CAAC;AAE7B,OAAO,EACL,kBAAkB,EAClB,2BAA2B,EAC3B,KAAK,yBAAyB,EAC9B,KAAK,wBAAwB,GAC9B,MAAM,eAAe,CAAC;AAEvB,OAAO,EAAE,mBAAmB,EAAE,MAAM,mBAAmB,CAAC;AAExD,OAAO,EACL,iBAAiB,EACjB,cAAc,EACd,mBAAmB,EACnB,KAAK,mBAAmB,EACxB,KAAK,sBAAsB,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/code-mode/index.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,OAAO,EACL,qBAAqB,EACrB,KAAK,cAAc,GACpB,MAAM,qBAAqB,CAAC;AAE7B,OAAO,EACL,kBAAkB,EAClB,2BAA2B,EAC3B,KAAK,yBAAyB,EAC9B,KAAK,wBAAwB,GAC9B,MAAM,eAAe,CAAC;AAEvB,OAAO,EAAE,mBAAmB,EAAE,MAAM,mBAAmB,CAAC;AAExD,OAAO,EACL,iBAAiB,EACjB,cAAc,EACd,mBAAmB,EACnB,eAAe,EACf,KAAK,mBAAmB,EACxB,KAAK,sBAAsB,EAC3B,KAAK,mBAAmB,EACxB,KAAK,aAAa,GACnB,MAAM,mBAAmB,CAAC"}
|
|
@@ -12,6 +12,7 @@ import type { MCPContext } from "../config/types.js";
|
|
|
12
12
|
import type { MCPTool } from "../protocol/messages.js";
|
|
13
13
|
import { type ExecuteSandboxCodeResult } from "./executor.js";
|
|
14
14
|
export declare const CODE_MODE_TOOL_NAME = "execute_code";
|
|
15
|
+
export declare const TYPES_TOOL_NAME = "get_integration_types";
|
|
15
16
|
export interface CodeModeToolOptions {
|
|
16
17
|
/** Enabled MCP tools (already fetched by the caller). */
|
|
17
18
|
tools: MCPTool[];
|
|
@@ -61,6 +62,33 @@ export interface CodeModeToolDefinition {
|
|
|
61
62
|
code: string;
|
|
62
63
|
}) => Promise<ExecuteSandboxCodeResult>;
|
|
63
64
|
}
|
|
65
|
+
export interface TypesToolDefinition {
|
|
66
|
+
name: string;
|
|
67
|
+
description: string;
|
|
68
|
+
parameters: {
|
|
69
|
+
type: "object";
|
|
70
|
+
properties: {
|
|
71
|
+
integration: {
|
|
72
|
+
type: "string";
|
|
73
|
+
description: string;
|
|
74
|
+
};
|
|
75
|
+
};
|
|
76
|
+
required: ["integration"];
|
|
77
|
+
additionalProperties: false;
|
|
78
|
+
};
|
|
79
|
+
execute: (input: {
|
|
80
|
+
integration: string;
|
|
81
|
+
}) => {
|
|
82
|
+
types: string;
|
|
83
|
+
} | {
|
|
84
|
+
error: string;
|
|
85
|
+
available: string[];
|
|
86
|
+
};
|
|
87
|
+
}
|
|
88
|
+
export interface CodeModeTools {
|
|
89
|
+
codeTool: CodeModeToolDefinition;
|
|
90
|
+
typesTool: TypesToolDefinition;
|
|
91
|
+
}
|
|
64
92
|
export declare function resolveCodeModeClientConfig(client: MCPClient<any>): {
|
|
65
93
|
publicUrl?: string;
|
|
66
94
|
runtime?: "node24" | "node22";
|
|
@@ -100,9 +128,9 @@ export declare function __resetCodeModeFallbackWarnings(): void;
|
|
|
100
128
|
*/
|
|
101
129
|
export declare function warnCodeModeFallback(reason: CodeModeUnavailableReason): void;
|
|
102
130
|
/**
|
|
103
|
-
* Build the `execute_code`
|
|
104
|
-
*
|
|
105
|
-
*
|
|
131
|
+
* Build the `execute_code` and `get_integration_types` tool definitions.
|
|
132
|
+
* The compact method listing goes in execute_code's description; full
|
|
133
|
+
* TypeScript types are served on demand via get_integration_types.
|
|
106
134
|
*/
|
|
107
|
-
export declare function buildCodeModeTool(client: MCPClient<any>, options: CodeModeToolOptions):
|
|
135
|
+
export declare function buildCodeModeTool(client: MCPClient<any>, options: CodeModeToolOptions): CodeModeTools;
|
|
108
136
|
//# sourceMappingURL=tool-builder.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"tool-builder.d.ts","sourceRoot":"","sources":["../../../src/code-mode/tool-builder.ts"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AAEH,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AAC9C,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,oBAAoB,CAAC;AACrD,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,yBAAyB,CAAC;AAEvD,OAAO,EAIL,KAAK,wBAAwB,EAC9B,MAAM,eAAe,CAAC;AAGvB,eAAO,MAAM,mBAAmB,iBAAiB,CAAC;
|
|
1
|
+
{"version":3,"file":"tool-builder.d.ts","sourceRoot":"","sources":["../../../src/code-mode/tool-builder.ts"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AAEH,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AAC9C,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,oBAAoB,CAAC;AACrD,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,yBAAyB,CAAC;AAEvD,OAAO,EAIL,KAAK,wBAAwB,EAC9B,MAAM,eAAe,CAAC;AAGvB,eAAO,MAAM,mBAAmB,iBAAiB,CAAC;AAClD,eAAO,MAAM,eAAe,0BAA0B,CAAC;AAEvD,MAAM,WAAW,mBAAmB;IAClC,yDAAyD;IACzD,KAAK,EAAE,OAAO,EAAE,CAAC;IACjB,iDAAiD;IACjD,cAAc,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;IACxC,iC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AC,MAAM,EAAE,SAAS,CAAC,GAAG,CAAC,GAAG,OAAO,CAAC,iBAAiB,CAAC,CAUzF;AAED,wBAAsB,cAAc,CAAC,MAAM,EAAE,SAAS,CAAC,GAAG,CAAC,GAAG,OAAO,CAAC,OAAO,CAAC,CAE7E;AAwBD,sEAAsE;AACtE,wBAAgB,+BAA+B,IAAI,IAAI,CAEtD;AAED;;;;GAIG;AACH,wBAAgB,oBAAoB,CAAC,MAAM,EAAE,yBAAyB,GAAG,IAAI,CAI5E;AAED;;;;GAIG;AACH,wBAAgB,iBAAiB,CAC/B,MAAM,EAAE,SAAS,CAAC,GAAG,CAAC,EACtB,OAAO,EAAE,mBAAmB,GAC3B,aAAa,CA2Ff"}
|
|
@@ -10,10 +10,14 @@ import type { MCPTool } from "../protocol/messages.js";
|
|
|
10
10
|
export interface GeneratedTypes {
|
|
11
11
|
/** The full TypeScript source to embed in the LLM prompt. */
|
|
12
12
|
source: string;
|
|
13
|
+
/** Compact method listing (no JSDoc, param names only) for the tool description. */
|
|
14
|
+
compact: string;
|
|
13
15
|
/** Map from dotted method path (e.g. `github.createIssue`) to MCP tool name. */
|
|
14
16
|
methodMap: Record<string, string>;
|
|
15
17
|
/** Per-integration tool counts, useful for logging. */
|
|
16
18
|
integrationCounts: Record<string, number>;
|
|
19
|
+
/** Per-integration full type source for on-demand lookup. */
|
|
20
|
+
perIntegration: Record<string, string>;
|
|
17
21
|
}
|
|
18
22
|
/**
|
|
19
23
|
* Build the TypeScript API surface from a set of enabled MCP tools.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"type-generator.d.ts","sourceRoot":"","sources":["../../../src/code-mode/type-generator.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AAEH,OAAO,KAAK,EAAE,OAAO,EAAmB,MAAM,yBAAyB,CAAC;AAGxE,MAAM,WAAW,cAAc;IAC7B,6DAA6D;IAC7D,MAAM,EAAE,MAAM,CAAC;IACf,gFAAgF;IAChF,SAAS,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;IAClC,uDAAuD;IACvD,iBAAiB,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;
|
|
1
|
+
{"version":3,"file":"type-generator.d.ts","sourceRoot":"","sources":["../../../src/code-mode/type-generator.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AAEH,OAAO,KAAK,EAAE,OAAO,EAAmB,MAAM,yBAAyB,CAAC;AAGxE,MAAM,WAAW,cAAc;IAC7B,6DAA6D;IAC7D,MAAM,EAAE,MAAM,CAAC;IACf,oFAAoF;IACpF,OAAO,EAAE,MAAM,CAAC;IAChB,gFAAgF;IAChF,SAAS,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;IAClC,uDAAuD;IACvD,iBAAiB,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;IAC1C,6DAA6D;IAC7D,cAAc,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;CACxC;AAgHD;;GAEG;AACH,wBAAgB,qBAAqB,CAAC,KAAK,EAAE,OAAO,EAAE,GAAG,cAAc,CA8FtE"}
|
package/dist/src/server.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"server.d.ts","sourceRoot":"","sources":["../../src/server.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AAExC,OAAO,KAAK,EAAc,eAAe,EAAE,MAAM,mBAAmB,CAAC;AACrE,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,yBAAyB,CAAC;AAU9D,OAAO,KAAK,EAAE,eAAe,EAAE,cAAc,EAAE,MAAM,MAAM,CAAC;AAO5D;;GAEG;AACH,MAAM,MAAM,eAAe,CAAC,aAAa,SAAS,SAAS,cAAc,EAAE,IAAI,SAAS,CAAC,aAAa,CAAC,GAAG;IACxG;+HAC2H;IAC3H,OAAO,EAAE,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