@arvorco/relentless 0.1.21 → 0.1.22
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/package.json +1 -1
- package/src/execution/runner.ts +3 -3
package/package.json
CHANGED
package/src/execution/runner.ts
CHANGED
|
@@ -70,8 +70,8 @@ async function buildPrompt(
|
|
|
70
70
|
|
|
71
71
|
let prompt = await Bun.file(promptPath).text();
|
|
72
72
|
|
|
73
|
-
// Load and append constitution if available
|
|
74
|
-
const constitution = await loadConstitution(
|
|
73
|
+
// Load and append constitution if available (pass undefined to auto-find)
|
|
74
|
+
const constitution = await loadConstitution();
|
|
75
75
|
if (constitution) {
|
|
76
76
|
// Validate constitution
|
|
77
77
|
const validation = validateConstitution(constitution);
|
|
@@ -90,7 +90,7 @@ async function buildPrompt(
|
|
|
90
90
|
|
|
91
91
|
// Load and append progress patterns if available
|
|
92
92
|
const progress = await loadProgress(progressPath);
|
|
93
|
-
if (progress && progress.metadata.patterns.length > 0) {
|
|
93
|
+
if (progress?.metadata?.patterns && progress.metadata.patterns.length > 0) {
|
|
94
94
|
prompt += `\n\n## Learned Patterns from Previous Iterations\n\n`;
|
|
95
95
|
prompt += `The following patterns were discovered in previous iterations:\n\n`;
|
|
96
96
|
for (const pattern of progress.metadata.patterns) {
|