@leonidstern/labit 0.0.0-stage → 0.6.1
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/.claude-plugin/marketplace.json +14 -0
- package/.claude-plugin/plugin.json +12 -0
- package/CHANGELOG.md +282 -0
- package/LICENSE +21 -0
- package/README.md +46 -2
- package/api/lab-comments.mjs +439 -0
- package/dist/chunk-T4IF6ZJQ.mjs +106 -0
- package/dist/commands-BPVIWBCF.mjs +255 -0
- package/dist/devserver-KCLPMBNL.mjs +56 -0
- package/dist/local.mjs +1487 -0
- package/dist/mcp-BKU67CST.mjs +192 -0
- package/dist/proxy-FLFZV6EI.mjs +74 -0
- package/package.json +49 -4
- package/public/_lab/comments.js +46 -0
- package/public/_lab/favicon.svg +1 -0
- package/public/_lab/lab.css +129 -0
- package/skills/labit/SKILL.md +57 -0
- package/skills/labit/zoom.md +29 -0
|
@@ -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.1",
|
|
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,282 @@
|
|
|
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.1 · 2026-11-16
|
|
8
|
+
|
|
9
|
+
- iPhones: a new comment no longer sometimes sits behind the keyboard's bar. When Safari (or Chrome) slid the page up for the keyboard instead of scrolling it, the widget counted that slide twice and saw no keyboard at all; it now measures the slide where WebKit measures boxes, from the screen's top.
|
|
10
|
+
- The page list: newest first, each page with its open comments and when it last changed, a summary line under the folder's name, and a filter once there are more than 8 pages (`/` to focus it).
|
|
11
|
+
- A flat drag no longer draws a green hairline across the page. Marking an area by dragging sideways (or straight down) made a rectangle with no height, which read as a line through everything rather than as something being marked. The outline now keeps a least size of 12 px each way while you drag — the size the saved area was already grown to.
|
|
12
|
+
- The bar: hover, pressed and "its menu is open" (⋯) use the first grey step after white, not the second, which read as a dirty block on the white bar; menu rows the same. The mode switch's "off" pin (3, cursor) is the pin of 1 now (white, the pins' thin edge, bold letters) with the word in grey; it had a thicker, darker ring.
|
|
13
|
+
- Zoom in the widget: 3 zooms in, 3 again zooms out (the pointer moves to 4; on phones a tap on the switch steps comment → go → in → out). A zoom is placed at once like a go, its pin shows arrows in or out, Command-Z takes it back, and the page scrolls to the block when it lands.
|
|
14
|
+
- A `#id` in a message links to that block on the page.
|
|
15
|
+
- Zoom, the lab side (plain HTML pages): a comment with `zoom: in` or `zoom: out` asks the agent for one block, a deeper look or the bigger picture, not a change. The agent hands it over with `labit zoom <id> <file>`; the lab places it next to the section the comment is in (a deeper look after, a bigger picture above) and names it; the agent's reply closes the zoom. Rules for agents: `skills/labit/zoom.md`. The widget's keys come next.
|
|
16
|
+
- Phones: the mark on the chat button sits on the word's baseline, 6 px from it (it hung 3 px low and 9 px away), and every sheet's grab handle is a pill with round ends.
|
|
17
|
+
- The widget ships minified again, its stylesheet too: 218 → 138 KB, 58.2 → 43.9 KB gzipped, 50.2 → 39.3 KB brotli. Minifying was built on 15 Nov and lost when that work moved onto main (#41). `npm run build` runs `scripts/build-widget.mjs` (esbuild's API through npx, still no dependencies), which also minifies `styles.css` as it goes in. The readable source stays `src/`.
|
|
18
|
+
- A tap on the "talking to" pill no longer copies the agent's resume command: it only says who listens.
|
|
19
|
+
- The page says which model the agent runs on: "talking to Claude · Sonnet 5.5 (project)". The agent says it with `wait --model "Sonnet 5.5"` (or the MCP `wait` tool's `model`); without it, LAB_MODEL or ANTHROPIC_MODEL when set, an id like claude-sonnet-5-5 read as "Sonnet 5.5". The skill now asks agents to pass it.
|
|
20
|
+
- Go for guests: with go on and no name saved yet (a guest's first pin), the hold opens a small card that asks only your name, with "go" already in it; send and it's a go pin. It used to open the full comment box, and nothing sent until you typed a comment too. Once the name is saved, a go hold sends straight away as before. On phones a hold now pins after 0.4 s (was 0.5 s): at 0.5 s it raced iOS's own long press, which sometimes selected text instead.
|
|
21
|
+
- Your name is remembered for this computer, not for one lab. The browser keeps it per origin and every lab takes its own port, so naming yourself in one lab left you a stranger in the next. Now the lab keeps the name you give in `~/.config/labit/me.json` (`XDG_CONFIG_HOME` is honoured) and hands it to the widget, so the next lab starts out knowing you. Phones too: `labit invite [name]` bakes a name into the one-time link — the one you give, or yours — and the device that opens it starts out named.
|
|
22
|
+
- On a phone, a tap on the send arrow sends on the first try. The arrow keeps the cursor in the box by preventing the default on pointerdown, and a prevented pointerdown can swallow the click that follows — the tap then only moved focus, the box went back to its one line, and it took a second tap to send. A touch now sends from the touch itself, and the click that may follow it is ignored.
|
|
23
|
+
- A comment you sent no longer comes back in the box. The kept draft was let go after the send, and posting redraws the box, so the new one read the words straight back in. It is let go before the send now, and handed back only if the send fails.
|
|
24
|
+
- New in the ⋯ menu: **pin over controls**. The page's own links and buttons keep their clicks, so a demo still works while comments are on — with this on they do not, and a click there places a comment, as option-click always has. Remembered per browser.
|
|
25
|
+
- While you are writing a comment, the page's own pointer is back. The crosshair (and the drawn pin that follows the mouse) said a click would drop another comment, mid-sentence, which is never what you meant. It returns the moment the box is empty again.
|
|
26
|
+
- While there are words in a box that you have not sent, the dev server's reload waits. Behind a dev server the lab now puts a small holder at the top of every page: it keeps a reload message until the last box is empty again (sent or cleared), then hands it on, so the page is never more than one comment behind and you never lose your place mid-sentence.
|
|
27
|
+
- A comment you are part-way through writing survives the page reloading under you. A dev server rebuilding the page (or a crash, or a tab closed by mistake) used to take the words with it. Now what is typed is kept as you type — per page, per thread — and comes back with it: a reply reopens its thread, and an unsent new comment comes back with its pin, on the spot you put it. It is dropped the moment it is sent.
|
|
28
|
+
- labit has a mark (our pin as a head, two slabs as ears) and uses it: the bar's listening pill shows it instead of a dot (dark with a blink now and then while an agent listens, green with twitching ears while one works, grey and still when nobody listens; same pill size), and on phones it sits on the chat button. The lab's own screens (page list, not found, the one-time-link screen) open with it. A page with no tab icon of its own gets labit's in a local lab. The README carries it beside the name.
|
|
29
|
+
- A pin whose element is gone now waits beside the content (in the gutter left of what it sat in), not 10 px from the window's left edge. On a wide window with a centred column those pins were hundreds of px from the page and read as lost. Phones and full-width pages are unchanged.
|
|
30
|
+
- Computers: a click on the page's own controls is the page's, and the pin pointer steps aside over them: links and buttons as before, and now anything the page gives a hand pointer (a card, a demo you tap to play). Option-click still pins there.
|
|
31
|
+
- Pause motion (⋯ menu, P): everything that moves on the page stops where it is, so you can pin a moment of an animation; again to play on.
|
|
32
|
+
- Phones move more like native sheets (checked frame by frame in the iOS 27 simulator):
|
|
33
|
+
- Closing a sheet with the keyboard up takes the keyboard with it at once; the keyboard used to stay alone for 0.6 s after the sheet was gone.
|
|
34
|
+
- After you send, the sheet slides off with the keyboard; it used to ride the keyboard halfway down and vanish mid-screen.
|
|
35
|
+
- The dimmed page fades with the sheet's position, as it slides and while a finger drags it; it used to be gone while most of the sheet was still up.
|
|
36
|
+
- The first sheet after the page loads slides in; it used to show up already open.
|
|
37
|
+
- A new pin low on the page scrolls up above the sheet, so you see what you're commenting on.
|
|
38
|
+
- A pin's state change (Claude on it, done, a reply) eases in, and the ring fades in and out; they used to be cuts.
|
|
39
|
+
- Tapping "your name" no longer drops the sheet behind the keyboard, and Safari no longer offers "AutoFill Contact" there.
|
|
40
|
+
- The bar's buttons no longer stay grey after a tap.
|
|
41
|
+
- Pins keep their look but take a 44 pt tap: a finger near one opens it (they were 22 pt to hit).
|
|
42
|
+
- Sheets float as cards, as iOS 27's do: inset from the screen's edges, round at every corner, the page behind not dimmed. A tapped sheet grows out of what you tapped and shrinks back into it (after a send, into the new pin); a swipe still slides it down.
|
|
43
|
+
- The new comment card moves up with the keyboard instead of jumping there.
|
|
44
|
+
- From the motion lab (Leo's picks): after a send the card flies into the new pin, which pops in (B2), the keyboard waiting until it lands; the send arrow turns dark with a tiny pop when you start typing (A5); Claude's ring draws its arc in (C2).
|
|
45
|
+
|
|
46
|
+
- The widget is split into TypeScript modules in `src/widget/`: `composer` (the message box), `messages`, `list`, `chat`, `thread`, `sheets` (phone sheets, back gesture, keyboard fit) and `live` (live page updates), beside `anchoring` and `styles`. Its shared state is one object, so the parts can share it. Same behaviour; `src/comments.js` keeps setup, loading, drawing and the events (2,688 → 1,428 lines).
|
|
47
|
+
|
|
48
|
+
- The server is moving to TypeScript: all of `lib/` is TypeScript now (`dev`, `devserver`, `mcp`, `proxy`), and `local.mjs` hands its command line (`args`), agent detection (`agents`), the running-labs list (`labs`) and the commands that answer and exit (`commands`: preview, add, list, pages, wait, reply, resolve, invite) to their own files; it keeps the server. Node runs the `.ts` source directly while working on labit; npm gets a built copy, `dist/` (made by `npm run build:cli` before every pack), so the package stays plain JavaScript with no dependencies, now 109 kB instead of 120 kB.
|
|
49
|
+
- A phone on a `--wifi` lab now needs a one-time link (`labit invite`): one use, ten minutes, after which that browser keeps a signed cookie for a day. Being on the same wifi is no longer enough, so finding the port on a public network shows a gate and nothing else. The pages still travel unencrypted over the wifi.
|
|
50
|
+
|
|
51
|
+
## 0.6.0 · 2026-11-16
|
|
52
|
+
|
|
53
|
+
- 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).
|
|
54
|
+
- 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.
|
|
55
|
+
- 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`.
|
|
56
|
+
- Needs Node 22 or newer: Node 20 reached end of life in April 2026. CI tests Node 22, 24 and 26.
|
|
57
|
+
- 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).
|
|
58
|
+
- 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`.
|
|
59
|
+
- Each page's comments list is kept, compressed, until that page changes, instead of being built and compressed again for every page load.
|
|
60
|
+
- 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.
|
|
61
|
+
- 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.
|
|
62
|
+
- Command-Z (Control-Z) takes back the last pin or go placed from the tab, newest first (deleted on this computer, resolved for guests).
|
|
63
|
+
- 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.
|
|
64
|
+
- 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.
|
|
65
|
+
- 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.
|
|
66
|
+
- Going to a new comment ("N new" or J / K) puts the cursor in its reply box (computers).
|
|
67
|
+
- The bar's "N new" has no ‹ › arrows: a click goes to the next new comment, J and K step forward and back.
|
|
68
|
+
- 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.
|
|
69
|
+
- ‹ N new › counts new messages in done threads too.
|
|
70
|
+
- A thread's reopen / resolve / delete sit on the right, a size smaller, out of the reading flow.
|
|
71
|
+
- Washes set to 5 / 10 / 15 / 50 % for black and white, 15 / 30 / 50 % and solid for green.
|
|
72
|
+
- 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.
|
|
73
|
+
- 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.
|
|
74
|
+
- The browser tab shows new messages as "(3) Page title".
|
|
75
|
+
- The chat's top is just the grab strip (no empty title row), as tall as a thread's.
|
|
76
|
+
- 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).
|
|
77
|
+
- 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.
|
|
78
|
+
- The list shows each pin on one line (longer ones end in …); rows highlight in Apple's hover grey.
|
|
79
|
+
- 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.
|
|
80
|
+
- 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.
|
|
81
|
+
- 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.
|
|
82
|
+
- 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.
|
|
83
|
+
- 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.
|
|
84
|
+
- The chat has no "chat" title (phones and computers).
|
|
85
|
+
- Writing in a done thread reopens it on the page at once (the lab already reopened it on its side).
|
|
86
|
+
- 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`.
|
|
87
|
+
- On a computer a thread or new comment closes at once, like the chat (its fade-out flickered); phones still slide the sheet away.
|
|
88
|
+
- Lighter talk between the lab and the agent:
|
|
89
|
+
- 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.
|
|
90
|
+
- A new pin wakes the agent after 2 s of quiet (`LAB_SETTLE_MS`), so a quick run of pins goes over together.
|
|
91
|
+
- Pins leave out details agents rarely use (computed looks, colours, window size, CSS path); they stay in the full text at `/_lab/agent/<page>`.
|
|
92
|
+
- `reply … --wait` answers and listens again in one command.
|
|
93
|
+
- Done shows as a small green ✓ beside the name (like the ticks on messages), not "✅ done".
|
|
94
|
+
- 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.
|
|
95
|
+
- 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).
|
|
96
|
+
- Phones: tapping a pin moves the page so the pin sits above its thread sheet instead of under it.
|
|
97
|
+
- Router, narrowed after the big benchmark (v5 put back 15 fixes a run, 11 of them wrongly):
|
|
98
|
+
- 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.
|
|
99
|
+
- 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.
|
|
100
|
+
- 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.
|
|
101
|
+
- 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.
|
|
102
|
+
- 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`).
|
|
103
|
+
- 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.
|
|
104
|
+
- 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).
|
|
105
|
+
- 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.
|
|
106
|
+
- Keys swapped: M shows and hides comments (was C), C opens and closes the chat (was M).
|
|
107
|
+
- 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.
|
|
108
|
+
- 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.
|
|
109
|
+
- A newer version waits to reload until no thread, list or chat is open, so nothing moves while you read.
|
|
110
|
+
- Messages: no "↩ replied" mark, and an agent's name shows without its session id ("Claude", not "Claude · session 8a296ba1").
|
|
111
|
+
- 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.
|
|
112
|
+
- The ✓ / ✓✓ in a message's corner are as tall as the time's digits.
|
|
113
|
+
- The list's and chat's close button: hovering only darkens the cross (no circle behind it), and no "close" tooltip.
|
|
114
|
+
- Your own messages are soft green with dark text, not black.
|
|
115
|
+
- Go mode's pointer is a go pin (green teardrop with a white tick), clicking where its point is.
|
|
116
|
+
- 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.
|
|
117
|
+
- Switching go mode (V or the button) redraws nothing, so nothing flickers.
|
|
118
|
+
- 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.
|
|
119
|
+
- 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.
|
|
120
|
+
- The bar's "hide comments" reads just "hide".
|
|
121
|
+
- 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.
|
|
122
|
+
- 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).
|
|
123
|
+
- Replied and done show as small marks beside the name again (↩ replied, ✅ done), not inside the message's words.
|
|
124
|
+
- 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.
|
|
125
|
+
- "copy link" sits on the left side of the screen, beside who's listening; the bar stays on the right.
|
|
126
|
+
- The list's and the chat's close button is a round, quiet button with a drawn cross, darker on hover.
|
|
127
|
+
- The bar's pills show their keys: chat C, list L, go V, hide M (hidden on touch screens).
|
|
128
|
+
- Escape closes the chat and the list too (after an open thread or new comment).
|
|
129
|
+
- On a computer, opening the chat closes an open thread (and a new comment with nothing typed in it).
|
|
130
|
+
- Scrollbars inside the chat, threads and the list are thin, on a clear track, like macOS ones (CSS only).
|
|
131
|
+
- 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.
|
|
132
|
+
- 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).
|
|
133
|
+
- 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.
|
|
134
|
+
- 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.
|
|
135
|
+
- 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.
|
|
136
|
+
- 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.
|
|
137
|
+
- Links in the chat and in threads open in a new tab.
|
|
138
|
+
- 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.
|
|
139
|
+
- 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.
|
|
140
|
+
- 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.
|
|
141
|
+
- 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.
|
|
142
|
+
- Hovering a pin on quoted words lights them up; the quote's highlight is green, with no dotted box behind it.
|
|
143
|
+
- Phones: the sheet's grab strip is 44 px tall (it reaches a little above the sheet's edge); the bar looks the same.
|
|
144
|
+
- Phone sheets, from the bottom-sheet research (Vaul, Ionic, iOS and Android sheets):
|
|
145
|
+
- 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.
|
|
146
|
+
- 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.
|
|
147
|
+
- 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.
|
|
148
|
+
- 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.
|
|
149
|
+
- 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`.
|
|
150
|
+
- 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.
|
|
151
|
+
- Chat and list buttons stand out (bold) when something is new, and the chat marks where unread messages start with a "new" line.
|
|
152
|
+
- Resolving a thread closes its card.
|
|
153
|
+
- 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.
|
|
154
|
+
- 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.
|
|
155
|
+
- "copy link" keeps its width while it says "copied", so nothing beside it moves.
|
|
156
|
+
- On a computer, opening the chat puts the cursor in its message box.
|
|
157
|
+
- 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).
|
|
158
|
+
- 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.
|
|
159
|
+
- Phones: holding a link or image no longer starts iOS's drag, which cancelled the hold before the box could open the keyboard.
|
|
160
|
+
- 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.
|
|
161
|
+
- 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".
|
|
162
|
+
- 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.
|
|
163
|
+
- 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.
|
|
164
|
+
- 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.
|
|
165
|
+
- Chat: your messages show ✓ when sent and ✓✓ once handed to the agent, as in messengers.
|
|
166
|
+
- Phones: the page behind an open sheet no longer scrolls, even when you drag on a part of the sheet with nothing to scroll.
|
|
167
|
+
- 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.
|
|
168
|
+
- `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.
|
|
169
|
+
- Phones: the keyboard's ^ ˅ step to the previous or next pin while you write a reply, the keyboard staying up.
|
|
170
|
+
- The router, from the big-app benchmark (Haiku said Done on 29 of 30 pins, 25 were right):
|
|
171
|
+
- 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.
|
|
172
|
+
- 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.
|
|
173
|
+
- 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.
|
|
174
|
+
- Phones: a tap or a swipe down on the dimmed page above a sheet closes it (the tap now also works on iOS Safari).
|
|
175
|
+
- Phones: while a sheet is open, swiping down no longer triggers the browser's pull-to-refresh.
|
|
176
|
+
- 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.
|
|
177
|
+
- The list marks done threads with ✅ (resolved, fixed by the quick model, or answered "Done: …").
|
|
178
|
+
- 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.
|
|
179
|
+
- 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.
|
|
180
|
+
- Phones: the send button works on the first tap with the keyboard open (pressing it no longer takes the cursor out of the box).
|
|
181
|
+
- 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.
|
|
182
|
+
- 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.
|
|
183
|
+
- 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.
|
|
184
|
+
- 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).
|
|
185
|
+
- 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.
|
|
186
|
+
- 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.
|
|
187
|
+
- 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.
|
|
188
|
+
- 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.
|
|
189
|
+
- 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.
|
|
190
|
+
- 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.
|
|
191
|
+
- 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.
|
|
192
|
+
- 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.
|
|
193
|
+
- The quick step, from the fix benchmark:
|
|
194
|
+
- 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.
|
|
195
|
+
- When it passes, it says why ("PASS: needs a change in lib/orders.js"); the session gets that line with the pin.
|
|
196
|
+
- 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.
|
|
197
|
+
- The quick model's changes ride along with the next pins the session gets, for a glance (they never wake it by themselves).
|
|
198
|
+
- Every quick decision is a line in `.lab/quick.jsonl` (done, pass, put back; why; files; lines; seconds).
|
|
199
|
+
- 👍 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.
|
|
200
|
+
- Sharper pins, from a frontend fix benchmark against Agentation:
|
|
201
|
+
- 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).
|
|
202
|
+
- 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).
|
|
203
|
+
- 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).
|
|
204
|
+
- An area comment lists what it holds: the elements wholly inside it, each with its text, component and line.
|
|
205
|
+
- Locally the agent text says to answer with `reply`, not with a POST.
|
|
206
|
+
- Any agent, not just Claude:
|
|
207
|
+
- 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).
|
|
208
|
+
- 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.
|
|
209
|
+
- Fixed: the quick step signed every answer "Claude", even when `LAB_FAST_CMD` ran another tool.
|
|
210
|
+
- 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.
|
|
211
|
+
- `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.
|
|
212
|
+
- In Codex's sandbox, a `wait` or `reply` that can't reach the lab says why and how to get around it.
|
|
213
|
+
- 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.
|
|
214
|
+
- 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`.
|
|
215
|
+
- Faster, from a code review:
|
|
216
|
+
- the widget reads every pin's place once per redraw (150 pins: 11 layouts instead of 671 in ten redraws)
|
|
217
|
+
- its font files load only when comments open, so a reader downloads none (57 KB)
|
|
218
|
+
- 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)
|
|
219
|
+
- saving a CSS or JS file no longer makes labfb walk the folder again
|
|
220
|
+
- Fixed: a mistyped flag on any command is refused (it used to end up in a reply's text); `--` ends the flags.
|
|
221
|
+
- Fixed: `labfb preview` under npx names the package instead of npx's cache path, and keeps a bare `--proxy` bare.
|
|
222
|
+
- Fixed: a pin drag cut short by a redraw left a scroll listener behind.
|
|
223
|
+
- 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.
|
|
224
|
+
- `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.
|
|
225
|
+
- 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.
|
|
226
|
+
- 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.
|
|
227
|
+
- `labfb mcp` (optional): an MCP server over stdin/stdout with the tools `comments`, `reply` and `wait`, for agents with MCP. No new dependencies.
|
|
228
|
+
- 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.
|
|
229
|
+
- README: "Other agents": using labfb with Codex, Cursor, Gemini CLI or a script (`LAB_AGENT_NAME`, `LAB_FAST_CMD`, `LAB_MODEL`).
|
|
230
|
+
|
|
231
|
+
## 0.5.0 · 2026-11-14
|
|
232
|
+
|
|
233
|
+
- 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.
|
|
234
|
+
- 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.
|
|
235
|
+
- 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.
|
|
236
|
+
- 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.
|
|
237
|
+
- 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.
|
|
238
|
+
- 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.
|
|
239
|
+
- `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.
|
|
240
|
+
- 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.
|
|
241
|
+
- `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.
|
|
242
|
+
- 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.
|
|
243
|
+
- 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.
|
|
244
|
+
- 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.
|
|
245
|
+
- Pins say more, so an agent finds the spot from the text alone (found with the benchmark in `bench/situations*`):
|
|
246
|
+
- 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>`
|
|
247
|
+
- the blocks above and below a click on empty space, and the page y; light or dark (the colour behind the pin)
|
|
248
|
+
- 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)
|
|
249
|
+
- code: the page's own line numbers in excerpts, lines drawn one element per line (Docusaurus), and a block's title next to it
|
|
250
|
+
- animated pictures: a rough time since they loaded (a page can't read which frame is showing)
|
|
251
|
+
- Option-click is for commenting only: the page never sees it, so menus, buttons and folds don't act before the pin lands.
|
|
252
|
+
- 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.
|
|
253
|
+
|
|
254
|
+
## 0.4.0 · 2026-11-14
|
|
255
|
+
|
|
256
|
+
- Package: `npx @leonidstern/labfb <folder>`, `--version`, `npm test`, CI on Node 20, 22 and 24.
|
|
257
|
+
- Claude plugin: `/plugin marketplace add leonidstern/labfb`, then `/plugin install labfb@leonidstern`. The skill moved to `skills/labfb/`.
|
|
258
|
+
- Delete asks inside the card, not with the browser's dialog.
|
|
259
|
+
- Hold Option to comment on links and buttons, also while comments are hidden with `c`.
|
|
260
|
+
- Posting a new comment closes its card; the pin stays.
|
|
261
|
+
- 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.
|
|
262
|
+
- Replies use the comment id (numbers shift after a delete).
|
|
263
|
+
- Fixed: an unknown option was read as a folder name; paths with spaces or on Windows.
|
|
264
|
+
|
|
265
|
+
## 0.3.0 · 2026-11-14
|
|
266
|
+
|
|
267
|
+
- Local mode on a running dev server: `--proxy <port>` (Astro, Next, Vite).
|
|
268
|
+
- New replies show in the open card; the reply box takes focus.
|
|
269
|
+
- The label says whether Claude is listening, working, or away.
|
|
270
|
+
- Thin dotted area line that shows on any page; smooth send arrow.
|
|
271
|
+
|
|
272
|
+
## 0.2.0 · 2026-11-14
|
|
273
|
+
|
|
274
|
+
- Drag your own pin to move it.
|
|
275
|
+
- `data-uncommentable` and `data-comment-target`, the same names as Claude artifact comments.
|
|
276
|
+
- `--fast`: a quick model tries small changes first.
|
|
277
|
+
- `preview <folder>` for the Claude desktop app's preview pane.
|
|
278
|
+
|
|
279
|
+
## 0.1.0 · 2026-11-14
|
|
280
|
+
|
|
281
|
+
- Local mode: comments on pages on your computer, `wait` and `reply` for Claude.
|
|
282
|
+
- 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,47 @@
|
|
|
1
|
-
|
|
1
|
+
<h1><picture><source media="(prefers-color-scheme: dark)" srcset="docs/labit-mark-dark.svg"><img src="docs/labit-mark-light.svg" alt="" width="34" height="34" align="top"></picture> labit</h1>
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
[](https://www.npmjs.com/package/@leonidstern/labit) [](https://github.com/leonidstern/labit/actions/workflows/test.yml) [](LICENSE)
|
|
4
|
+
|
|
5
|
+
**Review is the new build.** Pin comments on your pages. Your coding agent reads them, changes the code, and answers on the pin.
|
|
6
|
+
|
|
7
|
+

|
|
8
|
+
|
|
9
|
+
## Start
|
|
10
|
+
|
|
11
|
+
In your project:
|
|
12
|
+
|
|
13
|
+
```sh
|
|
14
|
+
npx @leonidstern/labit@latest
|
|
15
|
+
```
|
|
16
|
+
|
|
17
|
+
It finds your running dev server (Astro, Next, Vite…) or serves plain HTML, and opens the page with comments on top. Click to comment, drag to mark an area. `M` hides the comments.
|
|
18
|
+
|
|
19
|
+
## Let your agent answer
|
|
20
|
+
|
|
21
|
+
**Claude Code:** install the plugin once, then say **"start labit"** in any project.
|
|
22
|
+
|
|
23
|
+
```text
|
|
24
|
+
/plugin marketplace add leonidstern/labit
|
|
25
|
+
/plugin install labit@leonidstern
|
|
26
|
+
```
|
|
27
|
+
|
|
28
|
+
**Any other agent:** tell it to run these in your project.
|
|
29
|
+
|
|
30
|
+
```sh
|
|
31
|
+
npx @leonidstern/labit wait # ends with your next comment
|
|
32
|
+
npx @leonidstern/labit reply <id> "Done: …" # answers on the pin
|
|
33
|
+
```
|
|
34
|
+
|
|
35
|
+
Or as an MCP server: `npx @leonidstern/labit@latest mcp`.
|
|
36
|
+
|
|
37
|
+
## Good to know
|
|
38
|
+
|
|
39
|
+
- `--wifi` lets your phone comment too. Each device opens a one-time link from `npx @leonidstern/labit invite`, so being on the same wifi isn't enough. The pages still travel in the clear over the wifi.
|
|
40
|
+
- You name yourself once. The name is kept for this computer in `~/.config/labit/me.json`, so every later lab starts out knowing you — browsers keep it per port, labs don't. `labit invite [name]` carries a name to a phone the same way.
|
|
41
|
+
- Comments stay in `.lab/` in your project. Add it to `.gitignore`.
|
|
42
|
+
- `3` is zoom, on plain HTML pages: a comment that asks your agent for a deeper look into what it's on (3 once) or the bigger picture around it (3 again). `1` comment, `2` go, `4` pointer.
|
|
43
|
+
- No dependencies, Node 22+. `--help` lists everything else.
|
|
44
|
+
|
|
45
|
+
Shared labs on a domain (comments from people you send a link to) come later.
|
|
46
|
+
|
|
47
|
+
MIT · made by [leonidstern](https://github.com/LeonidStern) · [OOZE](https://ooze.design)
|