dual-brain 0.3.21 → 0.3.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/bin/dual-brain.mjs +4 -1
- package/package.json +1 -1
package/bin/dual-brain.mjs
CHANGED
|
@@ -2986,7 +2986,10 @@ async function mainScreen(rl, ask) {
|
|
|
2986
2986
|
try {
|
|
2987
2987
|
const { getOpenTasks } = await import('../dist/src/ledger.js');
|
|
2988
2988
|
const open = getOpenTasks(cwd);
|
|
2989
|
-
if (open.length > 0)
|
|
2989
|
+
if (open.length > 0) {
|
|
2990
|
+
const intent = String(open[0].intent || '').replace(/\s+/g, ' ').trim();
|
|
2991
|
+
if (intent.length >= 5) openTasks.push(`continue: ${intent.slice(0, 30)}`);
|
|
2992
|
+
}
|
|
2990
2993
|
} catch {}
|
|
2991
2994
|
suggestions = openTasks.length > 0
|
|
2992
2995
|
? [openTasks[0], 'review changes', 'run tests']
|
package/package.json
CHANGED