@oss-autopilot/core 3.24.0 → 3.25.1

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.
@@ -1375,6 +1375,22 @@ export const commands = [
1375
1375
  console.log(` Warning: ${data.gistSyncWarning}`);
1376
1376
  });
1377
1377
  });
1378
+ group
1379
+ .command('report')
1380
+ .description('Print the latest morning report: the local file, or the copy the overnight machine published to the Gist (#1698)')
1381
+ .option('--json', 'Output as JSON')
1382
+ .action(async (options) => {
1383
+ const { OvernightReportOutputSchema } = await import('./formatters/json.js');
1384
+ await executeAction(options, async () => (await import('./commands/overnight.js')).runOvernightReport(), (data) => {
1385
+ if (data.content === null) {
1386
+ console.log(`No overnight report readable: ${data.reportPath} is not on this machine and nothing has been published to the Gist`);
1387
+ return;
1388
+ }
1389
+ if (data.source === 'gist')
1390
+ console.log(`(from the Gist; the file lives on the overnight machine at ${data.reportPath})\n`);
1391
+ process.stdout.write(data.content.endsWith('\n') ? data.content : `${data.content}\n`);
1392
+ }, OvernightReportOutputSchema);
1393
+ });
1378
1394
  group
1379
1395
  .command('push-prep')
1380
1396
  .description('Push the prepared branches of the latest run to prep/* on your fork (#1698). Post-tick step for a scheduler; the model never runs it')