@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.
@@ -8,7 +8,7 @@
8
8
  {
9
9
  "name": "labit",
10
10
  "source": "./",
11
- "description": "Read and answer labit pin comments: cloud lab links and local mode."
11
+ "description": "Read and answer labit pin comments in a local lab."
12
12
  }
13
13
  ]
14
14
  }
@@ -1,12 +1,12 @@
1
1
  {
2
2
  "name": "labit",
3
- "version": "0.6.2",
4
- "description": "Read and answer labit pin comments: cloud lab links and local mode (wait, fix, reply on the pin).",
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": "MIT"
11
+ "license": "PolyForm-Small-Business-1.0.0"
12
12
  }
package/LICENSE CHANGED
@@ -1,21 +1,67 @@
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.
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
- [![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)
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) [![license: PolyForm Small Business](https://img.shields.io/badge/license-PolyForm%20Small%20Business-black)](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> "Done: …" # answers on the pin
33
- npx @leonidstern/labit pin <selector> "1. …" # its own pin on a spot: suggestions and questions, one per point, numbered
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
- Or as an MCP server: `npx @leonidstern/labit@latest mcp`.
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 and MCP tools 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.
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` comment, `2` go (every click approves what it's on), `3` pointer (clicks are the page's own).
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
- MIT · made by [leonidstern](https://github.com/LeonidStern) · [OOZE](https://ooze.design)
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)