@jhizzard/termdeck 0.16.0 → 0.16.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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@jhizzard/termdeck",
3
- "version": "0.16.0",
3
+ "version": "0.16.1",
4
4
  "description": "Browser-based terminal multiplexer with metadata overlays, panel flashback memory recall, and AI-aware session management",
5
5
  "bin": {
6
6
  "termdeck": "./packages/cli/src/index.js"
@@ -361,8 +361,18 @@ async function _runSchemaCheck(opts = {}) {
361
361
  hint: `run: psql "$DATABASE_URL" -f config/transcript-migration.sql`,
362
362
  });
363
363
 
364
- // Rumen — table existence and the created_at column drift Brad hit
364
+ // Rumen — table existence and timestamp column drift detection.
365
+ // Migration 001 defines rumen_jobs.started_at (semantically the tick
366
+ // start time) — NOT created_at. The other two tables use created_at.
367
+ // Pre-0.16.1 doctor probed `created_at` for all three, which produced
368
+ // a false-positive WARN on rumen_jobs and pointed users at a phantom
369
+ // migration drift (Brad, 2026-05-02).
365
370
  const rumen = sections[3].checks;
371
+ const RUMEN_TIME_COL = {
372
+ rumen_jobs: 'started_at',
373
+ rumen_insights: 'created_at',
374
+ rumen_questions: 'created_at',
375
+ };
366
376
  for (const t of ['rumen_jobs', 'rumen_insights', 'rumen_questions']) {
367
377
  const tableOk = await probeSchema(client, SCHEMA_QUERIES.table(t));
368
378
  rumen.push({
@@ -373,9 +383,10 @@ async function _runSchemaCheck(opts = {}) {
373
383
  // Only check the column when the table exists — otherwise the column
374
384
  // line is redundant noise.
375
385
  if (tableOk) {
386
+ const col = RUMEN_TIME_COL[t];
376
387
  rumen.push({
377
- label: `${t}.created_at column`,
378
- status: (await probeSchema(client, SCHEMA_QUERIES.column(t, 'created_at'))) ? 'pass' : 'fail',
388
+ label: `${t}.${col} column`,
389
+ status: (await probeSchema(client, SCHEMA_QUERIES.column(t, col))) ? 'pass' : 'fail',
379
390
  hint: `column drift detected — re-run: termdeck init --rumen`,
380
391
  });
381
392
  }