liquilens 0.5.1 → 0.5.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.
package/README.md CHANGED
@@ -1,4 +1,4 @@
1
- # liquilens — the terminal
1
+ # liquilens: the terminal
2
2
 
3
3
  The LiquiLens Failure Radar as a live terminal dashboard, in the spirit of
4
4
  Claude Code / htop. Zero keys required: it reads the same public, no-auth
@@ -9,21 +9,24 @@ Need the radar on your own counterparty or borrower book? A fixed-scope,
9
9
  self-hosted proof pilot is available at
10
10
  [liquilens.in/pilot](https://liquilens.in/pilot/).
11
11
 
12
+ Layout of the India board while review tiers are paused (values elided):
13
+
12
14
  ```
13
15
  ◆ LIQUILENS · Failure Radar · IN/US (t to switch)
14
- market regime SHIFT (log-SR 1.16, last change 13d ago) ███▁▁▂▂▂ · 2026-07-16
16
+ market regime ... (log-SR ..., last change ...) · <regime date>
17
+ review tiers paused since 2026-11-03: tiers paused, research only; no grade, band or colour is shown and PDs are research only
15
18
 
16
- INSTITUTION TYPE GRADE SCORE PD 12M Δ PD FUNDING
17
- ❯ ESAF Small Finance Bank sfb BBB 66 0.40% ▲ 0.09% stable
18
- ...
19
+ INSTITUTION TYPE SCORE PD 12M* Δ PD FUNDING
20
+ ❯ ...
19
21
  ```
20
22
 
21
23
  Two boards, one command:
22
24
 
23
- - **IN** — Indian institutions (banks/SFBs/NBFCs/MFIs): grades, 12/24/36-month
24
- failure probabilities, funding bands, PCA status, forensics, market lens,
25
- GDELT news watch.
26
- - **US** — the riskiest tail of 1,000+ FDIC-scored banks (undertow engine):
25
+ - **IN** covers Indian banks, SFBs, NBFCs and MFIs. The public summary shows
26
+ the score, 12/24/36-month research probabilities, funding index and RBI zone.
27
+ Detail depends on what the API serves. Grades require published review
28
+ tiers. Risk bands also require the underlying inputs.
29
+ - **US** (the riskiest tail of 1,000+ FDIC-scored banks, undertow engine):
27
30
  within-quarter percentile score, noncurrent assets, uninsured/brokered
28
31
  deposits, CRE concentration, NDFI-to-tier-1.
29
32
 
@@ -57,28 +60,54 @@ liquilens
57
60
  - **Interactive TUI** (default in a terminal): live board, auto-refreshes
58
61
  every 5 minutes, adapts to any terminal size (scrolling viewport on short
59
62
  terminals, adaptive columns on narrow ones), `t` switches region.
60
- - **`--plain`** (automatic when piped): one-shot ANSI-free table — safe for
63
+ - **`--plain`** (automatic when piped): one-shot ANSI-free table, safe for
61
64
  scripts, cron mails, CI logs.
62
- - **`--json`**: one-shot machine-readable dump (rows + `risk_band` + regime).
65
+ - **`--json`**: one-shot machine-readable dump of rows, regime and
66
+ `tier_publication`. India rows carry `risk_band` only while review tiers
67
+ are published; US rows always carry their rank band.
63
68
  - **`--record`**: one-shot historical-evidence ledger for India, the US, and
64
69
  Europe. It prints each market's construction/case-file status plus
65
70
  `validated_backtest_eligible` and `real_money_eligible`; add `--json` to
66
71
  preserve the served `/api/evidence/markets` payload exactly. It cannot be
67
72
  combined with `--region` or `--fail-on`.
68
- - **`--fail-on amber|red`**: alerting for cron/CI — exits 3 when any Indian
69
- institution is at/above the band. (India only: US scores are within-quarter
70
- percentile ranks — a relative leaderboard — so an absolute threshold would
71
- always fire.)
73
+ - **`--fail-on amber|red`**: alerting for cron/CI. Exits 3 when any Indian
74
+ institution is at/above the band, 0 when all are below it, and 4 when the
75
+ tiers are paused or the board lacks the detailed inputs for a comparison.
76
+ On the US board, scores are within-quarter percentile ranks,
77
+ a relative leaderboard, so an absolute threshold would always fire.
72
78
 
73
79
  ```bash
74
- # cron: mail me the board only when something turns red
75
- liquilens --fail-on red > /tmp/board.txt || mail -s "LiquiLens RED" me@x < /tmp/board.txt
80
+ # cron: mail me the board when something turns red, and say so when the
81
+ # check could not run (4 = review tiers paused, 1 = no data)
82
+ liquilens --fail-on red > /tmp/board.txt
83
+ case $? in
84
+ 0) ;;
85
+ 3) mail -s "LiquiLens RED" me@x < /tmp/board.txt ;;
86
+ *) mail -s "LiquiLens check not evaluated" me@x < /tmp/board.txt ;;
87
+ esac
76
88
 
77
89
  # audit the historical-evidence boundary without opening the web app
78
90
  liquilens --record
79
91
  liquilens --record --json | jq '.markets[] | {name, historical_evidence}'
80
92
  ```
81
93
 
94
+ ## While India review tiers are paused
95
+
96
+ Since 2026-11-03 the API has paused India review tiers. The reason, in the
97
+ API's own words, is in the `tier_publication` object it serves. While the
98
+ pause holds:
99
+
100
+ - the board shows no grade, band or row colour, and the PD columns are
101
+ marked research only;
102
+ - `--json` rows carry no `risk_band`, and the top-level `tier_publication`
103
+ object states the pause;
104
+ - `--fail-on` exits 4 ("not evaluated") rather than 0 or 3. A paused board
105
+ is not a calm board, so the CLI never reports a pass it could not check.
106
+
107
+ The CLI reads this from `tier_publication.state` alone. Anything other than
108
+ `published`, including a missing field or an older cached board, is treated
109
+ as paused.
110
+
82
111
  ## Keys
83
112
 
84
113
  | key | action |
@@ -97,15 +126,15 @@ liquilens --record --json | jq '.markets[] | {name, historical_evidence}'
97
126
  - **Retries**: 3 attempts with backoff on network errors, 429s and 5xx.
98
127
  - **Offline cache**: every good board is snapshotted per region (atomic write,
99
128
  XDG cache dir; `%LOCALAPPDATA%` on Windows). If the API is unreachable you
100
- get the cached board with a clear "offline — cached from Xh ago" banner.
129
+ get the cached board under an offline banner that states its age.
101
130
  Exit 1 only when there is no data at all.
102
131
  - **Networks**: IPv4-first DNS plus undici `autoSelectFamily` (fast Happy
103
- Eyeballs) — works on IPv6-blackholed *and* IPv6-only networks. `HTTPS_PROXY`
132
+ Eyeballs), so it works on IPv6-blackholed *and* IPv6-only networks. `HTTPS_PROXY`
104
133
  / `HTTP_PROXY` / `NO_PROXY` are honored.
105
134
  - **Partial failure**: if only the market-regime endpoint fails, the board
106
135
  still renders with a "regime unavailable" note.
107
136
  - **Tests + CI**: pure logic (columns, sorting, filtering, viewport, risk
108
- bands, sparkline, US formatting, cache) is unit-tested (`npm test`);
137
+ bands, review-tier pause, sparkline, US formatting, cache) is unit-tested (`npm test`);
109
138
  CI runs build + tests + live smokes on Node
110
139
  18/20/22.
111
140
 
@@ -118,21 +147,22 @@ and machine details are never sent as analytics.
118
147
 
119
148
  ## Exit codes
120
149
 
121
- 0 ok · 1 no data (API down, no cache) · 2 bad usage · 3 `--fail-on` breached
150
+ 0 ok · 1 no data (API down, no cache) · 2 bad usage · 3 `--fail-on` breached ·
151
+ 4 `--fail-on` could not evaluate the board (tiers paused or detailed inputs unavailable)
122
152
 
123
153
  ## Config
124
154
 
125
- - `--api <url>` or `LIQUILENS_API` — API host (default
155
+ - `--api <url>` or `LIQUILENS_API`: API host (default
126
156
  `https://api.liquilens.in`), e.g. a local backend on `:8000`.
127
- - `HTTPS_PROXY` — standard CONNECT proxy, honored by all requests.
157
+ - `HTTPS_PROXY`: standard CONNECT proxy, honored by all requests.
128
158
 
129
159
  ## Where things live
130
160
 
131
- - `src/api.ts` — typed fetchers, retry/backoff, proxy + Happy-Eyeballs dialing.
132
- - `src/cache.ts` — per-region last-good-snapshot cache.
133
- - `src/format.ts` — pure layout/sort/filter/viewport/sparkline logic (tested).
134
- - `src/riskBands.ts` — the row-colour policies. India = absolute thresholds
135
- (domain judgment — tune here). US = rank-within-board (percentile scores
161
+ - `src/api.ts`: typed fetchers, retry/backoff, proxy + Happy-Eyeballs dialing.
162
+ - `src/cache.ts`: per-region last-good-snapshot cache.
163
+ - `src/format.ts`: pure layout/sort/filter/viewport/sparkline logic (tested).
164
+ - `src/riskBands.ts`: the row-colour policies and the review-tier pause
165
+ check. India = absolute thresholds (domain judgment, tune here). US = rank-within-board (percentile scores
136
166
  drift across quarters, ranks don't).
137
- - `src/plain.ts` — `--plain` / `--json` renderers + `--fail-on` band logic.
138
- - `src/App.tsx` — the Ink UI. `src/cli.tsx` — entry point + arg parsing.
167
+ - `src/plain.ts`: `--plain` / `--json` renderers + `--fail-on` band logic.
168
+ - `src/App.tsx`: the Ink UI. `src/cli.tsx`: entry point + arg parsing.
package/dist/App.js CHANGED
@@ -1,10 +1,10 @@
1
- import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
1
+ import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from "react/jsx-runtime";
2
2
  import { useCallback, useEffect, useMemo, useRef, useState } from "react";
3
3
  import { Box, Text, useApp, useInput, useStdout } from "ink";
4
- import { fetchBoard, fetchNews, fetchRegime, fetchUSBoard, } from "./api.js";
4
+ import { fetchBoard, fetchNews, fetchRegime, fetchUSBoard, hasRadarDetail, probabilities, probabilityChange, } from "./api.js";
5
5
  import { loadCached, saveCached, ageMinutes, describeAge, } from "./cache.js";
6
- import { cell, computeCols, computeUSCols, filterRows, filterUSRows, fmtAssets, fundingLabel, movement, pct, pct1, rawPct, SORT_MODES, sortRows, sortUSRows, sparkline, US_SORT_MODES, viewport, } from "./format.js";
7
- import { riskBand, usRiskBandByRank, bandColor } from "./riskBands.js";
6
+ import { cell, computeCols, computeUSCols, filterRows, filterUSRows, fmtAssets, fundingLabel, fundingSummary, movement, pct, pct1, rawPct, SORT_MODES, sortRows, sortUSRows, sparkline, US_SORT_MODES, viewport, } from "./format.js";
7
+ import { pausedLine, riskBand, tiersPublished, usRiskBandByRank, bandColor } from "./riskBands.js";
8
8
  const ACCENT = "#9184d9"; // Nocturne
9
9
  const DIM = "gray";
10
10
  const REFRESH_MS = 5 * 60_000;
@@ -52,12 +52,14 @@ function Header({ region, regime, regimeError, usBoard, width, }) {
52
52
  const spark = region === "in" && width >= 96 && regime?.series?.log_sr
53
53
  ? sparkline(regime.series.log_sr, 28)
54
54
  : "";
55
- return (_jsxs(Box, { flexDirection: "column", children: [_jsxs(Box, { children: [_jsx(Text, { color: ACCENT, bold: true, children: "\u25C6 LIQUILENS" }), _jsx(Text, { color: DIM, children: " \u00B7 Failure Radar \u00B7 " }), _jsx(Text, { color: region === "in" ? ACCENT : DIM, bold: region === "in", children: "IN" }), _jsx(Text, { color: DIM, children: "/" }), _jsx(Text, { color: region === "us" ? ACCENT : DIM, bold: region === "us", children: "US" }), _jsx(Text, { color: DIM, children: " (t to switch)" })] }), region === "in" ? (regime ? (_jsxs(Box, { children: [_jsx(Text, { color: DIM, children: "market regime " }), _jsx(Text, { color: regimeColor(regime.regime), bold: true, children: regime.regime }), _jsxs(Text, { color: DIM, children: [" ", "(log-SR ", regime.log_sr_now.toFixed(2), ", last change", " ", regime.trading_days_since_last_change, "d ago)"] }), spark && (_jsxs(Text, { color: regimeColor(regime.regime), children: [" ", spark] })), _jsxs(Text, { color: DIM, children: [" \u00B7 ", regime.as_of] })] })) : regimeError ? (_jsx(Text, { color: DIM, children: "market regime unavailable right now" })) : null) : usBoard ? (_jsxs(Text, { color: DIM, children: ["top ", usBoard.board.length, " of ", usBoard.universe.banks_scored, " FDIC banks (\u2265$1B assets) \u00B7 undertow score = within-quarter percentile \u00B7 quarter ", usBoard.as_of] })) : null] }));
55
+ return (_jsxs(Box, { flexDirection: "column", children: [_jsxs(Box, { children: [_jsx(Text, { color: ACCENT, bold: true, children: "\u25C6 LIQUILENS" }), _jsx(Text, { color: DIM, children: " \u00B7 Failure Radar \u00B7 " }), _jsx(Text, { color: region === "in" ? ACCENT : DIM, bold: region === "in", children: "IN" }), _jsx(Text, { color: DIM, children: "/" }), _jsx(Text, { color: region === "us" ? ACCENT : DIM, bold: region === "us", children: "US" }), _jsx(Text, { color: DIM, children: " (t to switch)" })] }), region === "in" ? (regime?.available ? (_jsxs(Box, { children: [_jsx(Text, { color: DIM, children: "market regime " }), _jsx(Text, { color: regimeColor(regime.regime), bold: true, children: regime.regime }), _jsxs(Text, { color: DIM, children: [" ", "(log-SR ", regime.log_sr_now.toFixed(2), ", last change", " ", regime.trading_days_since_last_change, "d ago)"] }), spark && (_jsxs(Text, { color: regimeColor(regime.regime), children: [" ", spark] })), _jsxs(Text, { color: DIM, children: [" \u00B7 ", regime.as_of] })] })) : regimeError || regime?.available === false ? (_jsx(Text, { color: DIM, children: "market regime unavailable right now" })) : null) : usBoard ? (_jsxs(Text, { color: DIM, children: ["top ", usBoard.board.length, " of ", usBoard.universe.banks_scored, " FDIC banks (\u2265$1B assets) \u00B7 undertow score = within-quarter percentile \u00B7 quarter ", usBoard.as_of] })) : null] }));
56
56
  }
57
- function InRow({ row, selected, cols, }) {
58
- const band = riskBand(row);
59
- const move = movement(row.movement.delta_pd_12m);
60
- return (_jsxs(Box, { children: [_jsx(Text, { color: selected ? ACCENT : DIM, children: selected ? "❯ " : " " }), _jsx(Text, { color: bandColor[band], bold: selected, inverse: selected, children: cell(row.name, cols.name) }), _jsx(Text, { color: DIM, children: cell(row.inst_type, cols.type) }), _jsx(Text, { color: bandColor[band], children: cell(row.grade, cols.grade) }), _jsx(Text, { children: cell(String(row.score), cols.score) }), _jsx(Text, { color: bandColor[band], children: cell(pct(row.hazard.pd_12m), cols.pd) }), _jsx(Text, { color: moveColor(move.dir), children: cell(move.text, cols.move) }), _jsx(Text, { color: fundColor(row.funding.band), children: fundingLabel(row.funding.band) })] }));
57
+ function InRow({ row, selected, cols, showTiers, }) {
58
+ // Bands, grades and their colours only while the API publishes tiers.
59
+ const detailed = hasRadarDetail(row);
60
+ const color = showTiers && detailed ? bandColor[riskBand(row)] : undefined;
61
+ const move = movement(probabilityChange(row));
62
+ return (_jsxs(Box, { children: [_jsx(Text, { color: selected ? ACCENT : DIM, children: selected ? "❯ " : " " }), _jsx(Text, { color: color, bold: selected, inverse: selected, children: cell(row.name, cols.name) }), _jsx(Text, { color: DIM, children: cell(row.inst_type, cols.type) }), showTiers && _jsx(Text, { color: color, children: cell(row.grade ?? "", cols.grade) }), _jsx(Text, { children: cell(String(row.score), cols.score) }), _jsx(Text, { color: color, children: cell(pct(probabilities(row).pd_12m), cols.pd) }), _jsx(Text, { color: moveColor(move.dir), children: cell(move.text, cols.move) }), _jsx(Text, { color: detailed ? fundColor(row.funding.band) : DIM, children: fundingSummary(row) })] }));
61
63
  }
62
64
  function UsRow({ row, rank, selected, cols, }) {
63
65
  const band = usRiskBandByRank(rank);
@@ -70,6 +72,8 @@ function NewsLine({ news }) {
70
72
  return _jsx(Text, { color: DIM, children: "news watch loading\u2026" });
71
73
  if (news === "error")
72
74
  return _jsx(Text, { color: DIM, children: "news watch unavailable" });
75
+ if ("not_computed" in news)
76
+ return _jsxs(Text, { color: DIM, children: ["news watch: ", news.not_computed] });
73
77
  const stressColor = news.news_stress >= 50
74
78
  ? bandColor.red
75
79
  : news.news_stress >= 20
@@ -77,9 +81,14 @@ function NewsLine({ news }) {
77
81
  : bandColor.green;
78
82
  return (_jsxs(Box, { flexDirection: "column", children: [_jsxs(Text, { children: [_jsx(Text, { color: DIM, children: "news watch stress " }), _jsx(Text, { color: stressColor, bold: true, children: news.news_stress.toFixed(1) }), _jsxs(Text, { color: DIM, children: [" ", "tone ", news.tone_recent.toFixed(2), " \u00B7 distress share", " ", pct(news.distress_share), " \u00B7 coverage ", news.coverage] })] }), news.basis.slice(0, 2).map((b, i) => (_jsxs(Text, { color: DIM, children: ["\u00B7 ", b] }, i)))] }));
79
83
  }
80
- function InDetail({ row, news, }) {
81
- const band = riskBand(row);
82
- return (_jsxs(Box, { flexDirection: "column", borderStyle: "round", borderColor: ACCENT, paddingX: 1, children: [_jsxs(Box, { justifyContent: "space-between", gap: 2, children: [_jsx(Text, { bold: true, color: bandColor[band], children: row.name }), _jsxs(Text, { color: DIM, children: [row.inst_type, " \u00B7 ", row.quarter, " \u00B7 data as of ", row.as_of, " (", row.age_months, "mo old)"] })] }), _jsxs(Text, { children: [_jsx(Text, { color: DIM, children: "grade " }), _jsx(Text, { bold: true, children: row.grade }), _jsx(Text, { color: DIM, children: " score " }), _jsx(Text, { bold: true, children: row.score }), _jsx(Text, { color: DIM, children: " PD 12/24/36m " }), _jsxs(Text, { bold: true, color: bandColor[band], children: [pct(row.hazard.pd_12m), " / ", pct(row.hazard.pd_24m), " /", " ", pct(row.hazard.pd_36m)] })] }), row.hazard.basis.length > 0 && (_jsxs(Text, { color: DIM, children: ["hazard basis: ", row.hazard.basis.join("; ")] })), _jsxs(Text, { children: [_jsx(Text, { color: DIM, children: "funding " }), _jsx(Text, { color: fundColor(row.funding.band), children: fundingLabel(row.funding.band) }), row.funding.flags.length > 0 && (_jsxs(Text, { color: bandColor.amber, children: [" \u2691 ", row.funding.flags.join(", ")] })), row.funding.basis.length > 0 && (_jsxs(Text, { color: DIM, children: [" \u2014 ", row.funding.basis.join("; ")] }))] }), _jsxs(Text, { children: [_jsx(Text, { color: DIM, children: "PCA " }), _jsx(Text, { children: row.pca.status }), row.pca.breaches.length > 0 && (_jsxs(Text, { color: bandColor.red, children: [" breaches: ", row.pca.breaches.join(", ")] }))] }), _jsxs(Text, { children: [_jsx(Text, { color: DIM, children: "forensics " }), row.forensics.fired ? (_jsxs(Text, { color: bandColor.red, children: ["FIRED: ", row.forensics.indicators.join(", ")] })) : (_jsx(Text, { color: bandColor.green, children: "clear" }))] }), row.market && !row.market.stale && (_jsxs(Text, { children: [_jsx(Text, { color: DIM, children: "market lens DD " }), _jsx(Text, { bold: true, children: row.market.dd.toFixed(2) }), _jsx(Text, { color: DIM, children: " Merton PD 1y " }), _jsx(Text, { bold: true, children: pct(row.market.pd_merton_1y) })] })), _jsx(NewsLine, { news: news })] }));
84
+ function InDetail({ row, news, showTiers, }) {
85
+ const detailed = hasRadarDetail(row);
86
+ const color = showTiers && detailed ? bandColor[riskBand(row)] : undefined;
87
+ const pd = probabilities(row);
88
+ return (_jsxs(Box, { flexDirection: "column", borderStyle: "round", borderColor: ACCENT, paddingX: 1, children: [_jsxs(Box, { justifyContent: "space-between", gap: 2, children: [_jsx(Text, { bold: true, color: color, children: row.name }), _jsxs(Text, { color: DIM, children: [row.inst_type, " \u00B7 ", row.quarter, " \u00B7 data as of ", row.as_of, detailed && ` (${row.age_months}mo old)`] })] }), _jsxs(Text, { children: [showTiers && _jsx(Text, { color: DIM, children: "grade " }), showTiers && _jsx(Text, { bold: true, children: row.grade ?? "" }), _jsx(Text, { color: DIM, children: showTiers ? " score " : "score " }), _jsx(Text, { bold: true, children: row.score }), _jsx(Text, { color: DIM, children: showTiers ? " PD 12/24/36m " : " PD 12/24/36m, research only " }), _jsxs(Text, { bold: true, color: color, children: [pct(pd.pd_12m), " / ", pct(pd.pd_24m), " / ", pct(pd.pd_36m)] })] }), detailed ? _jsx(InRiskInputs, { row: row }) : (_jsxs(Box, { flexDirection: "column", children: [_jsxs(Text, { children: ["Funding ", fundingSummary(row), " \u00B7 RBI zone ", row.rbi_zone ?? "n/a"] }), _jsx(Text, { color: DIM, children: "Detailed risk inputs are withheld in the public summary." })] })), _jsx(NewsLine, { news: news })] }));
89
+ }
90
+ function InRiskInputs({ row }) {
91
+ return (_jsxs(_Fragment, { children: [row.hazard.basis.length > 0 && (_jsxs(Text, { color: DIM, children: ["hazard basis: ", row.hazard.basis.join("; ")] })), _jsxs(Text, { children: [_jsx(Text, { color: DIM, children: "funding " }), _jsx(Text, { color: fundColor(row.funding.band), children: fundingLabel(row.funding.band) }), row.funding.flags.length > 0 && (_jsxs(Text, { color: bandColor.amber, children: [" \u2691 ", row.funding.flags.join(", ")] })), row.funding.basis.length > 0 && (_jsxs(Text, { color: DIM, children: [" \u00B7 ", row.funding.basis.join("; ")] }))] }), _jsxs(Text, { children: [_jsx(Text, { color: DIM, children: "PCA " }), _jsx(Text, { children: row.pca.status }), row.pca.breaches.length > 0 && (_jsxs(Text, { color: bandColor.red, children: [" breaches: ", row.pca.breaches.join(", ")] }))] }), _jsxs(Text, { children: [_jsx(Text, { color: DIM, children: "forensics " }), row.forensics.fired ? (_jsxs(Text, { color: bandColor.red, children: ["FIRED: ", row.forensics.indicators.join(", ")] })) : (_jsx(Text, { color: bandColor.green, children: "clear" }))] }), row.market && !row.market.stale && (_jsxs(Text, { children: [_jsx(Text, { color: DIM, children: "market lens DD " }), _jsx(Text, { bold: true, children: row.market.dd.toFixed(2) }), _jsx(Text, { color: DIM, children: " Merton PD 1y " }), _jsx(Text, { bold: true, children: pct(row.market.pd_merton_1y) })] }))] }));
83
92
  }
84
93
  function UsDetail({ row, rank }) {
85
94
  const band = usRiskBandByRank(rank);
@@ -167,7 +176,7 @@ export default function App({ initialRegion = "in" }) {
167
176
  });
168
177
  }, []);
169
178
  const load = useCallback((r = region) => (r === "in" ? loadIn() : loadUs()), [region, loadIn, loadUs]);
170
- // Initial load only — later loads are user- or timer-driven.
179
+ // Initial load only: later loads are user- or timer-driven.
171
180
  useEffect(() => {
172
181
  load(region);
173
182
  }, []);
@@ -277,16 +286,18 @@ export default function App({ initialRegion = "in" }) {
277
286
  const cols = useMemo(() => computeCols(width), [width]);
278
287
  const usCols = useMemo(() => computeUSCols(width), [width]);
279
288
  const hasData = region === "in" ? board !== null : usBoard !== null;
289
+ const showTiers = tiersPublished(board);
280
290
  const regionStale = staleFrom[region];
281
291
  const sortMode = region === "in" ? inSort : usSort;
282
- const chrome = 7 + (showDetail ? 13 : 0) + (regionStale ? 1 : 0);
292
+ const pausedNotice = region === "in" && board !== null && !showTiers ? 1 : 0;
293
+ const chrome = 7 + (showDetail ? 13 : 0) + (regionStale ? 1 : 0) + pausedNotice;
283
294
  const visible = Math.max(3, height - chrome);
284
295
  const vp = viewport(rowCount, visible, cursor);
285
- return (_jsxs(Box, { flexDirection: "column", paddingX: 1, children: [_jsx(Header, { region: region, regime: regime, regimeError: regimeError, usBoard: usBoard, width: width }), regionStale && (_jsxs(Text, { color: bandColor.amber, children: ["\u26A0 offline \u2014 showing cached board from", " ", describeAge(ageMinutes(regionStale)), " (retrying every 5m, r to retry now)"] })), error && (_jsxs(Text, { color: bandColor.red, children: ["\u2716 ", error, " \u2014 press r to retry, or set LIQUILENS_API / HTTPS_PROXY"] })), loading && !hasData && _jsx(Text, { color: DIM, children: "\u283F loading live board\u2026" }), hasData && (_jsxs(Box, { flexDirection: "column", marginTop: 1, children: [region === "in" ? (_jsxs(Text, { color: DIM, bold: true, children: [" ", cell("INSTITUTION", cols.name), cell("TYPE", cols.type), cell("GRADE", cols.grade), cell("SCORE", cols.score), cell("PD 12M", cols.pd), cell("Δ PD", cols.move), "FUNDING"] })) : (_jsxs(Text, { color: DIM, bold: true, children: [" ", cell("BANK", usCols.bank), cell("STATE", usCols.state), cell("ASSETS", usCols.assets), cell("SCORE", usCols.score), cell("NONCURR", usCols.noncurr), cell("UNINSURED", usCols.uninsured), "NDFI/T1"] })), vp.above > 0 && _jsxs(Text, { color: DIM, children: [" ", "\u2191 ", vp.above, " more"] }), region === "in"
296
+ return (_jsxs(Box, { flexDirection: "column", paddingX: 1, children: [_jsx(Header, { region: region, regime: regime, regimeError: regimeError, usBoard: usBoard, width: width }), regionStale && (_jsxs(Text, { color: bandColor.amber, children: ["\u26A0 offline: showing cached board from", " ", describeAge(ageMinutes(regionStale)), " (retrying every 5m, r to retry now)"] })), error && (_jsxs(Text, { color: bandColor.red, children: ["\u2716 ", error, "; press r to retry, or set LIQUILENS_API / HTTPS_PROXY"] })), loading && !hasData && _jsx(Text, { color: DIM, children: "\u283F loading live board\u2026" }), region === "in" && board !== null && !showTiers && (_jsx(Text, { color: bandColor.amber, children: pausedLine(board) })), hasData && (_jsxs(Box, { flexDirection: "column", marginTop: 1, children: [region === "in" ? (_jsxs(Text, { color: DIM, bold: true, children: [" ", cell("INSTITUTION", cols.name), cell("TYPE", cols.type), showTiers && cell("GRADE", cols.grade), cell("SCORE", cols.score), cell("PD 12M", cols.pd), cell("Δ PD", cols.move), "FUNDING"] })) : (_jsxs(Text, { color: DIM, bold: true, children: [" ", cell("BANK", usCols.bank), cell("STATE", usCols.state), cell("ASSETS", usCols.assets), cell("SCORE", usCols.score), cell("NONCURR", usCols.noncurr), cell("UNINSURED", usCols.uninsured), "NDFI/T1"] })), vp.above > 0 && _jsxs(Text, { color: DIM, children: [" ", "\u2191 ", vp.above, " more"] }), region === "in"
286
297
  ? inRows
287
298
  .slice(vp.start, vp.end)
288
- .map((row, i) => (_jsx(InRow, { row: row, selected: vp.start + i === cursor, cols: cols }, row.slug)))
299
+ .map((row, i) => (_jsx(InRow, { row: row, selected: vp.start + i === cursor, cols: cols, showTiers: showTiers }, row.slug)))
289
300
  : usRows
290
301
  .slice(vp.start, vp.end)
291
- .map(({ row, rank }, i) => (_jsx(UsRow, { row: row, rank: rank, selected: vp.start + i === cursor, cols: usCols }, row.cert))), vp.below > 0 && _jsxs(Text, { color: DIM, children: [" ", "\u2193 ", vp.below, " more"] }), rowCount === 0 && (_jsxs(Text, { color: DIM, children: [" ", "no institutions match \"", query, "\""] })), showDetail && region === "in" && selectedIn && (_jsx(Box, { marginTop: 1, children: _jsx(InDetail, { row: selectedIn, news: news }) })), showDetail && region === "us" && usRows[cursor] && (_jsx(Box, { marginTop: 1, children: _jsx(UsDetail, { row: usRows[cursor].row, rank: usRows[cursor].rank }) }))] })), (filterMode || query) && (_jsxs(Text, { children: [_jsx(Text, { color: ACCENT, children: "/" }), _jsx(Text, { children: query }), filterMode && _jsx(Text, { color: ACCENT, children: "\u258F" }), _jsxs(Text, { color: DIM, children: [" ", "(", rowCount, " match", rowCount === 1 ? "" : "es", filterMode ? ", ⏎ keep · esc clear" : ", esc clear", ")"] })] })), _jsx(Box, { marginTop: 1, children: _jsxs(Text, { color: DIM, wrap: "truncate", children: ["\u2191\u2193 select \u00B7 \u23CE detail \u00B7 t region \u00B7 s sort (", sortMode, ") \u00B7 / filter \u00B7 r refresh \u00B7 q quit", region === "in" && board ? ` · as of ${board.as_of}` : "", region === "us" && usBoard ? ` · quarter ${usBoard.as_of}` : "", " · liquilens.in", loading && hasData ? " · refreshing…" : ""] }) })] }));
302
+ .map(({ row, rank }, i) => (_jsx(UsRow, { row: row, rank: rank, selected: vp.start + i === cursor, cols: usCols }, row.cert))), vp.below > 0 && _jsxs(Text, { color: DIM, children: [" ", "\u2193 ", vp.below, " more"] }), rowCount === 0 && (_jsxs(Text, { color: DIM, children: [" ", "no institutions match \"", query, "\""] })), showDetail && region === "in" && selectedIn && (_jsx(Box, { marginTop: 1, children: _jsx(InDetail, { row: selectedIn, news: news, showTiers: showTiers }) })), showDetail && region === "us" && usRows[cursor] && (_jsx(Box, { marginTop: 1, children: _jsx(UsDetail, { row: usRows[cursor].row, rank: usRows[cursor].rank }) }))] })), (filterMode || query) && (_jsxs(Text, { children: [_jsx(Text, { color: ACCENT, children: "/" }), _jsx(Text, { children: query }), filterMode && _jsx(Text, { color: ACCENT, children: "\u258F" }), _jsxs(Text, { color: DIM, children: [" ", "(", rowCount, " match", rowCount === 1 ? "" : "es", filterMode ? ", ⏎ keep · esc clear" : ", esc clear", ")"] })] })), _jsx(Box, { marginTop: 1, children: _jsxs(Text, { color: DIM, wrap: "truncate", children: ["\u2191\u2193 select \u00B7 \u23CE detail \u00B7 t region \u00B7 s sort (", sortMode, ") \u00B7 / filter \u00B7 r refresh \u00B7 q quit", region === "in" && board ? ` · as of ${board.as_of}` : "", region === "us" && usBoard ? ` · quarter ${usBoard.as_of}` : "", " · liquilens.in", loading && hasData ? " · refreshing…" : ""] }) })] }));
292
303
  }
package/dist/api.js CHANGED
@@ -25,6 +25,15 @@ const hasProxyEnv = Boolean(process.env.HTTPS_PROXY ??
25
25
  const dispatcher = hasProxyEnv
26
26
  ? new EnvHttpProxyAgent({ connect: CONNECT_OPTS })
27
27
  : new Agent({ connect: CONNECT_OPTS });
28
+ export function hasRadarDetail(row) {
29
+ return "hazard" in row;
30
+ }
31
+ export function probabilities(row) {
32
+ return hasRadarDetail(row) ? row.hazard : row;
33
+ }
34
+ export function probabilityChange(row) {
35
+ return hasRadarDetail(row) ? row.movement.delta_pd_12m : row.delta_pd_12m;
36
+ }
28
37
  const RETRIES = 3;
29
38
  const ATTEMPT_TIMEOUT_MS = 15_000;
30
39
  function sleep(ms) {
package/dist/cli.js CHANGED
@@ -9,13 +9,13 @@ import { loadCached, saveCached, ageMinutes, describeAge, } from "./cache.js";
9
9
  import { renderEvidenceJson, renderEvidenceRecord, renderJson, renderPlain, worstBand, } from "./plain.js";
10
10
  import { bandAtLeast } from "./riskBands.js";
11
11
  // Some networks blackhole IPv6 (Node's fetch hangs while curl works);
12
- // prefer IPv4 first — undici's autoSelectFamily in api.ts covers the rest.
12
+ // prefer IPv4 first; undici's autoSelectFamily in api.ts covers the rest.
13
13
  dns.setDefaultResultOrder("ipv4first");
14
14
  // A crash should read like a message, not a stack dump, and must not leave
15
15
  // the terminal in raw mode (Ink's unmount handles restore on normal exits).
16
16
  function crash(err) {
17
17
  const msg = err instanceof Error ? err.message : String(err);
18
- process.stderr.write(`\nliquilens: unexpected error — ${msg}\n`);
18
+ process.stderr.write(`\nliquilens: unexpected error: ${msg}\n`);
19
19
  process.stderr.write("Run again with --plain for a minimal path, or check --help.\n");
20
20
  process.exit(1);
21
21
  }
@@ -24,7 +24,7 @@ process.on("unhandledRejection", crash);
24
24
  const require = createRequire(import.meta.url);
25
25
  const { version } = require("../package.json");
26
26
  setClientVersion(version);
27
- const HELP = `liquilens ${version} — LiquiLens Failure Radar in your terminal
27
+ const HELP = `liquilens ${version}: LiquiLens Failure Radar in your terminal
28
28
 
29
29
  Usage: liquilens [options]
30
30
 
@@ -40,8 +40,9 @@ Options:
40
40
  --plain one-shot ANSI-free table (default when stdout is not a TTY)
41
41
  --json one-shot machine-readable JSON dump
42
42
  --fail-on <band> exit 3 if any institution is at/above band (amber|red).
43
- India board only — the US board is a relative leaderboard.
43
+ India board only; the US board is a relative leaderboard.
44
44
  Implies --plain unless --json is given. For cron/CI alerts.
45
+ Exits 4 if tiers are paused or detailed inputs are unavailable.
45
46
  --api <url> API host (default ${DEFAULT_API}; env LIQUILENS_API)
46
47
  -h, --help show this help
47
48
  -v, --version show version
@@ -53,7 +54,8 @@ Environment:
53
54
  Keys (interactive): ↑↓/jk select · ⏎ detail · t region · s sort · / filter ·
54
55
  r refresh · q quit
55
56
  Exit codes: 0 ok · 1 no data (API down and no cache) · 2 bad usage ·
56
- 3 --fail-on threshold breached`;
57
+ 3 --fail-on threshold breached ·
58
+ 4 --fail-on could not evaluate the board (tiers paused or detailed inputs unavailable)`;
57
59
  function fail(msg, code) {
58
60
  process.stderr.write(`liquilens: ${msg}\n`);
59
61
  process.exit(code);
@@ -199,8 +201,16 @@ else {
199
201
  ? process.stdout.columns
200
202
  : 110;
201
203
  console.log(parsed.mode === "json" ? renderJson(snap) : renderPlain(snap, width));
202
- if (parsed.failOn && bandAtLeast(worstBand(snap), parsed.failOn)) {
203
- process.stderr.write(`liquilens: --fail-on ${parsed.failOn} breached\n`);
204
- process.exit(3);
204
+ if (parsed.failOn) {
205
+ const worst = worstBand(snap);
206
+ if (worst === null) {
207
+ // Never a silent pass: a paused board is not a calm board.
208
+ process.stderr.write(`liquilens: --fail-on ${parsed.failOn} not evaluated: published tiers and detailed risk inputs are required\n`);
209
+ process.exit(4);
210
+ }
211
+ if (bandAtLeast(worst, parsed.failOn)) {
212
+ process.stderr.write(`liquilens: --fail-on ${parsed.failOn} breached\n`);
213
+ process.exit(3);
214
+ }
205
215
  }
206
216
  }
package/dist/format.js CHANGED
@@ -1,8 +1,9 @@
1
- export const pct = (x) => `${(x * 100).toFixed(2)}%`;
1
+ import { hasRadarDetail, probabilities, probabilityChange } from "./api.js";
2
+ export const pct = (x) => x == null ? "n/a" : `${(x * 100).toFixed(2)}%`;
2
3
  /** Fraction -> "17.0%", tolerating missing values. */
3
- export const pct1 = (x) => x == null ? "—" : `${(x * 100).toFixed(1)}%`;
4
+ export const pct1 = (x) => x == null ? "n/a" : `${(x * 100).toFixed(1)}%`;
4
5
  /** Value already in percent units (FDIC noncurrent_ratio: 4.0 = 4%). */
5
- export const rawPct = (x) => x == null ? "—" : `${x.toFixed(2)}%`;
6
+ export const rawPct = (x) => x == null ? "n/a" : `${x.toFixed(2)}%`;
6
7
  /** Assets reported in USD thousands -> "$15.2B" / "$980M". */
7
8
  export function fmtAssets(usdK) {
8
9
  const usd = usdK * 1_000;
@@ -29,6 +30,8 @@ export function sparkline(values, width) {
29
30
  .join("");
30
31
  }
31
32
  export function movement(delta) {
33
+ if (delta == null)
34
+ return { text: "n/a", dir: "flat" };
32
35
  if (delta > 0.0005)
33
36
  return { text: `▲ ${pct(delta)}`, dir: "up" };
34
37
  if (delta < -0.0005)
@@ -38,6 +41,11 @@ export function movement(delta) {
38
41
  export function fundingLabel(band) {
39
42
  return band === "not_scored" ? "n/a" : band;
40
43
  }
44
+ export function fundingSummary(row) {
45
+ if (hasRadarDetail(row))
46
+ return fundingLabel(row.funding.band);
47
+ return row.funding_index == null ? "n/a" : `index ${row.funding_index}`;
48
+ }
41
49
  /**
42
50
  * Column widths for a given terminal width. The name column absorbs all
43
51
  * slack between a floor (narrow terminals truncate names) and a ceiling
@@ -52,7 +60,7 @@ export function computeCols(termWidth) {
52
60
  const name = Math.max(18, Math.min(40, termWidth - used));
53
61
  return { name, ...fixed };
54
62
  }
55
- /** Truncate to width (with ellipsis) then pad — cells never overflow. */
63
+ /** Truncate to width (with ellipsis) then pad, so cells never overflow. */
56
64
  export function cell(text, width) {
57
65
  if (text.length > width - 1) {
58
66
  return `${text.slice(0, Math.max(0, width - 2))}… `.padEnd(width);
@@ -64,10 +72,10 @@ export function sortRows(rows, mode) {
64
72
  const sorted = [...rows];
65
73
  switch (mode) {
66
74
  case "risk":
67
- sorted.sort((a, b) => b.hazard.pd_12m - a.hazard.pd_12m);
75
+ sorted.sort((a, b) => (probabilities(b).pd_12m ?? -Infinity) - (probabilities(a).pd_12m ?? -Infinity));
68
76
  break;
69
77
  case "movement":
70
- sorted.sort((a, b) => b.movement.delta_pd_12m - a.movement.delta_pd_12m);
78
+ sorted.sort((a, b) => (probabilityChange(b) ?? -Infinity) - (probabilityChange(a) ?? -Infinity));
71
79
  break;
72
80
  case "score":
73
81
  sorted.sort((a, b) => a.score - b.score);
package/dist/plain.js CHANGED
@@ -1,17 +1,22 @@
1
- import { cell, computeCols, computeUSCols, fmtAssets, fundingLabel, movement, pct, pct1, rawPct, sortRows, sortUSRows, } from "./format.js";
2
- import { riskBand, usRiskBandByRank } from "./riskBands.js";
1
+ import { hasRadarDetail, probabilities, probabilityChange } from "./api.js";
2
+ import { cell, computeCols, computeUSCols, fmtAssets, fundingSummary, movement, pct, pct1, rawPct, sortRows, sortUSRows, } from "./format.js";
3
+ import { pausedLine, riskBand, tiersPublished, usRiskBandByRank } from "./riskBands.js";
3
4
  function staleLine(stale) {
4
5
  return stale
5
- ? [`WARNING: live API unreachable — cached data from ${stale.description}`]
6
+ ? [`WARNING: live API unreachable; cached data from ${stale.description}`]
6
7
  : [];
7
8
  }
8
- /** Worst risk band on the board — drives --fail-on exit codes. */
9
+ /** Worst risk band on the board, which drives --fail-on exit codes. Null for
10
+ * India while review tiers are paused: there is no band to compare. */
9
11
  export function worstBand(snap) {
10
12
  if (snap.region === "us") {
11
13
  // US board is a relative leaderboard; callers must not use it for
12
14
  // absolute alerting (enforced at arg-parse time).
13
15
  return snap.board.board.length > 0 ? "red" : "green";
14
16
  }
17
+ if (!tiersPublished(snap.board) || !snap.board.rows.length || !snap.board.rows.every(hasRadarDetail)) {
18
+ return null;
19
+ }
15
20
  let worst = "green";
16
21
  for (const row of snap.board.rows) {
17
22
  const b = riskBand(row);
@@ -29,32 +34,40 @@ export function renderPlain(snap, width = 100) {
29
34
  const cols = computeCols(width);
30
35
  const lines = [];
31
36
  lines.push(`LIQUILENS Failure Radar · INDIA · board as of ${snap.board.as_of}`);
32
- if (snap.regime) {
37
+ if (snap.regime?.available) {
33
38
  lines.push(`market regime ${snap.regime.regime} (log-SR ${snap.regime.log_sr_now.toFixed(2)}, ` +
34
39
  `last change ${snap.regime.trading_days_since_last_change}d ago) · ${snap.regime.as_of}`);
35
40
  }
36
41
  lines.push(...staleLine(snap.stale));
42
+ const published = tiersPublished(snap.board);
43
+ if (!published)
44
+ lines.push(pausedLine(snap.board));
45
+ if (snap.board.rows.some((row) => !hasRadarDetail(row))) {
46
+ lines.push("Rows in the public summary show a funding index. Detailed risk inputs are withheld.");
47
+ }
37
48
  lines.push("");
38
49
  lines.push(" " +
39
50
  cell("INSTITUTION", cols.name) +
40
51
  cell("TYPE", cols.type) +
41
- cell("GRADE", cols.grade) +
52
+ (published ? cell("GRADE", cols.grade) : "") +
42
53
  cell("SCORE", cols.score) +
43
- cell("PD 12M", cols.pd) +
54
+ cell(published ? "PD 12M" : "PD 12M*", cols.pd) +
44
55
  cell("Δ PD", cols.move) +
45
- "FUNDING BAND");
56
+ (published ? "FUNDING BAND" : "FUNDING"));
46
57
  for (const row of sortRows(snap.board.rows, "risk")) {
47
- const band = riskBand(row);
48
58
  lines.push(" " +
49
59
  cell(row.name, cols.name) +
50
60
  cell(row.inst_type, cols.type) +
51
- cell(row.grade, cols.grade) +
61
+ (published ? cell(row.grade ?? "", cols.grade) : "") +
52
62
  cell(String(row.score), cols.score) +
53
- cell(pct(row.hazard.pd_12m), cols.pd) +
54
- cell(movement(row.movement.delta_pd_12m).text, cols.move) +
55
- cell(fundingLabel(row.funding.band), 9) +
56
- band.toUpperCase());
63
+ cell(pct(probabilities(row).pd_12m), cols.pd) +
64
+ cell(movement(probabilityChange(row)).text, cols.move) +
65
+ (published
66
+ ? fundingSummary(row).padEnd(12) + (hasRadarDetail(row) ? riskBand(row).toUpperCase() : "n/a")
67
+ : fundingSummary(row)));
57
68
  }
69
+ if (!published)
70
+ lines.push("* research only while review tiers are paused");
58
71
  lines.push("");
59
72
  lines.push(`${snap.board.rows.length} institutions · liquilens.in`);
60
73
  return lines.join("\n");
@@ -92,6 +105,15 @@ function renderPlainUS(snap, width) {
92
105
  lines.push("score = within-quarter percentile rank (relative leaderboard, not a PD) · liquilens.in");
93
106
  return lines.join("\n");
94
107
  }
108
+ /** A row as research only: no grade letter even from an older cached board. */
109
+ function researchRow(r) {
110
+ const withoutGrade = (o) => Object.fromEntries(Object.entries(o).filter(([k]) => k !== "grade" && k !== "tier"));
111
+ return {
112
+ ...withoutGrade(r),
113
+ ...(hasRadarDetail(r) ? { hazard: withoutGrade(r.hazard) } : {}),
114
+ pd_research_only: true,
115
+ };
116
+ }
95
117
  /** Machine-readable dump for `--json`. */
96
118
  export function renderJson(snap) {
97
119
  if (snap.region === "us") {
@@ -105,15 +127,20 @@ export function renderJson(snap) {
105
127
  rows: rows.map((r, i) => ({ ...r, risk_band: usRiskBandByRank(i) })),
106
128
  }, null, 2);
107
129
  }
130
+ const published = tiersPublished(snap.board);
108
131
  return JSON.stringify({
109
132
  region: "in",
110
133
  as_of: snap.board.as_of,
111
134
  stale: snap.stale ? { cached_at: snap.stale.savedAt } : null,
112
135
  market_regime: snap.regime,
113
- rows: sortRows(snap.board.rows, "risk").map((r) => ({
114
- ...r,
115
- risk_band: riskBand(r),
116
- })),
136
+ tier_publication: snap.board.tier_publication ?? null,
137
+ ...(snap.board.access ? { access: snap.board.access } : {}),
138
+ ...(snap.board.historical_evidence ? { historical_evidence: snap.board.historical_evidence } : {}),
139
+ rows: sortRows(snap.board.rows, "risk").map((row) => {
140
+ if (!published)
141
+ return researchRow(row);
142
+ return hasRadarDetail(row) ? { ...row, risk_band: riskBand(row) } : row;
143
+ }),
117
144
  }, null, 2);
118
145
  }
119
146
  function evidenceFlag(value) {
package/dist/riskBands.js CHANGED
@@ -1,3 +1,18 @@
1
+ /**
2
+ * India risk bands, grade letters and their colours are shown only while the
3
+ * API says review tiers are published. A paused state, or an older payload
4
+ * that does not say, renders research-only probabilities instead.
5
+ */
6
+ export function tiersPublished(board) {
7
+ return board?.tier_publication?.state === "published";
8
+ }
9
+ /** One line stating the pause, in the API's own words when it sends them. */
10
+ export function pausedLine(board) {
11
+ const pub = board?.tier_publication;
12
+ const since = pub?.since ? ` since ${pub.since}` : "";
13
+ return `review tiers paused${since}: ${pub?.label ?? "tiers paused, research only"}; ` +
14
+ "no grade, band or colour is shown and PDs are research only";
15
+ }
1
16
  /**
2
17
  * Maps a board row to the colour band used for the whole row in the terminal.
3
18
  *
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "liquilens",
3
- "version": "0.5.1",
4
- "description": "LiquiLens Failure Radar in your terminal — live early-warning board for Indian institutions and FDIC-scored US banks, from public data",
3
+ "version": "0.5.3",
4
+ "description": "LiquiLens Failure Radar in your terminal: a live early-warning board for Indian institutions and FDIC-scored US banks, from public data",
5
5
  "license": "SEE LICENSE IN LICENSE.md",
6
6
  "homepage": "https://liquilens.in/developers/",
7
7
  "repository": {
@@ -36,7 +36,7 @@
36
36
  "scripts": {
37
37
  "build": "tsc",
38
38
  "dev": "tsc && node dist/cli.js",
39
- "test": "tsc && node --test dist/cache.test.js dist/format.test.js dist/record.test.js dist/riskBands.test.js dist/us.test.js",
39
+ "test": "tsc && node --test dist/cache.test.js dist/format.test.js dist/paused.test.js dist/record.test.js dist/riskBands.test.js dist/us.test.js",
40
40
  "prepare": "tsc"
41
41
  },
42
42
  "publishConfig": {
@@ -49,7 +49,7 @@
49
49
  "dependencies": {
50
50
  "ink": "^5.2.0",
51
51
  "react": "^18.3.1",
52
- "undici": "^6.29.0"
52
+ "undici": "^6.29.1"
53
53
  },
54
54
  "devDependencies": {
55
55
  "@types/node": "^22.10.0",