@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/dist/index.js CHANGED
@@ -4297,13 +4297,13 @@ var PRICING = {
4297
4297
  "gpt-4-turbo": { input: 10, output: 30 },
4298
4298
  "gpt-4": { input: 30, output: 60 },
4299
4299
  "gpt-3.5-turbo": { input: 0.5, output: 1.5 },
4300
- // Google Gemini (December 2025)
4300
+ // Google Gemini (January 2026)
4301
4301
  "gemini-3-pro-preview": { input: 2, output: 12 },
4302
4302
  // New Gemini 3
4303
4303
  "gemini-3-flash-preview": { input: 0.5, output: 3 },
4304
4304
  // For prompts ≤200K tokens, 2x for >200K
4305
- "gemini-2.5-flash": { input: 0.15, output: 0.6 },
4306
- // Standard mode (thinking disabled: $0.60, thinking enabled: $3.50)
4305
+ "gemini-2.5-flash": { input: 0.3, output: 2.5 },
4306
+ // Paid tier: $0.30 input (text/image/video), $2.50 output (includes thinking)
4307
4307
  "gemini-2.5-flash-lite": { input: 0.1, output: 0.4 },
4308
4308
  "gemini-2.0-flash": { input: 0.1, output: 0.4 },
4309
4309
  "gemini-2.0-flash-lite": { input: 0.075, output: 0.3 },
@@ -7272,8 +7272,15 @@ Please try rephrasing your request or contact support.
7272
7272
  }
7273
7273
  await streamDelay();
7274
7274
  }
7275
+ const cappedToolInput = { ...toolInput };
7276
+ if (cappedToolInput.limit !== void 0 && cappedToolInput.limit > MAX_COMPONENT_QUERY_LIMIT) {
7277
+ logger.info(`[${providerName}] Capping external tool limit from ${cappedToolInput.limit} to ${MAX_COMPONENT_QUERY_LIMIT}`);
7278
+ cappedToolInput.limit = MAX_COMPONENT_QUERY_LIMIT;
7279
+ } else if (cappedToolInput.limit === void 0) {
7280
+ cappedToolInput.limit = MAX_COMPONENT_QUERY_LIMIT;
7281
+ }
7275
7282
  const result = await withProgressHeartbeat(
7276
- () => externalTool.fn(toolInput),
7283
+ () => externalTool.fn(cappedToolInput),
7277
7284
  `Running ${externalTool.name}`,
7278
7285
  streamBuffer
7279
7286
  );
@@ -7287,7 +7294,7 @@ Please try rephrasing your request or contact support.
7287
7294
  this.executedToolsList.push({
7288
7295
  id: externalTool.id,
7289
7296
  name: externalTool.name,
7290
- params: toolInput,
7297
+ params: cappedToolInput,
7291
7298
  result: {
7292
7299
  _totalRecords: formattedForTracking.summary.totalRecords,
7293
7300
  _recordsShown: formattedForTracking.summary.recordsShown,
@@ -8162,8 +8169,12 @@ ${executedToolsText}`);
8162
8169
  if (deferredTools.length > 0) {
8163
8170
  logger.info(`[${this.getProviderName()}] Passing ${deferredTools.length} deferred tools for Form generation`);
8164
8171
  }
8172
+ const sanitizedTextResponse = textResponse.replace(
8173
+ /<DataTable>[\s\S]*?<\/DataTable>/g,
8174
+ "<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>"
8175
+ );
8165
8176
  const matchResult = await this.matchComponentsFromAnalysis(
8166
- textResponse,
8177
+ sanitizedTextResponse,
8167
8178
  components,
8168
8179
  userPrompt,
8169
8180
  apiKey,