@masslessai/push-todo 3.5.6 → 3.5.7
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/lib/daemon.js +13 -4
- package/package.json +1 -1
package/lib/daemon.js
CHANGED
|
@@ -1006,14 +1006,23 @@ function handleTaskCompletion(displayNumber, exitCode) {
|
|
|
1006
1006
|
log(`Task #${displayNumber} could not extract session_id`);
|
|
1007
1007
|
}
|
|
1008
1008
|
|
|
1009
|
+
// Auto-create PR first so we can include it in the summary
|
|
1010
|
+
const prUrl = createPRForTask(displayNumber, summary, projectPath);
|
|
1011
|
+
|
|
1012
|
+
// Build execution summary for Supabase (shown in iOS timeline)
|
|
1013
|
+
const durationStr = duration < 60 ? `${duration}s` : `${Math.floor(duration / 60)}m ${duration % 60}s`;
|
|
1014
|
+
const machineName = getMachineName() || 'Mac';
|
|
1015
|
+
let executionSummary = `Ran for ${durationStr} on ${machineName}.`;
|
|
1016
|
+
if (prUrl) {
|
|
1017
|
+
executionSummary += ` PR: ${prUrl}`;
|
|
1018
|
+
}
|
|
1019
|
+
|
|
1009
1020
|
updateTaskStatus(displayNumber, 'completed', {
|
|
1010
1021
|
duration,
|
|
1011
|
-
sessionId
|
|
1022
|
+
sessionId,
|
|
1023
|
+
summary: executionSummary
|
|
1012
1024
|
});
|
|
1013
1025
|
|
|
1014
|
-
// Auto-create PR
|
|
1015
|
-
const prUrl = createPRForTask(displayNumber, summary, projectPath);
|
|
1016
|
-
|
|
1017
1026
|
if (NOTIFY_ON_COMPLETE) {
|
|
1018
1027
|
const prNote = prUrl ? ' PR ready for review.' : '';
|
|
1019
1028
|
sendMacNotification(
|