@superatomai/sdk-node 0.0.76 → 0.0.77
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/README.md +942 -942
- package/dist/index.js +17 -6
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +17 -6
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.mjs
CHANGED
|
@@ -4240,13 +4240,13 @@ var PRICING = {
|
|
|
4240
4240
|
"gpt-4-turbo": { input: 10, output: 30 },
|
|
4241
4241
|
"gpt-4": { input: 30, output: 60 },
|
|
4242
4242
|
"gpt-3.5-turbo": { input: 0.5, output: 1.5 },
|
|
4243
|
-
// Google Gemini (
|
|
4243
|
+
// Google Gemini (January 2026)
|
|
4244
4244
|
"gemini-3-pro-preview": { input: 2, output: 12 },
|
|
4245
4245
|
// New Gemini 3
|
|
4246
4246
|
"gemini-3-flash-preview": { input: 0.5, output: 3 },
|
|
4247
4247
|
// For prompts ≤200K tokens, 2x for >200K
|
|
4248
|
-
"gemini-2.5-flash": { input: 0.
|
|
4249
|
-
//
|
|
4248
|
+
"gemini-2.5-flash": { input: 0.3, output: 2.5 },
|
|
4249
|
+
// Paid tier: $0.30 input (text/image/video), $2.50 output (includes thinking)
|
|
4250
4250
|
"gemini-2.5-flash-lite": { input: 0.1, output: 0.4 },
|
|
4251
4251
|
"gemini-2.0-flash": { input: 0.1, output: 0.4 },
|
|
4252
4252
|
"gemini-2.0-flash-lite": { input: 0.075, output: 0.3 },
|
|
@@ -7215,8 +7215,15 @@ Please try rephrasing your request or contact support.
|
|
|
7215
7215
|
}
|
|
7216
7216
|
await streamDelay();
|
|
7217
7217
|
}
|
|
7218
|
+
const cappedToolInput = { ...toolInput };
|
|
7219
|
+
if (cappedToolInput.limit !== void 0 && cappedToolInput.limit > MAX_COMPONENT_QUERY_LIMIT) {
|
|
7220
|
+
logger.info(`[${providerName}] Capping external tool limit from ${cappedToolInput.limit} to ${MAX_COMPONENT_QUERY_LIMIT}`);
|
|
7221
|
+
cappedToolInput.limit = MAX_COMPONENT_QUERY_LIMIT;
|
|
7222
|
+
} else if (cappedToolInput.limit === void 0) {
|
|
7223
|
+
cappedToolInput.limit = MAX_COMPONENT_QUERY_LIMIT;
|
|
7224
|
+
}
|
|
7218
7225
|
const result = await withProgressHeartbeat(
|
|
7219
|
-
() => externalTool.fn(
|
|
7226
|
+
() => externalTool.fn(cappedToolInput),
|
|
7220
7227
|
`Running ${externalTool.name}`,
|
|
7221
7228
|
streamBuffer
|
|
7222
7229
|
);
|
|
@@ -7230,7 +7237,7 @@ Please try rephrasing your request or contact support.
|
|
|
7230
7237
|
this.executedToolsList.push({
|
|
7231
7238
|
id: externalTool.id,
|
|
7232
7239
|
name: externalTool.name,
|
|
7233
|
-
params:
|
|
7240
|
+
params: cappedToolInput,
|
|
7234
7241
|
result: {
|
|
7235
7242
|
_totalRecords: formattedForTracking.summary.totalRecords,
|
|
7236
7243
|
_recordsShown: formattedForTracking.summary.recordsShown,
|
|
@@ -8105,8 +8112,12 @@ ${executedToolsText}`);
|
|
|
8105
8112
|
if (deferredTools.length > 0) {
|
|
8106
8113
|
logger.info(`[${this.getProviderName()}] Passing ${deferredTools.length} deferred tools for Form generation`);
|
|
8107
8114
|
}
|
|
8115
|
+
const sanitizedTextResponse = textResponse.replace(
|
|
8116
|
+
/<DataTable>[\s\S]*?<\/DataTable>/g,
|
|
8117
|
+
"<DataTable>[Data preview removed - for table components, REUSE the exact SQL query shown above (the one that returned these results). Do NOT write a new query or embed data in props.]</DataTable>"
|
|
8118
|
+
);
|
|
8108
8119
|
const matchResult = await this.matchComponentsFromAnalysis(
|
|
8109
|
-
|
|
8120
|
+
sanitizedTextResponse,
|
|
8110
8121
|
components,
|
|
8111
8122
|
userPrompt,
|
|
8112
8123
|
apiKey,
|