kryptheon-night 0.1.4 → 0.1.6

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/trouble.js CHANGED
@@ -408,6 +408,25 @@ function explain(err, raw) {
408
408
  return BY_CODE['28P01'].slice();
409
409
  }
410
410
 
411
+ // The install refused because the database cannot schedule or post. It had
412
+ // connected - the line above this on screen says "Connected." - and falling
413
+ // through to "I could not connect" sent people checking a password that
414
+ // was fine. Measured on a plain Postgres 18.
415
+ const missing = /does not offer (pg_[a-z_]+)/.exec(message);
416
+ if (missing) {
417
+ return [
418
+ 'This database cannot run the nightly check.',
419
+ '',
420
+ 'It does not offer ' + missing[1] + ', which the nightly run needs (pg_cron to',
421
+ 'wake itself at night, pg_net to report). Supabase has both; a plain',
422
+ 'Postgres or Neon may not. Nothing was installed.',
423
+ '',
424
+ 'The scan itself does not need either, and works here:',
425
+ '',
426
+ ' npx kryptheon-night',
427
+ ];
428
+ }
429
+
411
430
  // Nothing matched. Say what happened and where, without pretending to know
412
431
  // why, and without the stack.
413
432
  const lines = [