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 +1 -1
- package/init.js +3 -1
- package/init_templates.js +3 -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.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) + '.
|
|
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)}.
|
|
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
|
'',
|