@leonidstern/labit 0.7.0 → 0.8.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.
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "labit",
3
- "version": "0.7.0",
3
+ "version": "0.8.0",
4
4
  "description": "Read and answer labit pin comments in a local lab (wait, fix, reply on the pin).",
5
5
  "author": {
6
6
  "name": "leonidstern",
package/README.md CHANGED
@@ -27,6 +27,22 @@ It finds your running dev server (Astro, Next, Vite…) or serves plain HTML, an
27
27
 
28
28
  The plugin also wakes Claude for pins it missed: if you comment while it is busy building, or its `wait` lapsed, the pin comes in as its next turn the moment the current one ends, from any folder.
29
29
 
30
+ **Codex:** add the marketplace, install labit from it, and trust its hooks once with `/hooks`.
31
+
32
+ ```sh
33
+ codex plugin marketplace add leonidstern/labit
34
+ ```
35
+
36
+ **Cursor:** install labit from the repository as a plugin (it carries the skill and the hooks).
37
+
38
+ **opencode** (2.x): one file, in your project (or `~/.config/opencode/plugins/` for every project), and the skill from the CLI:
39
+
40
+ ```sh
41
+ mkdir -p .opencode/plugins && curl -fsSL https://raw.githubusercontent.com/leonidstern/labit/main/hooks/agent.mjs -o .opencode/plugins/labit.js
42
+ ```
43
+
44
+ Each gives your agent the skill and two hooks, with no MCP: while the session works, the pins it claimed show a live "session activity" line, and a pin that lands after it stopped listening comes in as its next turn (Cursor when the turn ends, opencode when the session goes idle, Codex when the turn ends or with your next message, since Codex can't be woken while idle). Without the hooks the agent still answers with `wait` and `reply`, as below.
45
+
30
46
  **Any other agent:** tell it to run these in your project.
31
47
 
32
48
  ```sh
@@ -43,12 +59,13 @@ Run each `wait` from the agent itself, never in a shell loop (`while true; do
43
59
 
44
60
  ## Good to know
45
61
 
46
- - `--wifi` lets your phone comment too. Each device opens a one-time link from `npx @leonidstern/labit@latest invite`, so being on the same wifi isn't enough. The pages still travel in the clear over the wifi.
62
+ - `--wifi` lets your phone comment too (`labit invite` turns it on in a running lab by itself, same address and pins; `labit --no-wifi` turns it off). Each device opens a one-time link from `npx @leonidstern/labit@latest invite`, so being on the same wifi isn't enough. The pages still travel in the clear over the wifi.
47
63
  - Agents learn how you like answers: reply as usual, and when you say an answer was too long or unclear, your message shows **rule?**. Tap it and the rule goes to `~/.config/labit/replies.md`, handed to every agent with your pins.
48
64
  - You name yourself once. The name is kept for this computer in `~/.config/labit/settings.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. `--page /path` makes the link open that page. Opening a used or old link again on a phone that's already in just takes you there, and a phone that keeps using the lab stays in.
49
- - Settings (port, your dev server, keys, how long the lab waits…): `labit.json` in the project and `~/.config/labit/settings.json` for you. `labit settings` shows them all; [docs/settings.md](docs/settings.md) explains each.
50
- - Comments stay in `.lab/` in your project. Add it to `.gitignore`.
51
- - `1` switches between comment and pointer (clicks are the page's own).
65
+ - Settings (port, your dev server, keys, the quick-action buttons of the comment box, how long the lab waits…): `labit.json` in the project and `~/.config/labit/settings.json` for you (the `actions` list is set only there, not on the page). `labit settings` shows them all; [docs/settings.md](docs/settings.md) explains each.
66
+ - A pin on a React, Vue, Next or Astro dev page also says which component drew it (`component:`) and where (`written at:`): React 18 file and line; Vue the file, no line; Next none (its built chunks are not source); Astro the file and line of what its compiler wrote. The agent never gets a guessed one.
67
+ - Comments stay in `.lab/` in your project. Add it to `.gitignore`. `labit gc` lists every lab folder you have used, its `.lab` size and what could go; it only reports.
68
+ - A click on the page pins a comment; the page's own links and buttons keep their clicks. Hold ⌥ to pin on anything, controls included.
52
69
  - No dependencies, Node 22+. `--help` lists everything else.
53
70
 
54
71
  Shared labs on a domain (comments from people you send a link to) come later.