Repository navigation
v2.5.2 - three answers about replay, and a green CI
The replay guard now has three answers, not two
2.5.1 fixed the read: isReplayStarted() returns a WatchedValue, and 2.5.0's !!state on an object is always true, so the guard refused every timeframe change on a normal chart. Unwrapping .value() was correct.
What it left was a two-value answer to a three-value question. An object with no recognised accessor was still truthy, so a future rename of .value() would refuse every timeframe change again and say "replay is running" while doing it — an assertion about a state nobody read.
unknown is its own answer now:
| state | outcome | message |
|---|---|---|
| active | refuse | "while replay is running" |
| inactive | proceed | |
| unknown | refuse | "could not determine whether replay is running", names the shape it saw |
Guarded is still the right outcome for unknown, because a live replay session slipping through is worse than a blocked timeframe change. It is now a separate answer, so the message is true either way.
.get() and a plain value property are recognised too. And one distinction worth its own line: a probe that could not run (no chart, no CDP) means there is no replay session to protect, so it proceeds. An answer we cannot read means TradingView changed under us, so it blocks.
Windows CI had been red for six runs, and it was a test
tests/cli_mcp_parity.test.js imported the CLI command modules by absolute path. On Windows a dynamic import of C:\... throws ERR_UNSUPPORTED_ESM_URL_SCHEME, so its before() hook died and all 14 tests returned cancelledByParent on both Windows runners. That reports as "fail 0, cancelled 14", which is why a green-looking summary still exited 1. It uses pathToFileURL now.
Dependency audit
fast-uri (high) and qs (moderate), both transitive through @modelcontextprotocol/sdk, were failing npm audit --audit-level=high on every run. Lockfile bumped to fast-uri@3.1.7 and qs@6.16.0; the SDK is unchanged at 1.29.0. Zero vulnerabilities now.
930/930, lint clean, all six CI jobs green across Linux, macOS and Windows on Node 18 and 22.