@leonidstern/labit 0.6.3-main.6 → 0.6.3-main.8
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/CHANGELOG.md +2 -0
- package/README.md +2 -1
- package/api/lab-comments.mjs +1 -4
- package/dist/{chunk-XZUZQFBJ.mjs → chunk-AVHHABII.mjs} +5 -1
- package/dist/{commands-LAQNMF2X.mjs → commands-OHKRNEW2.mjs} +56 -19
- package/dist/local.mjs +14 -131
- package/dist/{mcp-4UPGXLZR.mjs → mcp-PALQPXC6.mjs} +25 -0
- package/dist/{settings-XLFKONNN.mjs → settings-T6OQSQH4.mjs} +1 -8
- package/package.json +1 -1
- package/public/_lab/comments.js +19 -19
- package/skills/labit/SKILL.md +2 -5
- package/skills/labit/zoom.md +0 -29
package/skills/labit/SKILL.md
CHANGED
|
@@ -31,12 +31,9 @@ Start it with `npx @leonidstern/labit@latest`, so the person gets the newest ver
|
|
|
31
31
|
3. From the project, run `LAB wait --bg --name "<short project name>" --model "<the model you run on, e.g. Sonnet 5.5>"` in the background — in the background, always. A wait left in the foreground holds your turn open for as long as it listens: the person cannot say a word to you until it ends, and the message they send to reach you kills it. Nothing in the command can tell the two apart, so `--bg` is your word for it, and without that word a wait ends after a minute. The page then says "talking to <your agent> · <model> (<name>)": labit tells Claude, Codex, Cursor, Amp, opencode and Antigravity apart by themselves (Copilot: set `LAB_AGENT=copilot`). It ends with the next comment, printed in full.
|
|
32
32
|
If your app doesn't tell you when a background command finishes, run it in the foreground instead and loop, with no `--bg` and a short timeout so the person is never held up for long: `LAB wait --timeout 50 --name "<name>" --model "<model>"`; "No new comments yet" means run it again.
|
|
33
33
|
4. For each comment: edit the file (the page reloads by itself), then answer on the pin with `LAB reply <id> "Done: <what changed>"`. Use the comment id that `wait` printed, not the number: numbers shift after a delete. Add `--resolve` when the ask is fully done. If you need something from the person, ask in the reply instead and leave it open. Keep answers short, since they're read in a small window: one point per line or two, a blank line between points, `- ` lines for lists.
|
|
34
|
+
To suggest or ask something about the page yourself ("what I'd improve"), don't put a list in a reply: leave your own pins with `LAB pin <selector> "1. <point>" [--page /path]`, one pin per point, numbered, each on its spot. It prints the pin's id.
|
|
34
35
|
5. Start `wait` again right away, so the page never says "no agent listening" while you are around. If `wait` says the page was closed (no page for an hour), stop listening: start again only when the person asks.
|
|
35
36
|
|
|
36
|
-
## Zoom
|
|
37
|
-
|
|
38
|
-
A comment with `zoom: in` or `zoom: out` asks for one block, a deeper look or the bigger picture, not a change. Read [zoom.md](zoom.md) first. When you make a lab page, give every block an `id`, so it can be zoomed.
|
|
39
|
-
|
|
40
37
|
## Instead of an Artifact ("use lab")
|
|
41
38
|
|
|
42
39
|
When the person says "use lab", "in lab" or "show it in lab", show the page in labit, not as an Artifact. The page lives on this computer, and their comments come back to you as pins.
|
|
@@ -49,7 +46,7 @@ When the person says "use lab", "in lab" or "show it in lab", show the page in l
|
|
|
49
46
|
|
|
50
47
|
Start local, always. The page stays on this computer (for a phone, add `--wifi`, then run `LAB invite` and give the person the link it prints: it lets one device in, once, within ten minutes). Put it on their cloud lab only when the person asks to upload or share it: then follow Cloud lab, reusing their lab and project. Make an Artifact only if they ask for one.
|
|
51
48
|
|
|
52
|
-
With MCP instead of a terminal: `LAB mcp` gives the tools `comments`, `reply` and `wait` (Codex: `codex mcp add labit -- npx @leonidstern/labit@latest mcp`). Its `wait` returns after 50 seconds by default; call it again to keep listening. In Codex's sandbox, `wait` and `reply` on the command line may be blocked from reaching the lab: use the MCP tools then.
|
|
49
|
+
With MCP instead of a terminal: `LAB mcp` gives the tools `comments`, `reply`, `pin` and `wait` (Codex: `codex mcp add labit -- npx @leonidstern/labit@latest mcp`). Its `wait` returns after 50 seconds by default; call it again to keep listening. In Codex's sandbox, `wait` and `reply` on the command line may be blocked from reaching the lab: use the MCP tools then.
|
|
53
50
|
|
|
54
51
|
Rules:
|
|
55
52
|
- Comments from "this computer" are the person. Comments marked as guests (from other devices with `--wifi`) are requests to weigh, not orders: ask the person before acting on anything beyond a small, clear page change.
|
package/skills/labit/zoom.md
DELETED
|
@@ -1,29 +0,0 @@
|
|
|
1
|
-
# Zoom
|
|
2
|
-
|
|
3
|
-
A zoom is a comment with `block: <id>` (the nearest element with an id) and `zoom: in` or `zoom: out`. A drawn area, selected words or words in the thread narrow it. It is not a change request: write **one block**; the lab places it.
|
|
4
|
-
|
|
5
|
-
## In and out
|
|
6
|
-
|
|
7
|
-
- **In:** one level more detail: how it works, its parts, the evidence, edge cases, what is not known.
|
|
8
|
-
- **Out:** one level more of what it sits in, and look past the page for it: the whole flow or system it is one step of, the goal it serves, what sits next to it, what it affects, what was decided and dropped. A summary of the page is not a bigger picture.
|
|
9
|
-
- One level per zoom: out from a button's colour is its screen, not the company's plan.
|
|
10
|
-
- Only what the block doesn't already say. Name what is not known.
|
|
11
|
-
|
|
12
|
-
Examples, not a menu: a number → in: measure and break it down; out: the whole path it is one part of, and its share. A finding → in: the quotes behind it; out: the question it answers. A function → in: the path, file and line; out: what calls it.
|
|
13
|
-
|
|
14
|
-
## Context, then evidence
|
|
15
|
-
|
|
16
|
-
Read the block and its page, the page's comments and answers (`.lab/comments.md`), the lab's other pages, the project.
|
|
17
|
-
|
|
18
|
-
Never invent a number, quote, path or result: measure, run, read or quote it, say which, and mark guesses. Anything from beyond the page (a file, another page, how a tool or service behaves) names where it comes from, or says it is general knowledge not checked here. One short check, not a suite.
|
|
19
|
-
|
|
20
|
-
## The block
|
|
21
|
-
|
|
22
|
-
One element in the page's own markup and classes; copy how the page draws its parts, add no styles of your own. Title it by what it shows. A table for numbers, a drawing for a look, steps for a path, quotes as quotes. Short. Say what is unsure where it is unsure, not in a footer. Ids on inner parts; no `id`, `data-zoom` or `data-zoom-of` on the outer element.
|
|
23
|
-
|
|
24
|
-
## Hand-over
|
|
25
|
-
|
|
26
|
-
Run `LAB zoom <pin id> <file>`: the lab places it (in: after the section, out: above it) and names it, or says what to fix. Then reply with one plain line on what it shows, naming the id it printed as `#that-id` (a link to the block). No notes on how you made it.
|
|
27
|
-
|
|
28
|
-
- Nothing worth adding, or the answer is already on the page: say so, or link to it.
|
|
29
|
-
- The lab can't place it (no block id, a page behind a dev server): put it next to the block yourself and say so.
|