leglas 0.4.0 → 0.5.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/README.md +27 -9
- package/dist/args.d.ts +2 -0
- package/dist/bin.js +797 -147
- package/dist/index.d.ts +1 -1
- package/dist/index.js +796 -147
- package/dist/shell/assets/index-B7_ncDLZ.js +14 -0
- package/dist/shell/assets/index-f2TzxtQm.css +1 -0
- package/dist/shell/index.html +2 -2
- package/package.json +3 -3
- package/dist/shell/assets/index-BQHDjn0q.css +0 -1
- package/dist/shell/assets/index-T-uR7kT7.js +0 -14
package/README.md
CHANGED
|
@@ -15,7 +15,7 @@
|
|
|
15
15
|
</p>
|
|
16
16
|
|
|
17
17
|
<p align="center">
|
|
18
|
-
<img src="https://raw.githubusercontent.com/FredAmartey/leglas/
|
|
18
|
+
<img src="https://raw.githubusercontent.com/FredAmartey/leglas/main/.github/assets/screenshots/rail-single.jpg" width="900" alt="The Leglas interface: a rail of three design directions on the left, and the selected one running as the real app filling the rest of the window" />
|
|
19
19
|
</p>
|
|
20
20
|
|
|
21
21
|
<p align="center"><i>Every direction in the rail, the selected one running as your actual app. Arrow keys flip between them.</i></p>
|
|
@@ -46,7 +46,7 @@ and sessions that clean up after themselves.
|
|
|
46
46
|
## What you can do with Leglas
|
|
47
47
|
|
|
48
48
|
<p align="center">
|
|
49
|
-
<img src="https://raw.githubusercontent.com/FredAmartey/leglas/
|
|
49
|
+
<img src="https://raw.githubusercontent.com/FredAmartey/leglas/main/.github/assets/screenshots/compare-artboards.jpg" width="900" alt="The Leglas interface: a rail of three design directions on the left, and two of them running side by side as the real app, each labelled with its name." />
|
|
50
50
|
</p>
|
|
51
51
|
|
|
52
52
|
<p align="center"><i>Two directions for the same page, running side by side as the actual app.</i></p>
|
|
@@ -177,13 +177,26 @@ directly above the field. Your agent drains the queue with `npx leglas requests
|
|
|
177
177
|
it with `--clear`. Leglas runs no model of its own; your agent already
|
|
178
178
|
knows your conventions and your taste.
|
|
179
179
|
|
|
180
|
+
Most of what you would type into that field is the part describing where
|
|
181
|
+
the problem is, so you can point at it instead. Press `A` and the preview
|
|
182
|
+
becomes a picker: hovering outlines the element under the pointer,
|
|
183
|
+
clicking drops a numbered pin that takes a note, and dragging marks an
|
|
184
|
+
area and names every element inside it. The page still scrolls, so the
|
|
185
|
+
thing three screens down is as easy to mark as the headline. Annotations
|
|
186
|
+
are a request on their own, so the field can stay empty; leave three and
|
|
187
|
+
send once. Each one carries the element's own words, its tag and classes,
|
|
188
|
+
a path and the box it filled, and the request tells your agent which of
|
|
189
|
+
those to trust first, because the design moves under them by design. One
|
|
190
|
+
whose element has since gone turns amber rather than pointing confidently
|
|
191
|
+
at the wrong thing.
|
|
192
|
+
|
|
180
193
|
The line under the field is the whole status: whether anything is
|
|
181
194
|
listening, what you have queued, and when it has been picked up.
|
|
182
195
|
|
|
183
196
|
<p align="center">
|
|
184
|
-
<img src="https://raw.githubusercontent.com/FredAmartey/leglas/
|
|
185
|
-
<img src="https://raw.githubusercontent.com/FredAmartey/leglas/
|
|
186
|
-
<img src="https://raw.githubusercontent.com/FredAmartey/leglas/
|
|
197
|
+
<img src="https://raw.githubusercontent.com/FredAmartey/leglas/main/.github/assets/screenshots/field-idle.png" width="290" alt="The change field reading: Enter queues it for npx leglas requests" />
|
|
198
|
+
<img src="https://raw.githubusercontent.com/FredAmartey/leglas/main/.github/assets/screenshots/field-queued.png" width="290" alt="The change field reading: one change queued for your agent" />
|
|
199
|
+
<img src="https://raw.githubusercontent.com/FredAmartey/leglas/main/.github/assets/screenshots/field-pickedup.png" width="290" alt="The change field reading: Your agent is on it" />
|
|
187
200
|
</p>
|
|
188
201
|
|
|
189
202
|
<p align="center"><i>Nothing waiting, then a request queued, then an agent that has taken it.</i></p>
|
|
@@ -286,8 +299,11 @@ trace.
|
|
|
286
299
|
## The interface
|
|
287
300
|
|
|
288
301
|
Directions live in a rail on the left. The stage shows the active one in
|
|
289
|
-
a framed viewport at Full, 1440, 834
|
|
290
|
-
and tag directions from the rail
|
|
302
|
+
a framed viewport at Full, 1440, 834 or 390 wide. Rename, reorder, hide
|
|
303
|
+
and tag directions from the rail. Open the removed list to restore a
|
|
304
|
+
direction, delete one permanently or clear the full list. Machine-local
|
|
305
|
+
directions are removed from `.leglas/previews.json`; shared project config
|
|
306
|
+
and preview source files stay untouched. Layout is saved per project and
|
|
291
307
|
survives restarts and port changes.
|
|
292
308
|
|
|
293
309
|
Flipping shows a difference over time. A split shows it at once, which is
|
|
@@ -305,8 +321,9 @@ drawn at and the scale it is shown at. If you want the narrow rendering,
|
|
|
305
321
|
that is what the tools popover's "Scale each side to fit" switch is for.
|
|
306
322
|
|
|
307
323
|
Arrows move between directions, `1` to `9` jump straight to one, `R` asks
|
|
308
|
-
for a change to the one you are on, `
|
|
309
|
-
and `B` collapses the rail. Press `?`
|
|
324
|
+
for a change to the one you are on, `A` annotates the design itself,
|
|
325
|
+
`Cmd K` (`Ctrl K` elsewhere) searches and `B` collapses the rail. Press `?`
|
|
326
|
+
for the whole keymap.
|
|
310
327
|
|
|
311
328
|
A small tools widget floats over the stage and can be dragged to any
|
|
312
329
|
corner, because a floating control has a habit of sitting exactly where
|
|
@@ -343,6 +360,7 @@ leglas keep <title> Keep a winner and end the exploration
|
|
|
343
360
|
--count <n> (explore) How many directions, default 3
|
|
344
361
|
--based-on <title> (explore) Variants of an existing direction instead of new ones
|
|
345
362
|
--based-on <title> (add) The direction this preview is a variant of; groups the family
|
|
363
|
+
--asked-for <text> (add) The change that was asked for, in the words that were typed
|
|
346
364
|
--change <path> (classify) A file the direction creates or wires up
|
|
347
365
|
--rewrite <path> (classify) An existing file whose behaviour must change
|
|
348
366
|
--note <text> (add) Second line under the title
|
package/dist/args.d.ts
CHANGED
|
@@ -17,6 +17,8 @@ export type AddPreview = {
|
|
|
17
17
|
file: string | undefined;
|
|
18
18
|
/** The direction this preview is a variant of; the rail groups them. */
|
|
19
19
|
basedOn: string | undefined;
|
|
20
|
+
/** The change that was asked for, in the words that were typed. */
|
|
21
|
+
askedFor: string | undefined;
|
|
20
22
|
};
|
|
21
23
|
export type ClassifyChange = {
|
|
22
24
|
path: string;
|