rentabots-sdk 1.7.32 → 1.7.33

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.32'; // fallback when package.json is unavailable
74
+ let SDK_VERSION = '1.7.33'; // 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
@@ -325,7 +325,7 @@ async function main() {
325
325
  fs.writeFileSync(path.join(workDir, 'ACCEPTANCE.json'), JSON.stringify(contract, null, 2));
326
326
  await agent.sendMessage(job.id, '📋 Contract parsed: ' + contract.taskType + ' / ' + contract.language + '. Deliverables: ' + contract.deliverables.join(', '));
327
327
 
328
- const task = 'PROJECT: ' + job.title + '. BRIEF: ' + job.description + '. CONTRACT: ' + JSON.stringify(contract) + '. INSTRUCTION: Execute this task in the current directory. Do not leave the workspace. You MUST produce tangible deliverables (code + README + run/test notes) in local files.';
328
+ const task = 'PROJECT: ' + job.title + '. BRIEF: ' + job.description + '. CONTRACT: ' + JSON.stringify(contract) + '. WORKDIR: ' + workDir + '. MANDATORY OUTPUT FILES: ' + contract.deliverables.join(', ') + '. INSTRUCTION: Work ONLY in WORKDIR. Create/modify the mandatory files there with real implementation (not placeholders), then include run/test notes in README.';
329
329
 
330
330
  // Use shell command string (not array args)
331
331
  const taskArg = JSON.stringify(task);
@@ -537,6 +537,8 @@ async function main() {
537
537
  const repairPrompt = [
538
538
  'Repair the existing workspace to satisfy missing deterministic gates.',
539
539
  'Do not explain. Edit files now and finish.',
540
+ 'WORKDIR: ' + workDir,
541
+ 'MANDATORY OUTPUT FILES: ' + contract.deliverables.join(', '),
540
542
  'MISSING GATES:',
541
543
  ...issues.map(i => '- ' + i),
542
544
  '',
package/init_templates.js CHANGED
@@ -309,7 +309,7 @@ async function main() {
309
309
  await agent.sendMessage(job.id, '📋 Contract parsed: ' + contract.taskType + ' / ' + contract.language + '. Deliverables: ' + contract.deliverables.join(', '));
310
310
 
311
311
  // Construct the prompt for the autonomous brain
312
- const task = \`PROJECT: \${job.title}. BRIEF: \${job.description}. CONTRACT: \${JSON.stringify(contract)}. INSTRUCTION: Execute this task in the current directory. Do not leave the workspace. You MUST produce tangible deliverables (code + README + run/test notes) in local files.\`;
312
+ const task = \`PROJECT: \${job.title}. BRIEF: \${job.description}. CONTRACT: \${JSON.stringify(contract)}. WORKDIR: \${workDir}. MANDATORY OUTPUT FILES: \${contract.deliverables.join(', ')}. INSTRUCTION: Work ONLY in WORKDIR. Create/modify the mandatory files there with real implementation (not placeholders), then include run/test notes in README.\`;
313
313
 
314
314
  // --- 🦞 EXECUTE VIA OPENCLAW BRAIN ---
315
315
  const taskArg = JSON.stringify(task);
@@ -522,6 +522,8 @@ async function main() {
522
522
  const repairPrompt = [
523
523
  'Repair the existing workspace to satisfy missing deterministic gates.',
524
524
  'Do not explain. Edit files now and finish.',
525
+ 'WORKDIR: ' + workDir,
526
+ 'MANDATORY OUTPUT FILES: ' + contract.deliverables.join(', '),
525
527
  'MISSING GATES:',
526
528
  ...issues.map(i => '- ' + i),
527
529
  '',
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "rentabots-sdk",
3
- "version": "1.7.32",
3
+ "version": "1.7.33",
4
4
  "description": "Official SDK for RentaBots AI Agent Marketplace",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",