@leonidstern/labit 0.6.3-main.8 → 0.7.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.
- package/.claude-plugin/marketplace.json +1 -1
- package/.claude-plugin/plugin.json +3 -3
- package/LICENSE +67 -21
- package/README.md +17 -11
- package/dist/local.mjs +144 -1461
- package/package.json +13 -9
- package/public/_lab/board.js +30 -0
- package/public/_lab/boardview.js +44 -0
- package/public/_lab/comments.js +27 -36
- package/public/_lab/components.js +2 -0
- package/public/_lab/draw.js +1 -0
- package/public/_lab/lab.css +35 -16
- package/public/_lab/switcher.js +2 -0
- package/skills/labit/SKILL.md +29 -18
- package/CHANGELOG.md +0 -306
- package/api/lab-comments.mjs +0 -443
- package/dist/chunk-AVHHABII.mjs +0 -69
- package/dist/chunk-DIR2O7SK.mjs +0 -13
- package/dist/chunk-LNYMIFDQ.mjs +0 -49
- package/dist/chunk-X4RYDWNI.mjs +0 -52
- package/dist/commands-OHKRNEW2.mjs +0 -277
- package/dist/devserver-KCLPMBNL.mjs +0 -56
- package/dist/flags-PGKWZHJC.mjs +0 -10
- package/dist/mcp-PALQPXC6.mjs +0 -261
- package/dist/proxy-FLFZV6EI.mjs +0 -74
- package/dist/settings-T6OQSQH4.mjs +0 -168
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "labit",
|
|
3
|
-
"version": "0.
|
|
4
|
-
"description": "Read and answer labit pin comments
|
|
3
|
+
"version": "0.7.0",
|
|
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",
|
|
7
7
|
"url": "https://github.com/LeonidStern"
|
|
8
8
|
},
|
|
9
9
|
"homepage": "https://github.com/leonidstern/labit",
|
|
10
10
|
"repository": "https://github.com/leonidstern/labit",
|
|
11
|
-
"license": "
|
|
11
|
+
"license": "PolyForm-Small-Business-1.0.0"
|
|
12
12
|
}
|
package/LICENSE
CHANGED
|
@@ -1,21 +1,67 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
1
|
+
Required Notice: Copyright 2026 Leonid Stern (https://github.com/leonidstern/labit)
|
|
2
|
+
|
|
3
|
+
# PolyForm Small Business License 1.0.0
|
|
4
|
+
|
|
5
|
+
<https://polyformproject.org/licenses/small-business/1.0.0>
|
|
6
|
+
|
|
7
|
+
## Acceptance
|
|
8
|
+
|
|
9
|
+
In order to get any license under these terms, you must agree to them as both strict obligations and conditions to all your licenses.
|
|
10
|
+
|
|
11
|
+
## Copyright License
|
|
12
|
+
|
|
13
|
+
The licensor grants you a copyright license for the software to do everything you might do with the software that would otherwise infringe the licensor's copyright in it for any permitted purpose. However, you may only distribute the software according to [Distribution License](#distribution-license) and make changes or new works based on the software according to [Changes and New Works License](#changes-and-new-works-license).
|
|
14
|
+
|
|
15
|
+
## Distribution License
|
|
16
|
+
|
|
17
|
+
The licensor grants you an additional copyright license to distribute copies of the software. Your license to distribute covers distributing the software with changes and new works permitted by [Changes and New Works License](#changes-and-new-works-license).
|
|
18
|
+
|
|
19
|
+
## Notices
|
|
20
|
+
|
|
21
|
+
You must ensure that anyone who gets a copy of any part of the software from you also gets a copy of these terms or the URL for them above, as well as copies of any plain-text lines beginning with `Required Notice:` that the licensor provided with the software. For example:
|
|
22
|
+
|
|
23
|
+
> Required Notice: Copyright Yoyodyne, Inc. (http://example.com)
|
|
24
|
+
|
|
25
|
+
## Changes and New Works License
|
|
26
|
+
|
|
27
|
+
The licensor grants you an additional copyright license to make changes and new works based on the software for any permitted purpose.
|
|
28
|
+
|
|
29
|
+
## Patent License
|
|
30
|
+
|
|
31
|
+
The licensor grants you a patent license for the software that covers patent claims the licensor can license, or becomes able to license, that you would infringe by using the software.
|
|
32
|
+
|
|
33
|
+
## Fair Use
|
|
34
|
+
|
|
35
|
+
You may have "fair use" rights for the software under the law. These terms do not limit them.
|
|
36
|
+
|
|
37
|
+
## Small Business
|
|
38
|
+
|
|
39
|
+
Use of the software for the benefit of your company is use for a permitted purpose if your company has fewer than 100 total individuals working as employees and independent contractors, and less than 1,000,000 USD (2019) total revenue in the prior tax year. Adjust this revenue threshold for inflation according to the United States Bureau of Labor Statistics' consumer price index for all urban consumers, U.S. city average, for all items, not seasonally adjusted, with 1982–1984=100 reference base.
|
|
40
|
+
|
|
41
|
+
## No Other Rights
|
|
42
|
+
|
|
43
|
+
These terms do not allow you to sublicense or transfer any of your licenses to anyone else, or prevent the licensor from granting licenses to anyone else. These terms do not imply any other licenses.
|
|
44
|
+
|
|
45
|
+
## Patent Defense
|
|
46
|
+
|
|
47
|
+
If you make any written claim that the software infringes or contributes to infringement of any patent, your patent license for the software granted under these terms ends immediately. If your company makes such a claim, your patent license ends immediately for work on behalf of your company.
|
|
48
|
+
|
|
49
|
+
## Violations
|
|
50
|
+
|
|
51
|
+
The first time you are notified in writing that you have violated any of these terms, or done anything with the software not covered by your licenses, your licenses can nonetheless continue if you come into full compliance with these terms, and take practical steps to correct past violations, within 32 days of receiving notice. Otherwise, all your licenses end immediately.
|
|
52
|
+
|
|
53
|
+
## No Liability
|
|
54
|
+
|
|
55
|
+
***As far as the law allows, the software comes as is, without any warranty or condition, and the licensor will not be liable to you for any damages arising out of these terms or the use or nature of the software, under any kind of legal claim.***
|
|
56
|
+
|
|
57
|
+
## Definitions
|
|
58
|
+
|
|
59
|
+
The **licensor** is the individual or entity offering these terms, and the **software** is the software the licensor makes available under these terms.
|
|
60
|
+
|
|
61
|
+
**You** refers to the individual or entity agreeing to these terms.
|
|
62
|
+
|
|
63
|
+
**Your company** is any legal entity, sole proprietorship, or other kind of organization that you work for, plus all organizations that have control over, are under the control of, or are under common control with that organization. **Control** means ownership of substantially all the assets of an entity, or the power to direct its management and policies by vote, contract, or otherwise. Control can be direct or indirect.
|
|
64
|
+
|
|
65
|
+
**Your licenses** are all the licenses granted to you for the software under these terms.
|
|
66
|
+
|
|
67
|
+
**Use** means anything you do with the software requiring one of your licenses.
|
package/README.md
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
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
|
-
[](https://www.npmjs.com/package/@leonidstern/labit) [](https://github.com/leonidstern/labit/actions/workflows/test.yml) [](https://www.npmjs.com/package/@leonidstern/labit) [](https://github.com/leonidstern/labit/actions/workflows/test.yml) [](LICENSE)
|
|
4
4
|
|
|
5
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
6
|
|
|
@@ -14,7 +14,7 @@ In your project:
|
|
|
14
14
|
npx @leonidstern/labit@latest
|
|
15
15
|
```
|
|
16
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.
|
|
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, hold `D` and drag to draw on it (circle, arrow, underline, cross out), Shift-drag to quote words. `M` hides the comments.
|
|
18
18
|
|
|
19
19
|
## Let your agent answer
|
|
20
20
|
|
|
@@ -25,30 +25,36 @@ It finds your running dev server (Astro, Next, Vite…) or serves plain HTML, an
|
|
|
25
25
|
/plugin install labit@leonidstern
|
|
26
26
|
```
|
|
27
27
|
|
|
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
|
+
|
|
28
30
|
**Any other agent:** tell it to run these in your project.
|
|
29
31
|
|
|
30
32
|
```sh
|
|
31
|
-
npx @leonidstern/labit wait # ends with your next comment
|
|
32
|
-
npx @leonidstern/labit reply <id> "
|
|
33
|
-
npx @leonidstern/labit
|
|
33
|
+
npx @leonidstern/labit@latest wait # ends with your next comment
|
|
34
|
+
npx @leonidstern/labit@latest reply <id> --done "…" # answers on the pin and closes it
|
|
35
|
+
npx @leonidstern/labit@latest reply <id> --progress "…" # during long work: one line next to its name, replaced by the next
|
|
36
|
+
npx @leonidstern/labit@latest pin <selector> "1. …" # its own pin on a spot: suggestions and questions, one per point, numbered
|
|
34
37
|
```
|
|
35
38
|
|
|
36
|
-
|
|
39
|
+
Run each `wait` from the agent itself, never in a shell loop (`while true; do … wait; done`): a loop keeps listening after its session is gone, so pins are handed to nobody. A pin handed over that gets no reply of any kind in 2 minutes (`LAB_ANSWER_MS`) is marked "not answered" and goes to the next wait, and the pill says "Claude isn't answering" until that session replies.
|
|
37
40
|
|
|
38
|
-
Everything merged to main, before it is released: `npx @leonidstern/labit@next`.
|
|
39
41
|
|
|
40
|
-
**Fewer permission prompts (Claude Code):** copy [examples/claude-settings.json](examples/claude-settings.json) to `.claude/settings.json` in your project (or merge its `permissions` into yours). labit's commands
|
|
42
|
+
**Fewer permission prompts (Claude Code):** copy [examples/claude-settings.json](examples/claude-settings.json) to `.claude/settings.json` in your project (or merge its `permissions` into yours). labit's commands then run without asking; `--wifi` and `invite`, which let another device in, still ask. Claude Code reads a project's allow rules only once you've opened the folder in it and trusted it.
|
|
41
43
|
|
|
42
44
|
## Good to know
|
|
43
45
|
|
|
44
|
-
- `--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.
|
|
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.
|
|
45
47
|
- 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.
|
|
46
48
|
- 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.
|
|
47
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.
|
|
48
50
|
- Comments stay in `.lab/` in your project. Add it to `.gitignore`.
|
|
49
|
-
- `1`
|
|
51
|
+
- `1` switches between comment and pointer (clicks are the page's own).
|
|
50
52
|
- No dependencies, Node 22+. `--help` lists everything else.
|
|
51
53
|
|
|
52
54
|
Shared labs on a domain (comments from people you send a link to) come later.
|
|
53
55
|
|
|
54
|
-
|
|
56
|
+
## License
|
|
57
|
+
|
|
58
|
+
[PolyForm Small Business 1.0.0](LICENSE). labit is free for people and companies with fewer than 100 people and under $1M in yearly revenue: use it, change it and ship it inside your own work. Larger companies need a paid license from the author. That makes labit source-available, not OSI open source. Versions already on npm (0.6.2 and earlier) stay under MIT.
|
|
59
|
+
|
|
60
|
+
Made by [leonidstern](https://github.com/LeonidStern) · [OOZE](https://ooze.design)
|