@calltelemetry/fmix 2.7.2 → 2.7.3

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.
Files changed (2) hide show
  1. package/bin/fmix +17 -1
  2. package/package.json +3 -3
package/bin/fmix CHANGED
@@ -23,7 +23,7 @@ set -uo pipefail
23
23
  # ---------------------------------------------------------------------------
24
24
  # Constants & config
25
25
  # ---------------------------------------------------------------------------
26
- FMIX_VERSION="2.7.2"
26
+ FMIX_VERSION="2.7.3"
27
27
  FMIX_HOME="${FMIX_HOME:-${HOME}/.ct-fmix}"
28
28
  FMIX_OS="$(uname -s)"
29
29
  FMIX_ARCH="$(uname -m)"
@@ -10834,6 +10834,22 @@ cmd_doctor() {
10834
10834
  local db_name
10835
10835
  db_name="$(fmix_db_name_for_worktree "$real_wt")"
10836
10836
  echo " Scratch DB: $db_name"
10837
+ # Existence check: the session's scratch DB must actually exist in
10838
+ # Postgres, or runtime tasks that try to boot the app against it will
10839
+ # fail at runtime anyway. Filesystem deps/build present is necessary
10840
+ # but not sufficient — a poisoned session can retain deps yet never
10841
+ # have created the scratch DB on this host postgres.
10842
+ if [[ -n "$DB_HOST" && -n "$DB_PORT" && -n "$DB_USER" ]]; then
10843
+ if fmix_control_psql 5 -h "$DB_HOST" -p "$DB_PORT" -U "$DB_USER" -d "$db_name" -c "SELECT 1" >/dev/null 2>&1; then
10844
+ echo " [OK] scratch DB reachable: $db_name"
10845
+ else
10846
+ echo " [FAIL] scratch DB missing or unreachable: $db_name"
10847
+ echo " fix: run 'fmix setup --worktree $real_wt' to (re)create the session scratch DB"
10848
+ fail=$(( fail + 1 ))
10849
+ fi
10850
+ else
10851
+ echo " [INFO] scratch DB check skipped (DB_HOST/DB_PORT/DB_USER unset)"
10852
+ fi
10837
10853
  local doctor_deps doctor_build
10838
10854
  doctor_deps="$(fmix_session_deps_root "$real_wt")"
10839
10855
  doctor_build="$(fmix_compile_build_root "$real_wt")"
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@calltelemetry/fmix",
3
- "version": "2.7.2",
3
+ "version": "2.7.3",
4
4
  "description": "Verified native FMix runner for CallTelemetry workspaces",
5
5
  "license": "MIT",
6
6
  "bin": {
@@ -26,7 +26,7 @@
26
26
  "directory": "packages/npm"
27
27
  },
28
28
  "fmix": {
29
- "runnerSha256": "7eff89a33c2a6cdb812d67ef984b6cd85212fb70f67168ca51a500969c07da56",
30
- "sourceTag": "fmix-v2.7.2"
29
+ "runnerSha256": "475bbdb8d63f9cb5c8abe1c2f8b8f98a8f435eba6883c85b43d18d56efc510f7",
30
+ "sourceTag": "fmix-v2.7.3"
31
31
  }
32
32
  }