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 +1 -1
- package/init.js +1 -1
- package/init_templates.js +1 -1
- package/package.json +1 -1
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.
|
|
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('
|
|
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('
|
|
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,
|