Repository navigation
Commit a8d3dfc
chore: remove a scratch probe that git add -A swept into the 2.5.3 commit
vis-probe.mjs was a throwaway CDP script written to the repo root to diagnose
the screenshot regression: it read document.visibilityState on every live
TradingView page, and its output is what proved the guard was firing on a
working chart. The command that was supposed to delete it was killed mid-run
for memory, and the next `git add -A` put it in the release commit.
SCOPE, MEASURED RATHER THAN ASSUMED
in the v2.5.3 commit and tag YES
in the published npm tarball NO - the package.json files whitelist
has no root-level *.mjs entry, verified
against an installed copy of 2.5.3
So no user received it. It is a public-repo tidiness problem, not a shipped
one. The tag is left alone: history that has been published stays published.
WHY THE ROOT IS THE ONE PLACE THIS HIDES
Not under src/ or tests/ where anyone would look, and not caught by the
packaging whitelist that would otherwise have flagged it. `git add -A` sees it,
`npm pack` does not, so the only signal was reading git status carefully, and I
did not.
Two guards, because one of them is the one I would also forget:
- .gitignore now covers the scratch-probe shapes, so `git add -A` cannot pick
one up in the first place.
- tests/integration.test.js fails on ANY unexpected .mjs/.cjs in the repo root,
whitelisting only eslint.config.mjs. That catches the next scratch file
whatever it is called, including one written before the ignore rule matches.
Mutation-tested: putting the probe back turns it red.
938/938, lint clean.
Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01NoRK4Aam9jKA5jVqx655R91 parent 8520020 commit a8d3dfc
5 files changed
Lines changed: 31 additions & 18 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
24 | 24 | | |
25 | 25 | | |
26 | 26 | | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
12 | 12 | | |
13 | 13 | | |
14 | 14 | | |
15 | | - | |
| 15 | + | |
16 | 16 | | |
17 | 17 | | |
18 | 18 | | |
| |||
76 | 76 | | |
77 | 77 | | |
78 | 78 | | |
79 | | - | |
| 79 | + | |
80 | 80 | | |
81 | 81 | | |
82 | 82 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
41 | 41 | | |
42 | 42 | | |
43 | 43 | | |
44 | | - | |
| 44 | + | |
45 | 45 | | |
46 | 46 | | |
47 | 47 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
184 | 184 | | |
185 | 185 | | |
186 | 186 | | |
| 187 | + | |
| 188 | + | |
| 189 | + | |
| 190 | + | |
| 191 | + | |
| 192 | + | |
| 193 | + | |
| 194 | + | |
| 195 | + | |
| 196 | + | |
| 197 | + | |
| 198 | + | |
| 199 | + | |
| 200 | + | |
| 201 | + | |
| 202 | + | |
| 203 | + | |
| 204 | + | |
| 205 | + | |
| 206 | + | |
| 207 | + | |
187 | 208 | | |
188 | 209 | | |
189 | 210 | | |
| |||
This file was deleted.
0 commit comments