@leonidstern/labit 0.0.0-stage → 0.6.0

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.
@@ -0,0 +1,14 @@
1
+ {
2
+ "name": "leonidstern",
3
+ "owner": {
4
+ "name": "leonidstern",
5
+ "url": "https://github.com/LeonidStern"
6
+ },
7
+ "plugins": [
8
+ {
9
+ "name": "labit",
10
+ "source": "./",
11
+ "description": "Read and answer labit pin comments: cloud lab links and local mode."
12
+ }
13
+ ]
14
+ }
@@ -0,0 +1,12 @@
1
+ {
2
+ "name": "labit",
3
+ "version": "0.6.0",
4
+ "description": "Read and answer labit pin comments: cloud lab links and local mode (wait, fix, reply on the pin).",
5
+ "author": {
6
+ "name": "leonidstern",
7
+ "url": "https://github.com/LeonidStern"
8
+ },
9
+ "homepage": "https://github.com/leonidstern/labit",
10
+ "repository": "https://github.com/leonidstern/labit",
11
+ "license": "MIT"
12
+ }
package/CHANGELOG.md ADDED
@@ -0,0 +1,238 @@
1
+ # Changelog
2
+
3
+ Versions follow [semver](https://semver.org). Before 1.0, a minor version can change how things work.
4
+
5
+ ## Unreleased
6
+
7
+ ## 0.6.0 · 2026-11-16
8
+
9
+ - New npm name: `@leonidstern/labit` (`npx @leonidstern/labit`; npm turned down the plain name `labit` as too close to `lab` and `lit`). The `labit` and `labfb` commands both work once installed. The GitHub repo is now leonidstern/labit (old links redirect).
10
+ - Everything else is labit too: the command in help and docs, the MCP server and plugins (`claude mcp add labit -- npx labit@latest mcp`), the skill (`skills/labit/`). Settings move to `~/.labit`; `LABIT_HOME` and `LABIT_NO_UPDATE_CHECK` replace the `LABFB_` names, which still work.
11
+ - The widget's source is split into modules: its stylesheet is `src/widget/styles.css` and pin anchoring is `src/widget/anchoring.ts` (TypeScript). `npm run build` bundles them into the same single `comments.js`.
12
+ - Needs Node 22 or newer: Node 20 reached end of life in April 2026. CI tests Node 22, 24 and 26.
13
+ - The page script ships without its code comments: 49 KB gzipped instead of 68 KB, same code. Its commented source is `src/comments.js`; `npm run build` writes `public/_lab/comments.js` (`npm run build:watch` while working on it).
14
+ - Local labs keep comments one file per page in `.lab/comments/` (a comment rewrites only its page's file). A lab with the old `.lab/comments.json` moves it over on start and keeps the old file as `.lab/comments.json.bak`.
15
+ - Each page's comments list is kept, compressed, until that page changes, instead of being built and compressed again for every page load.
16
+ - Done threads with nothing new in 30 days move to `.lab/archive/<page>.json` (on start, then once a day): pages no longer load them.
17
+ - Removed the quick model and its router: every pin goes straight to the listening session. Gone with it: `--fast` / `--no-fast`, the `LAB_FAST_*` variables, `.lab/quick.jsonl`, picking a tool or model in the pin ("use haiku", "@codex", "model:…", "!"), and 👍 keep / 👎 put back on quick fixes.
18
+ - Command-Z (Control-Z) takes back the last pin or go placed from the tab, newest first (deleted on this computer, resolved for guests).
19
+ - Keys: C chat, W next new comment (Shift-W the one before), 1 comment, 2 go, 3 cursor (pins shown, clicks are the page's own), M hide; in a text box Control-D goes to the next new comment. The bar marks them in its words: (c)hat, ne(w). Old N, J, K, V, L, A, D keys are gone.
20
+ - Tabs in the background stay connected to the lab, so their pins, chat and "(3)" title count keep up while you're in another tab.
21
+ - N goes to the next new comment (the pill shows the key); Control-N does it from anywhere, the reply box too (Control-Shift-N: the one before); J and K still step forward and back.
22
+ - Going to a new comment ("N new" or J / K) puts the cursor in its reply box (computers).
23
+ - The bar's "N new" has no ‹ › arrows: a click goes to the next new comment, J and K step forward and back.
24
+ - No pictures left in the widget's controls: the close cross and the send arrow are drawn with CSS, and the picture pointers are gone (where the drawn pin can't show, in an open dialog or before the mouse moves, the system crosshair / copy pointer stands in). Holding Option over a link shows the drawn pin too.
25
+ - ‹ N new › counts new messages in done threads too.
26
+ - A thread's reopen / resolve / delete sit on the right, a size smaller, out of the reading flow.
27
+ - Washes set to 5 / 10 / 15 / 50 % for black and white, 15 / 30 / 50 % and solid for green.
28
+ - Colours are washes, as in Cooking: white, black and green, each with 4 see-through steps (`--lab-black-1…4`, `--lab-white-1…4`, `--lab-green-1…4`); soft fills, hovers, lines and secondary text are washes of black on light and of white on dark.
29
+ - The bar keeps its pills in place: ‹ N new › and "show done" stay (quiet and disabled at 0) instead of appearing and shifting the others.
30
+ - The browser tab shows new messages as "(3) Page title".
31
+ - The chat's top is just the grab strip (no empty title row), as tall as a thread's.
32
+ - A pin on the page's body or main that was on a word sits on that word again after the page changes; if the word is gone it shows faded as moved. One with no word shows faded as moved once the page's height has changed under it (new pins keep that height).
33
+ - The list window is parked: the bar shows ‹ N new › while there are new comments (the middle and J go to the next, ‹ and K to the previous), and a "show done · N" / "hide done" pill. On phones the agent's light moves to the chat button. `LIST_WINDOW` brings the list back.
34
+ - The list shows each pin on one line (longer ones end in …); rows highlight in Apple's hover grey.
35
+ - Done pins with nothing new in them are hidden on the page; "show done · N" in the list brings them back (remembered per browser). A done pin with a new reply shows as usual.
36
+ - A wait's message starts with what it holds ("In this message: 3 new, 1 reply"), so an agent that only read part of it can tell something is missing.
37
+ - A safety net for missed pins: a thread handed to the agent more than 3 minutes ago (`LAB_REMIND_MS`) that still has no answer after the person's last words comes back in the next wait, under "Still waiting for your answer", at most every 10 minutes.
38
+ - Chat: a reply shows what it answers, as in Telegram (the name and the start of that message, a green bar beside it); a tap there jumps to it.
39
+ - The bar has ‹ › around "list" while there are new comments: they step through the new ones from the top of the page, without opening the list.
40
+ - The chat has no "chat" title (phones and computers).
41
+ - Writing in a done thread reopens it on the page at once (the lab already reopened it on its side).
42
+ - Greys are Apple's system greys, four steps a scheme (gray 6 #f2f2f7, gray 5 #e5e5ea, gray 3 #c7c7cc, gray #8e8e93; dark #2c2c2e, #3a3a3c, #38383a), in the widget and `lab.css`.
43
+ - On a computer a thread or new comment closes at once, like the chat (its fade-out flickered); phones still slide the sheet away.
44
+ - Lighter talk between the lab and the agent:
45
+ - A reply in a thread the agent already has comes as one line (the new words, the thread's id and what it's about), not the whole thread again.
46
+ - A new pin wakes the agent after 2 s of quiet (`LAB_SETTLE_MS`), so a quick run of pins goes over together.
47
+ - Pins leave out details agents rarely use (computed looks, colours, window size, CSS path); they stay in the full text at `/_lab/agent/<page>`.
48
+ - `reply … --wait` answers and listens again in one command.
49
+ - Done shows as a small green ✓ beside the name (like the ticks on messages), not "✅ done".
50
+ - A thread's reply box is the chat's: soft grey, no border; the new comment box drops its border too and keeps only a soft shadow so it stands out on the page.
51
+ - Phones on their side get the same sheets as upright (they used to get the computer's floating chat, which a tap outside didn't close and which couldn't be pulled up).
52
+ - Phones: tapping a pin moves the page so the pin sits above its thread sheet instead of under it.
53
+ - Router, narrowed after the big benchmark (v5 put back 15 fixes a run, 11 of them wrongly):
54
+ - Shared code is a file loaded from two or more files in other folders (or the stylesheet of such a component, or a `:root` stylesheet). Imports are resolved by path, so a feature's own `status.js` isn't another feature's, and a stylesheet is named in full, so importing `InvoicesTable` doesn't count as importing `InvoicesTable.module.css`. On the benchmark app this flags exactly the 6 shared library files and none of the 11 feature files.
55
+ - Only risky quick changes go to the session to check: code, or more than one file. A one-file style fix the quick model kept no longer wakes it.
56
+ - The drawn pointer shows exactly where the system pointer is hidden, checked again when the page scrolls under a still mouse, Shift or Option is pressed, or go and comments are switched. A page's own pointers (a clickable card) win over it; editable text gets a text cursor and data-uncommentable parts the plain arrow; in an open dialog, popover or full screen (above the widget) the picture pointer stays.
57
+ - The comment pointer is drawn with CSS (your pin following the mouse) instead of an image, so it changes smoothly: it turns green with a tick for go, and fades out where the system pointer takes over (links, fields, the widget, Shift). Mice only.
58
+ - Lab pages draw dividers as Apple-style hairlines: half a pixel (one device pixel on Retina) in Apple's separator grey (`--lab-hair`, `--lab-gray-300`).
59
+ - Pins find their element again after the page changes above them: when the stored path leads to a different element (a section added, items reordered), the pin looks for the one with the same tag, classes and words under the same heading, nearest to where it was, and sits at the same spot inside it.
60
+ - Pin statuses. A go pin is an outline with a green tick when placed, gets the turning stroke while the agent is on it, and fills green once done. A comment pin shows your initial, the stroke, then a green tick when done (was grey).
61
+ - Closing the chat (Escape, the button or a click outside) takes the cursor out of its box, so keys like M and V work right away.
62
+ - Keys swapped: M shows and hides comments (was C), C opens and closes the chat (was M).
63
+ - Lab colours are set up like Cooking's: a fixed grey scale and greens as base colours (`--lab-gray-*`, `--lab-green-*`), and named uses that point at them (`--lab-page`, `--lab-bg`, `--lab-fg`, `--lab-muted`, `--lab-line`, `--lab-soft`, `--lab-green`, `--lab-green-soft`); dark mode only re-points the uses. Same colours as before, now solid hex.
64
+ - Pointers are drawn once as PNGs (1x and 2x) instead of SVG, which browsers re-decode on every pointer change (a flicker, Safari most), and are rewritten only when your initial changes.
65
+ - A newer version waits to reload until no thread, list or chat is open, so nothing moves while you read.
66
+ - Messages: no "↩ replied" mark, and an agent's name shows without its session id ("Claude", not "Claude · session 8a296ba1").
67
+ - The comment pointer looks like your own pin: the white teardrop with your initial (a + before you've given a name), clicking at its point; links and controls keep theirs, Shift gives the text cursor back. The go pointer is the same shape, green with a tick.
68
+ - The ✓ / ✓✓ in a message's corner are as tall as the time's digits.
69
+ - The list's and chat's close button: hovering only darkens the cross (no circle behind it), and no "close" tooltip.
70
+ - Your own messages are soft green with dark text, not black.
71
+ - Go mode's pointer is a go pin (green teardrop with a white tick), clicking where its point is.
72
+ - Computers, with comments shown: a click or drag no longer selects the page's text; hold Shift to select (and quote) words. Fields and editable text stay selectable.
73
+ - Switching go mode (V or the button) redraws nothing, so nothing flickers.
74
+ - Apple's continuous corners (squircle) on boxes, cards, bubbles, sheets, keys and rows wherever the browser draws them (Safari 26, Chrome); dots stay circles and the pin keeps its teardrop.
75
+ - The lab's design system in one file, `/_lab/lab.css`: colours, three corners, type, boxes, pills, buttons, keys, rows and tables, with `--lab-*` names that are also the widget's theme hooks. The lab's page list and its "not found" page use it.
76
+ - The bar's "hide comments" reads just "hide".
77
+ - Two corner sizes in all: 6 px for small things (keys, list rows, tabs, tags, text buttons), 12 px for boxes, cards, bubbles, sheets and buttons (the bar's pills too, no more round ends). Circles only for dots and the send button.
78
+ - The list has just two tabs, new and open, and opens on new each time. The work, resolved and mine tabs and draft mode are parked (hidden, code kept).
79
+ - Replied and done show as small marks beside the name again (↩ replied, ✅ done), not inside the message's words.
80
+ - Hovering a pin shows what it's on: a drawn area its green outline, selected words their highlight. An open area pin shows its outline again (it was hidden when the area also held a quoted word), steady: no dark flash or shadow as it opens.
81
+ - "copy link" sits on the left side of the screen, beside who's listening; the bar stays on the right.
82
+ - The list's and the chat's close button is a round, quiet button with a drawn cross, darker on hover.
83
+ - The bar's pills show their keys: chat C, list L, go V, hide M (hidden on touch screens).
84
+ - Escape closes the chat and the list too (after an open thread or new comment).
85
+ - On a computer, opening the chat closes an open thread (and a new comment with nothing typed in it).
86
+ - Scrollbars inside the chat, threads and the list are thin, on a clear track, like macOS ones (CSS only).
87
+ - Go mode: a "go" button in the bar, or V, switches it on and off. While it's on, every click, drawn area, selection or hold on a phone posts a "go" pin at once (approve what it's on), with no box to type in; in draft mode go pins wait with the other drafts. Needs your name set once. A go pin is green with a tick, apart from comments.
88
+ - A comment on selected words puts its pin on the last selected letter, where the selection ended (on the first when the selection runs over several items).
89
+ - A pin the agent is on (handed to it and not answered yet, or answered "On it") has a green stroke running round its own teardrop outline.
90
+ - The list has a "work" tab: Now (handed to the agent and not answered yet, or answered "On it"), Next (sent, not handed yet) and Done today, for this page's pins and chat.
91
+ - Drawn areas are a green dotted outline with no fill and no dark ring; a quote that runs over several items is found and lit.
92
+ - Phones: the chat has two heights, like iOS and Android sheets: pull it up (or flick) to fill the screen, pull it down from there to go back; from the lower height a pull down closes it as before, and a hard flick down from the top closes it too. It opens at the lower height.
93
+ - Links in the chat and in threads open in a new tab.
94
+ - On a computer, a click outside the chat closes it and does nothing else (no new comment, no press on what's under it); what you typed stays.
95
+ - A newer version reloads the page as soon as it's safe: not while you type, have words in a box, place a new comment or just touched the page. An open chat, list or thread no longer holds it back; they come back after the reload.
96
+ - Jumping to a pin (list, chat, J / K) puts the pin and its open thread in view together, in the middle of the window when they fit.
97
+ - A long thread scrolls inside its card (at most 460 px or 62% of the window) and opens at its first new message, or the newest.
98
+ - Hovering a pin on quoted words lights them up; the quote's highlight is green, with no dotted box behind it.
99
+ - Phones: the sheet's grab strip is 44 px tall (it reaches a little above the sheet's edge); the bar looks the same.
100
+ - Phone sheets, from the bottom-sheet research (Vaul, Ionic, iOS and Android sheets):
101
+ - Android's back gesture closes an open sheet (chat, list, thread, new comment) instead of leaving the page; with something typed it nudges, like a tap on the dimmed page.
102
+ - Right after the messages or the list scrolled (a fling up to the top), a pull down keeps scrolling for 100 ms instead of taking the sheet with it.
103
+ - For 200 ms after letting go of a drag, a tap does nothing, so a sheet springing back under the finger doesn't press a button or pop the keyboard.
104
+ - iOS 26.0's leftover 24 px viewport offset after the keyboard closes is ignored (with nothing focused to type in), so the sheet no longer sits off by that.
105
+ - Local labs: what's new and what's read is shared by name, so your phone and your Mac (the same name) show the same: open a pin or the chat on one and its "new" clears on the other. Kept in `.lab/reads.json`.
106
+ - Each comment is marked when it's handed to a wait, instead of one "seen up to" time: a comment a batch left out (or one saved a moment late) is no longer skipped for good.
107
+ - Chat and list buttons stand out (bold) when something is new, and the chat marks where unread messages start with a "new" line.
108
+ - Resolving a thread closes its card.
109
+ - Computers: Shift + drag selects words (a plain drag still marks an area), and letting go opens a comment quoting exactly them. Comments from the phone's Comment chip quote the whole selection too, not just the first word. A quote holds up to 300 characters (was 80), so a long selection isn't cut short.
110
+ - Threads read like the chat: bubbles (yours on the right), the time and ✓ ✓✓ in the corner, ✅ on a done answer, a "new" line above the first unread reply.
111
+ - "copy link" keeps its width while it says "copied", so nothing beside it moves.
112
+ - On a computer, opening the chat puts the cursor in its message box.
113
+ - Chat: each message has its time in the corner (no hover tooltip over the text), your own with ✓ / ✓✓; no "↩ name: …" quote above replies (the ✅ for done stays); no click to reply (phones swipe).
114
+ - The list names each pin by what it's on: when the pinned element says little ("4", an icon), the text of the box around it.
115
+ - Phones: holding a link or image no longer starts iOS's drag, which cancelled the hold before the box could open the keyboard.
116
+ - Phones: a sheet follows the finger like a native one: from any part, and from its list or messages when they're at the top; a fast flick or a pull past a third closes it at the finger's speed, else it springs back; pulled up, it stretches a little.
117
+ - Chat: swipe a message left to reply to it (it follows the finger, ↩ shows, the phone ticks), and the box says so: "message · swipe one to reply".
118
+ - Phones: closing the chat or list with the keyboard up no longer jumps: the sheet slides down behind the keyboard, which goes once the sheet is gone.
119
+ - Phones, Safari 26: with the keyboard up, the strip above it around Safari's address pill (where Safari draws nothing fixed) is covered by a solid block in the page, so the page no longer shows under the box; the sheet stays a half sheet above it.
120
+ - A tap anywhere on a message box puts the cursor in it; the box is taller and wider than its one line of text, so taps near its edge used to miss.
121
+ - Chat: your messages show ✓ when sent and ✓✓ once handed to the agent, as in messengers.
122
+ - Phones: the page behind an open sheet no longer scrolls, even when you drag on a part of the sheet with nothing to scroll.
123
+ - The chat closes from the dimmed page even with text in its box (the text stays for next time); a thread or new comment with typed text nudges instead of closing, since closing would lose it.
124
+ - `labfb pages`: a lab serving this folder hides one serving a folder above it, so the list is this lab's pages, not everything up there.
125
+ - Phones: the keyboard's ^ ˅ step to the previous or next pin while you write a reply, the keyboard staying up.
126
+ - The router, from the big-app benchmark (Haiku said Done on 29 of 30 pins, 25 were right):
127
+ - A quick change to shared code (a file two or more others load, its stylesheet, or a stylesheet that sets :root variables) is put back and goes to the session with why, since it can break pages nobody pinned.
128
+ - The quick model's changes always reach the session as "Quick changes to check", even when no pin was passed, with the ask to check each does what the pin asked and nothing broader.
129
+ - Phones: with the keyboard up, a thread, the list and the chat fill exactly what the screen shows (so iOS can't push them up and no page shows around them); a new comment stays just above the keyboard with the page dimmed above it, so you see what you comment on.
130
+ - Phones: a tap or a swipe down on the dimmed page above a sheet closes it (the tap now also works on iOS Safari).
131
+ - Phones: while a sheet is open, swiping down no longer triggers the browser's pull-to-refresh.
132
+ - The chat holds only its own messages (about the page as a whole) and their replies; pins stay on the page and in the list. Your own comments are never new to you (your name in any case or spacing, or a pin this browser started), and the list tags threads with unread replies with a "2 new" pill. The chat stays at its newest message while the keyboard shortens it.
133
+ - The list marks done threads with ✅ (resolved, fixed by the quick model, or answered "Done: …").
134
+ - Sending eases the new message or reply in and the arrow flies off; the chat keeps its box (and the phone's keyboard) after a send and only follows new messages while you're at the bottom. Phones: prev / next are thumb-sized and keep the keyboard as it was, and the thread sheet keeps its height while you step.
135
+ - Phone sheets: the thread, list and chat scroll natively and move only from their top (handle and header), so a swipe down never scrolls the messages; the message box is solid down to the screen's edge (behind the home bar and the keyboard too), the page is dimmed past the screen's edges, the ✕ is gone on phones, and sheets slide away when closed. A sheet sits above the keyboard and fits what the screen shows.
136
+ - Phones: the send button works on the first tap with the keyboard open (pressing it no longer takes the cursor out of the box).
137
+ - Opening a thread puts the cursor in its reply box, phones too; in the chat, messages of resolved threads and "Done:" answers carry ✅ by the reply mark; chat messages don't count among the comments.
138
+ - Phone sheets feel native: they slide up, follow the finger down from the header (always) or the top of their content, spring back or slide away (a flick counts), and the dimmed page fades with them.
139
+ - Phone sheets dim the page behind them (a tap there closes them, unless something is typed), never scroll the page, and the chat opens at its newest message.
140
+ - Phones: the comment and name boxes ask for no autofill, autocorrect or writing suggestions; prev / next swap the thread in place (no slide, no keyboard).
141
+ - Whoever started a thread can resolve and reopen it (the key their browser keeps for moving the pin), on a phone too; deleting stays admin-only.
142
+ - Phones: the agent's light sits in the "list" button (steady: listening, blinking: working, grey: nobody) instead of a separate label, and the bar is back at the bottom; the send button is a 36 px circle. On computers the label's light blinks while the agent works.
143
+ - Phones: swipe a sheet down to close it; a thread has ‹ prev, next › and new · 2 ›; a tap on the page puts the cursor in the new comment's box at once.
144
+ - The page waits to reload after a change while a thread, a new comment or the list is open, or a box has focus; it reloads when you close it.
145
+ - A chat ("chat" in the bar): the page's whole conversation in time order, pins (with what they're on) and every reply. A new message is about the page as a whole (no spot, no pin; the agent reads it as "on: the page as a whole"); tap a message to answer it instead. On phones the chat and the list are sheets from the bottom.
146
+ - A comments list ("list · 2 new" in the bar, or L), each comment with a few words of what it's on: new (unread replies), open, resolved (admins) and mine; J/K step through the pins and scroll to each, R replies, E resolves.
147
+ - Draft mode: with "draft mode" on in the list, new pins wait in this browser until "send 3 drafts", so the quick step doesn't start on pin 1 of 10.
148
+ - Phones: a tap only reads; hold a finger still for half a second anywhere to pin (links and buttons too), and the box opens with the keyboard (with comments on, the page's text isn't selectable, so iOS doesn't take the hold for a selection). A new comment or a thread opens as a sheet from the bottom, full width; selected text gets a Comment chip.
149
+ - The quick step, from the fix benchmark:
150
+ - It takes bug reports asked as questions ("why is this here twice?", "nothing happens") and one-line logic slips (a comparison, a rounding, a condition), not only wording and styles. Before, Haiku passed every pin worded as a question.
151
+ - When it passes, it says why ("PASS: needs a change in lib/orders.js"); the session gets that line with the pin.
152
+ - Each quick change is checked: labfb notes the project's files before, sees exactly what changed after, and keeps it only when the tool said Done and it is small (3 files, 40 lines). A pass, or a change too big, is put back, so the session starts from the files as they were.
153
+ - The quick model's changes ride along with the next pins the session gets, for a glance (they never wake it by themselves).
154
+ - Every quick decision is a line in `.lab/quick.jsonl` (done, pass, put back; why; files; lines; seconds).
155
+ - 👍 keep / 👎 put back on a quick fix (this computer): 👎 restores the files if nobody changed them since, and hands the pin to the agent marked as rejected.
156
+ - Sharper pins, from a frontend fix benchmark against Agentation:
157
+ - Every element on a React dev build now gets its own JSX file and line ("written at") and the component that rendered it, not only a component's outermost element (it was 3 of 24 pins in the benchmark).
158
+ - The "looks" line names only CSS variables that are colours: a radius or spacing variable no longer names a text colour (it did on 12 of 24 pins).
159
+ - Behind a dev server, the app's index.html shell isn't given as a page's file; the route's source is, spelled as on disk (src/pages/Orders.jsx).
160
+ - An area comment lists what it holds: the elements wholly inside it, each with its text, component and line.
161
+ - Locally the agent text says to answer with `reply`, not with a POST.
162
+ - Any agent, not just Claude:
163
+ - labfb tells which agent runs `wait` and `reply` (Codex, Cursor, Amp, opencode, Antigravity, Claude; Copilot with `LAB_AGENT=copilot`). The page says "talking to Codex", replies are signed "Codex", and a Codex or Amp session shows its way back (`codex resume <id>`, tap to copy; Amp's thread link).
164
+ - The quick step runs with whichever agent tool is installed (the listening agent's own first): `codex exec`, `cursor-agent -p`, `opencode run`, `copilot -p`, `amp -x`, `agy -p`, never with "allow all" flags. A "Done" that changed no file counts as a pass. `LAB_FAST_AGENT` and `LAB_FAST_MODEL` choose.
165
+ - Fixed: the quick step signed every answer "Claude", even when `LAB_FAST_CMD` ran another tool.
166
+ - The skill reads the same for every agent; `npx skills add leonidstern/labfb` installs it for Codex, Cursor, Copilot, Amp, opencode, Windsurf and others. Agents that aren't woken when a background command ends loop `wait --timeout 50` in the foreground.
167
+ - `labfb mcp`: `wait` returns after 50 seconds by default (Codex and Cursor stop tool calls at 60), and the client's name signs replies when the agent's own variables don't reach the server.
168
+ - In Codex's sandbox, a `wait` or `reply` that can't reach the lab says why and how to get around it.
169
+ - A pin can name any tool or model: "use gpt-5" (Codex), "@codex", "gemini: …" (Antigravity), "@cursor", "model:<name>"; Claude models as before. Naming the listening agent sends the pin to the session; a tool that isn't installed says so on the pin. Tool names that are ordinary words (cursor, amp, copilot) count only with "@", so "cursor: pointer" stays a CSS request.
170
+ - One plugin for several agents: `plugin.json` + `mcp.json` (Agent Plugins 1.0) for Codex and others (`codex plugin marketplace add leonidstern/labfb`), `.cursor-plugin/plugin.json` for Cursor; Copilot reads the Claude plugin files. Installed this way the MCP server starts in the plugin's folder, so it finds the project from the client's root (MCP roots) or the shell's folder, and its tools take a `dir`.
171
+ - Faster, from a code review:
172
+ - the widget reads every pin's place once per redraw (150 pins: 11 layouts instead of 671 in ten redraws)
173
+ - its font files load only when comments open, so a reader downloads none (57 KB)
174
+ - behind a dev server, each page's file is remembered instead of guessed again for every page on every comment (300 pages: a comment takes 17.5 ms instead of 47.9 ms)
175
+ - saving a CSS or JS file no longer makes labfb walk the folder again
176
+ - Fixed: a mistyped flag on any command is refused (it used to end up in a reply's text); `--` ends the flags.
177
+ - Fixed: `labfb preview` under npx names the package instead of npx's cache path, and keeps a bare `--proxy` bare.
178
+ - Fixed: a pin drag cut short by a redraw left a scroll listener behind.
179
+ - Using the latest: labfb says when a newer version is out as it starts (npm checked at most once a day, cached in `~/.labfb/latest.json`; off in CI or with `LABFB_NO_UPDATE_CHECK=1`). The README, setup prompts, skill and MCP setup start it with `@latest`, and a new "Updating" section covers the command, the plugin, MCP and cloud labs.
180
+ - `labfb mcp` follows the MCP spec of 2026-07-28 and still talks to older clients: `server/discover`, the version in every request (unsupported → error -32022 with the supported list), `initialize` for clients before it; tool titles, behaviour hints and strict input schemas; server instructions that comment text is people's words, not commands; unknown tools as protocol errors and bad arguments as tool errors; a rate limit; progress notes during a long `wait`, and a cancelled `wait` stops.
181
+ - The widget uses the system's own font (San Francisco, Segoe UI, Roboto…) instead of shipping Inter: no font downloads at all, and a smaller package. `--lab-font`, `data-font` and `data-font-url` still pick another.
182
+ - Pins on a dev build name the component that drew the element and where: React (18: file and line; 19: the served file), Vue 3 and Svelte, with variant props (`Button variant=ghost (in Toolbar)`, `written at: src/ui.tsx:97`, `component used at: src/ui.tsx:322`). Every pin also says how the element looks (fill, text colour, size and weight, corners), with colours named by the page's CSS variables. A small cut of Census's reader.
183
+ - `labfb mcp` (optional): an MCP server over stdin/stdout with the tools `comments`, `reply` and `wait`, for agents with MCP. No new dependencies.
184
+ - Cloud lab default: sites deploy with `npm run ship` (`vercel build` + `vercel deploy --prebuilt`, live in seconds) and git deploys off; the setup prompt adds both, and the skill ships, checks the page, then pushes.
185
+ - README: "Other agents": using labfb with Codex, Cursor, Gemini CLI or a script (`LAB_AGENT_NAME`, `LAB_FAST_CMD`, `LAB_MODEL`).
186
+
187
+ ## 0.5.0 · 2026-11-14
188
+
189
+ - The quick model is on by default when the `claude` command is installed (no `--fast` needed). `--no-fast` turns it off; without the command it stays off.
190
+ - Skill: "use lab" (or "in lab", "show it in lab") makes Claude show a page in labfb instead of publishing an Artifact: it writes the HTML file, runs labfb, opens the page, and answers your pins.
191
+ - Run it in your project: `npx @leonidstern/labfb`, no folder. With the project's dev server running, it puts comments on top of it by itself: it finds the server run from this folder (or one inside it), even with other projects' servers running. `--proxy` with no port does the same.
192
+ - A project with a dev server that isn't running is no longer served as a file listing of `src` and `node_modules`: it says to start the server, and names the other projects' servers it saw.
193
+ - README: local setup is one prompt to paste into Claude Code, like the cloud lab; the plugin is the shortcut for regular use. No `<folder>` placeholders. The skill starts labfb with no folder.
194
+ - A folder with no `index.html` at the top opens its first page (`public/index.html`, say) instead of a list of folders. The list at `/` shows every page with its title, and leaves out folders with no pages.
195
+ - `labfb pages`: every running lab's pages as a Markdown list in `.lab/lab-pages.md`, with open comment counts. Running labs register in `~/.labfb/servers/` (removed on exit), and each lab answers `/_lab/pages` for this computer only. The skill sends the file to the person after starting a lab, so it sits under Outputs in the desktop app.
196
+ - One lab per project: `labfb list` shows the labs running on this computer; starting a lab in a folder that a running lab already serves opens that lab instead (`--new` starts a separate one). The skill and the cloud setup prompt now check for an existing lab, project, page or session before creating one.
197
+ - `labfb add <url>` / `labfb remove <url>`: save cloud lab pages with the project (`.lab/links.json`). `pages` lists the project's labs and cloud pages, by domain with open comments; `pages --all` lists every lab on the computer.
198
+ - Fixed: an area comment's text is now the words inside the area. It was the whole paragraph whenever the area reached above or below a line of text.
199
+ - Fixed: a comment card could stay see-through when the page was in the background (a stalled fade-in); cards now only slide in, never fade.
200
+ - Fixed: dragging on an image while a comment card was open dragged the image itself. Now it marks an area and closes the card; with comments on, images and videos never start a browser drag.
201
+ - Pins say more, so an agent finds the spot from the text alone (found with the benchmark in `bench/situations*`):
202
+ - the exact pixel next to the rounded percents; the real file size of `srcset` and `<picture>` images; a spot inside CSS background photos (using the photo's own layer under a gradient); pictures turned by a CSS transform measured with the transform undone; pictures inside an SVG `<image>`
203
+ - the blocks above and below a click on empty space, and the page y; light or dark (the colour behind the pin)
204
+ - words in Chinese, Japanese, Korean and Thai; text added by CSS `::before`/`::after`; the chosen option of a `<select>`; words inside open web components (Shadow DOM)
205
+ - code: the page's own line numbers in excerpts, lines drawn one element per line (Docusaurus), and a block's title next to it
206
+ - animated pictures: a rough time since they loaded (a page can't read which frame is showing)
207
+ - Option-click is for commenting only: the page never sees it, so menus, buttons and folds don't act before the pin lands.
208
+ - A pin can pick its model in plain words: "@fable", "use opus", "with sonnet", "fable: …". That model makes the change, whatever its size (up to 10 minutes), and signs its answer "Claude · fable". "!" at the start or "@claude" sends the pin straight to the session. Plain mentions ("the fable of…", "Opus 23") don't count.
209
+
210
+ ## 0.4.0 · 2026-11-14
211
+
212
+ - Package: `npx @leonidstern/labfb <folder>`, `--version`, `npm test`, CI on Node 20, 22 and 24.
213
+ - Claude plugin: `/plugin marketplace add leonidstern/labfb`, then `/plugin install labfb@leonidstern`. The skill moved to `skills/labfb/`.
214
+ - Delete asks inside the card, not with the browser's dialog.
215
+ - Hold Option to comment on links and buttons, also while comments are hidden with `c`.
216
+ - Posting a new comment closes its card; the pin stays.
217
+ - Closing the page: Claude keeps waiting quietly and wakes on your next comment; after an hour with no page open, `wait` ends and says so. Tabs in the background count as open.
218
+ - Replies use the comment id (numbers shift after a delete).
219
+ - Fixed: an unknown option was read as a folder name; paths with spaces or on Windows.
220
+
221
+ ## 0.3.0 · 2026-11-14
222
+
223
+ - Local mode on a running dev server: `--proxy <port>` (Astro, Next, Vite).
224
+ - New replies show in the open card; the reply box takes focus.
225
+ - The label says whether Claude is listening, working, or away.
226
+ - Thin dotted area line that shows on any page; smooth send arrow.
227
+
228
+ ## 0.2.0 · 2026-11-14
229
+
230
+ - Drag your own pin to move it.
231
+ - `data-uncommentable` and `data-comment-target`, the same names as Claude artifact comments.
232
+ - `--fast`: a quick model tries small changes first.
233
+ - `preview <folder>` for the Claude desktop app's preview pane.
234
+
235
+ ## 0.1.0 · 2026-11-14
236
+
237
+ - Local mode: comments on pages on your computer, `wait` and `reply` for Claude.
238
+ - Cloud lab: pin comments, agent text link, per-person admin links, paper look.
package/LICENSE ADDED
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2026 Leonid Stern
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
package/README.md CHANGED
@@ -1,3 +1,154 @@
1
- # Temporary Holding Version
1
+ # labit
2
2
 
3
- This version is a temporary placeholder for this package. An operational version to replace this has been submitted for review and is awaiting a staged release.
3
+ [![npm](https://img.shields.io/npm/v/@leonidstern/labit)](https://www.npmjs.com/package/@leonidstern/labit) [![test](https://github.com/leonidstern/labit/actions/workflows/test.yml/badge.svg)](https://github.com/leonidstern/labit/actions/workflows/test.yml) [![MIT](https://img.shields.io/badge/license-MIT-black)](LICENSE)
4
+
5
+ On npm as `labit` ("lab it"). It used to be `labit`, which still works.
6
+
7
+ Pin comments on pages, and your agent reads them as plain text. Use it on a live domain where anyone with the link can comment, or on your own computer, where your agent (Claude, Codex, Cursor…) answers on the pins while it works.
8
+
9
+ **Small, no dependencies, runs in any folder.** labit uses only Node 22+ itself: no packages to install, about 120 kB on npm, 15 files. Run `npx @leonidstern/labit` in any project or folder: nothing goes into your project's dependencies or code, and it works with any stack, from plain HTML to Astro, Next or Vite.
10
+
11
+ ![Comments pinned on a demo page](docs/comments.png)
12
+
13
+ ## Features
14
+
15
+ **Cloud lab**: pages on a domain, for people you share links with
16
+ - **No account:** anyone with the link clicks anywhere, types a name and comments.
17
+ - **One link for your agent:** "copy link" gives plain text with every open comment. Paste it into any agent and it goes to the file.
18
+ - **Knows what's under the pin:** the quoted words, the element, the image file and pixel, the code line, the video second; on a dev build, the component and the file and line that wrote it. No screenshots needed.
19
+ - **One domain, many repos:** the lab domain only proxies `/<name>/*` to each member's own repo and Vercel project.
20
+ - **Admin links per person:** let someone resolve and delete on their pages only. Nothing to set up per person.
21
+
22
+ **Local lab**: pages on your computer, for you and Claude
23
+ - **No deploy:** run `npx @leonidstern/labit@latest` in your project. It finds your running Astro, Next or Vite dev server and puts comments on top, or serves plain HTML files.
24
+ - **Your agent answers on the pin:** it hears each comment as you post it, edits the file, the page reloads, and the reply shows on the pin.
25
+ - **Shows who is listening:** the label says whether Claude is listening or working. Close the page and Claude waits quietly: your first comment when you're back wakes it, and it stops after an hour.
26
+ - **Phone too:** `--wifi` lets a phone at home join. Comments stay in `.lab/`, one store per project.
27
+
28
+ Both: works on text, code, photos and video, drag your pins, hold Option to comment on links and buttons, 49 KB gzipped (the script on the page), and a [Claude skill](skills/labit/SKILL.md) that knows both flows.
29
+
30
+ ## Cloud lab
31
+
32
+ Paste this into your agent. It is the whole setup.
33
+
34
+ ```text
35
+ Set up labit (https://github.com/leonidstern/labit) for me on Vercel.
36
+
37
+ 0. First check whether I already have a lab (a Vercel project with LAB_HOST set, or a site that loads /_lab/comments.js). If I do, stop and tell me: add sites to that one instead.
38
+ 1. Fork the repo and import it into Vercel: framework preset "Other", no build command.
39
+ 2. Add Upstash Redis from the Vercel Marketplace (free tier). It sets KV_REST_API_URL and KV_REST_API_TOKEN.
40
+ 3. Set env vars: LAB_HOST=<lab domain, e.g. lab.example.com> and LAB_COMMENTS_ADMIN_TOKEN=<output of `openssl rand -hex 24`>. Tell me the token. Redeploy so the variables apply.
41
+ 4. Add <lab domain> to the Vercel project and tell me the DNS record to create.
42
+ 5. For each site that should get comments (slug = a short name, e.g. anna):
43
+ - serve it under the base path /<slug> (Astro `base`, Next `basePath`, Vite `base`) from its own Vercel project; every page answers 200, no redirects
44
+ - add two rewrites to labit's vercel.json:
45
+ { "source": "/<slug>", "destination": "https://<their-project>.vercel.app/<slug>" },
46
+ { "source": "/<slug>/:path*", "destination": "https://<their-project>.vercel.app/<slug>/:path*" }
47
+ - add this to the site's shared layout, before </body>:
48
+ <script src="https://<lab domain>/_lab/comments.js" defer></script>
49
+ - put pages at /<slug>/<project>/<secret>/<page>, where <secret> is 10 random characters per project; mark them noindex and link to them from nowhere
50
+ - deploy it with prebuilt deploys: add "ship": "npx --yes vercel build --prod --yes && npx --yes vercel deploy --prebuilt --prod --yes"
51
+ to its package.json scripts and "git": { "deploymentEnabled": false } to its vercel.json, so `npm run ship` builds on my computer
52
+ and is live in seconds, and a push only keeps the history (link it once: `npx vercel link`)
53
+ 6. Once I confirm the DNS works: POST a test comment with curl to https://<lab domain>/_lab/api/comments
54
+ ({"page":"/_lab/demo","name":"setup","text":"test"}, content-type application/json) and check that
55
+ https://<lab domain>/_lab/agent/_lab/demo shows it as text. Then delete it with header x-lab-admin: <token>.
56
+ ```
57
+
58
+ - **Comment:** open a page through the lab domain, press `m` (or hold Option), then click or drag. Drag your own pin to move it.
59
+ - **Read:** `https://<lab domain>/_lab/agent/<page path>` returns every open comment as plain text. Paste it into your agent.
60
+ - **Resolve or delete:** open any page once with `#lab-admin=<token>`.
61
+ - **Deploys:** each site ships with `npm run ship` (built on your computer, uploaded with `vercel deploy --prebuilt`, live in about 6 s for a small Astro site); pushes don't deploy. Ship what you commit.
62
+ - **Admins:** ask your agent "make a lab admin link for anna on /anna". With your token it gets a link that lets anna resolve and delete comments on `/anna` pages only. One browser can hold links for several labs. Nothing to set up per person (how: top of `api/lab-comments.mjs`).
63
+
64
+ ## Local lab
65
+
66
+ Paste this into Claude Code in your project. It is the whole setup.
67
+
68
+ ```text
69
+ Start labit (https://github.com/leonidstern/labit) on this project and listen to my comments.
70
+
71
+ 1. Run `npx @leonidstern/labit@latest` here in the background. It finds this project's dev server, or serves plain HTML files.
72
+ If it says the dev server isn't running, start it the way this project does, then run it again. Never stop other servers.
73
+ 2. Run `npx @leonidstern/labit wait` in the background, with --name set to this project's name. It ends with my next comment.
74
+ 3. For each comment, change what it asks, then answer on the pin: `npx @leonidstern/labit reply <id> "Done: …"`, with the id
75
+ that wait printed. Add --resolve when it's fully done; if you need something from me, ask in the reply instead.
76
+ 4. Run wait again right away. Stop when wait says the page was closed.
77
+ ```
78
+
79
+ Using it often? Install the plugin once, then just say **"start labit"** in any project. With the plugin, **"use lab"** also makes Claude show new pages in labit instead of an Artifact:
80
+
81
+ ```text
82
+ /plugin marketplace add leonidstern/labit
83
+ /plugin install labit@leonidstern
84
+ ```
85
+
86
+ Without Claude, run `npx @leonidstern/labit@latest` in your project:
87
+
88
+ - **Dev server (Astro, Next, Vite…):** start it as usual. labit finds the one running from this project, even with other projects' servers running, and puts comments on top. `--proxy 4321` picks a port yourself.
89
+ - **Plain HTML files:** served as they are. Pages somewhere else: `npx @leonidstern/labit@latest dist`.
90
+
91
+ - **Comment:** press `m` (or hold Option) and click. Drag to mark an area.
92
+ - **One lab per project:** `npx @leonidstern/labit list` shows the labs running on your computer. Starting one in a folder that a running lab already serves opens that lab instead (`--new` starts a separate one anyway).
93
+ - **This project's pages:** `npx @leonidstern/labit pages` writes `.lab/lab-pages.md`, the project's lab pages as links with open comment counts (`--all` for every lab on your computer). `npx @leonidstern/labit add <url>` adds a cloud lab page to the project's list. Claude sends it to you, so in the desktop app it sits under Outputs.
94
+ - **Which model listens:** the session you start decides it. Start it with `claude --model sonnet`, or `/model` in a running session.
95
+ - **MCP (optional):** `npx @leonidstern/labit@latest mcp` is an MCP server with three tools, `comments`, `reply` and `wait`, for the lab in the folder the agent runs in (`comments` also reads a cloud lab page by its address). In Claude Code, once for all your projects: `claude mcp add -s user labit -- npx @leonidstern/labit@latest mcp`. The `wait` command stays the quickest way to hear a pin as it's posted.
96
+ - **Options:** `--wifi` lets a phone at home join. `npx @leonidstern/labit preview` opens it in the Claude desktop app's preview pane. `--help` has the rest.
97
+ - **Files:** comments stay in `.lab/` in the project. Delete it to start over. Add `.lab/` to `.gitignore`.
98
+
99
+ ## Other agents
100
+
101
+ labit works with any agent that can use a terminal or MCP. Comments are plain text, the local loop is a few shell commands, and the skill is in the shared Agent Skills format.
102
+
103
+ - **The plugin (skill + MCP server):**
104
+ - Codex: `codex plugin marketplace add leonidstern/labit`, then `codex plugin add labit@leonidstern`.
105
+ - Cursor: add the repo as a plugin (Dashboard → Plugins & MCPs → Import from Repo), or copy it to `~/.cursor/plugins/local/labit`.
106
+ - Copilot CLI: `copilot plugin marketplace add leonidstern/labit` (it reads the Claude plugin files).
107
+ - Others with Agent Plugins: `plugin.json` and `mcp.json` at the repo root.
108
+ - **Just the skill:** `npx skills add leonidstern/labit` puts it where your agent reads skills (`.agents/skills/` for most). Then "start labit" works as in Claude. To point every session at it, add to your `AGENTS.md`:
109
+ ```md
110
+ Pin comments on pages: labit. Say "start labit" to listen; see .agents/skills/labit/SKILL.md.
111
+ ```
112
+ - **Cloud lab:** give the agent the `/_lab/agent/<page path>` link. It's plain text with every open comment.
113
+ - **Local lab:** paste the prompt from [Local lab](#local-lab), or use the skill. labit tells the agent apart by itself: the page says "talking to Codex", and replies are signed "Codex".
114
+ - **Agents that aren't woken when a background command ends** (Codex, Antigravity): run `wait --timeout 50` in the foreground, in a loop. The MCP `wait` returns after 50 seconds by default for the same reason (Codex and Cursor stop tool calls at 60).
115
+
116
+ | Agent | Known by | MCP | Back to the session |
117
+ |---|---|---|---|
118
+ | Claude Code | `CLAUDECODE` | `claude mcp add labit -- npx @leonidstern/labit@latest mcp` | link, or `claude --resume` |
119
+ | Codex | `CODEX_THREAD_ID` | `codex mcp add labit -- npx @leonidstern/labit@latest mcp` | `codex resume <id>` (tap the label to copy) |
120
+ | Cursor | `CURSOR_AGENT` | its MCP settings | |
121
+ | Amp | `AMP_CURRENT_THREAD_ID` | its MCP settings | thread link |
122
+ | opencode | `OPENCODE_CLIENT` | its MCP settings | |
123
+ | Antigravity | `ANTIGRAVITY_AGENT` | its MCP settings | |
124
+ | Copilot CLI | set `LAB_AGENT=copilot` | its MCP settings | |
125
+
126
+ - **Choose:** `LAB_AGENT=<name>` overrides who is listening (any name), and `LAB_AGENT_NAME` signs replies.
127
+ - **Codex's sandbox:** if `wait` or `reply` can't reach the lab, labit says so. Use the MCP tools, or allow it: `-c sandbox_workspace_write.network_access=true`.
128
+
129
+ ```sh
130
+ npx @leonidstern/labit@latest # start the lab in the project
131
+ npx @leonidstern/labit reply <id> "Done: …" # the agent answers on a pin
132
+ ```
133
+
134
+ The MCP server finds the project from the client's root folder or the shell's folder; if it can't, its tools take a `dir`.
135
+
136
+ ## Updating
137
+
138
+ - **The command:** start labit with `npx @leonidstern/labit@latest` and npx fetches the newest version (plain `npx @leonidstern/labit` may reuse an older copy it keeps). When a newer one is out, labit says so as it starts; it checks npm at most once a day. `LABIT_NO_UPDATE_CHECK=1` turns that off.
139
+ - **The Claude Code plugin:** `claude plugin marketplace update leonidstern`, then `claude plugin update labit@leonidstern`.
140
+ - **The MCP server:** added with `@latest` (as above), it starts the newest version each time.
141
+ - **Your cloud lab:** sync your fork of labit with this repo on GitHub ("Sync fork") and redeploy; every site on the lab gets the new widget from the lab domain.
142
+
143
+ ## Both
144
+
145
+ ![A person pins, the agent GETs one link as plain text, then opens the exact file, line, pixel or second](docs/how-agents-see-comments.png)
146
+
147
+ - **Page hints:** `data-uncommentable` keeps comments off a part of the page; `data-comment-target` pins any click inside to that element. Same names as Claude artifact comments.
148
+ - **Theme:** set `--lab-accent`, `--lab-bg`, `--lab-fg`, `--lab-radius` or `--lab-font` on `[data-lab-comments]`.
149
+
150
+ Development: `npm test` runs the local-mode checks (Node 22+, no packages). Changes are in [CHANGELOG.md](CHANGELOG.md).
151
+
152
+ Tested with Claude: on a page with a photo, code and a video, Fable, Sonnet and Haiku found every spot from the link alone (file, pixel, line, second), see [bench](bench/). Admin links and deleting are tested across three labs in [bench/labs](bench/labs/). The script is 49 KB gzipped and loads after the page. Links are hidden, not locked, so don't put anything confidential there.
153
+
154
+ MIT · made by [leonidstern](https://github.com/LeonidStern) · [OOZE](https://ooze.design)