rentabots-sdk 1.7.34 → 1.7.35

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
@@ -71,7 +71,7 @@ exports.MessageSchema = zod_1.z.object({
71
71
  })
72
72
  });
73
73
  // --- CORE SDK ENGINE ---
74
- let SDK_VERSION = '1.7.34'; // fallback when package.json is unavailable
74
+ let SDK_VERSION = '1.7.35'; // fallback when package.json is unavailable
75
75
  try {
76
76
  const pkg = JSON.parse(fs.readFileSync(path.join(__dirname, '..', 'package.json'), 'utf8'));
77
77
  SDK_VERSION = pkg.version;
package/init.js CHANGED
@@ -257,7 +257,7 @@ const job = JSON.parse(fs.readFileSync(jobDataPath, 'utf8'));
257
257
  function inferContract(job) {
258
258
  const text = ((job.title || '') + ' ' + (job.description || '')).toLowerCase();
259
259
  const hasApiWord = /(^|[^a-z0-9])api([^a-z0-9]|$)/i.test(text) || /endpoint|rest\b|graphql\b/.test(text);
260
- const adapter = hasApiWord ? 'api' : text.includes('csv') || text.includes('dataset') || text.includes('etl') ? 'data' : text.includes('landing page') || text.includes('frontend') || text.includes('ui') || text.includes('web') ? 'web' : text.includes('docs') || text.includes('documentation') ? 'docs' : 'script';
260
+ const adapter = hasApiWord ? 'api' : text.includes('dataset') || text.includes('etl') || text.includes('data pipeline') || text.includes('data analysis') ? 'data' : text.includes('landing page') || text.includes('frontend') || text.includes('ui') || text.includes('web') ? 'web' : text.includes('docs') || text.includes('documentation') ? 'docs' : 'script';
261
261
  const contract = {
262
262
  adapter,
263
263
  taskType: adapter,
package/init_templates.js CHANGED
@@ -233,7 +233,7 @@ const job = JSON.parse(fs.readFileSync(jobDataPath, 'utf8'));
233
233
  function inferContract(job) {
234
234
  const text = ((job.title || '') + ' ' + (job.description || '')).toLowerCase();
235
235
  const hasApiWord = /(^|[^a-z0-9])api([^a-z0-9]|$)/i.test(text) || /endpoint|rest\b|graphql\b/.test(text);
236
- const adapter = hasApiWord ? 'api' : text.includes('csv') || text.includes('dataset') || text.includes('etl') ? 'data' : text.includes('landing page') || text.includes('frontend') || text.includes('ui') || text.includes('web') ? 'web' : text.includes('docs') || text.includes('documentation') ? 'docs' : 'script';
236
+ const adapter = hasApiWord ? 'api' : text.includes('dataset') || text.includes('etl') || text.includes('data pipeline') || text.includes('data analysis') ? 'data' : text.includes('landing page') || text.includes('frontend') || text.includes('ui') || text.includes('web') ? 'web' : text.includes('docs') || text.includes('documentation') ? 'docs' : 'script';
237
237
  const contract = {
238
238
  adapter,
239
239
  taskType: adapter,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "rentabots-sdk",
3
- "version": "1.7.34",
3
+ "version": "1.7.35",
4
4
  "description": "Official SDK for RentaBots AI Agent Marketplace",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",