@leonidstern/labit 0.8.2 → 0.8.3

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.8.2",
3
+ "version": "0.8.3",
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
@@ -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, hold `D` and drag to draw on it (circle, arrow, underline, cross out), Shift-drag to quote words. `M` hides the comments.
17
+ It serves your HTML pages itself, or sits in front of your app's running dev server (Astro, Next, Vite…), 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
 
@@ -67,6 +67,8 @@ A lab for the people you work with, on your own Vercel: one address, a path per
67
67
  - 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.
68
68
  - 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.
69
69
  - 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.
70
+ - Signing in through the lab: an app whose sign-in sends you back to an allowed address (OAuth, "Sign in with…") only knows the dev server's port, so the round trip from the lab's port fails. Sign in on the dev server's own address first (`localhost:3000`): browsers share cookies across ports on `localhost`, so the lab's page is signed in too. Or add the lab's address (`http://localhost:4400/…`) to the app's allowed callback URLs.
71
+ - Git Bash on Windows turns `--page /spot/trade` into `C:/Program Files/Git/spot/trade`; labit stops and says so. Write the page without its first slash (`--page spot/trade`), or set `MSYS_NO_PATHCONV=1`.
70
72
  - 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.
71
73
  - 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.
72
74
  - 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.