leglas 0.3.0 → 0.4.1
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 +60 -8
- package/dist/bin.js +1063 -211
- package/dist/index.d.ts +1 -1
- package/dist/index.js +1063 -207
- package/dist/shell/assets/geist-cyrillic-ext-wght-normal-DjL33-gN.woff2 +0 -0
- package/dist/shell/assets/geist-cyrillic-wght-normal-BEAKL7Jp.woff2 +0 -0
- package/dist/shell/assets/geist-latin-ext-wght-normal-DC-KSUi6.woff2 +0 -0
- package/dist/shell/assets/geist-latin-wght-normal-BgDaEnEv.woff2 +0 -0
- package/dist/shell/assets/geist-vietnamese-wght-normal-6IgcOCM7.woff2 +0 -0
- package/dist/shell/assets/index-B1hUXNY3.js +14 -0
- package/dist/shell/assets/index-DCg7pmCj.css +1 -0
- package/dist/shell/index.html +2 -2
- package/dist/watch.d.ts +2 -45
- package/package.json +1 -1
- package/dist/shell/assets/index-Bl87Vq9G.js +0 -10
- package/dist/shell/assets/index-dMGYwlE1.css +0 -1
- package/dist/shell/assets/manrope-cyrillic-wght-normal-Dvxsihut.woff2 +0 -0
- package/dist/shell/assets/manrope-greek-wght-normal-DL7QRZyv.woff2 +0 -0
- package/dist/shell/assets/manrope-latin-ext-wght-normal-Ch3YOpNY.woff2 +0 -0
- package/dist/shell/assets/manrope-latin-wght-normal-DHIcAJRg.woff2 +0 -0
- package/dist/shell/assets/manrope-vietnamese-wght-normal-usUDDRr7.woff2 +0 -0
package/README.md
CHANGED
|
@@ -14,6 +14,12 @@
|
|
|
14
14
|
<a href="LICENSE"><img src="https://img.shields.io/npm/l/leglas" alt="license"></a>
|
|
15
15
|
</p>
|
|
16
16
|
|
|
17
|
+
<p align="center">
|
|
18
|
+
<img src="https://raw.githubusercontent.com/FredAmartey/leglas/pr-assets/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
|
+
</p>
|
|
20
|
+
|
|
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>
|
|
22
|
+
|
|
17
23
|
Code is becoming the source of truth. Features go from prompt to
|
|
18
24
|
working code in minutes, and mockups/design files eventually lag behind the product and drift out of sync. The
|
|
19
25
|
fastest teams already design in the medium they ship. Leglas is built
|
|
@@ -39,6 +45,12 @@ and sessions that clean up after themselves.
|
|
|
39
45
|
|
|
40
46
|
## What you can do with Leglas
|
|
41
47
|
|
|
48
|
+
<p align="center">
|
|
49
|
+
<img src="https://raw.githubusercontent.com/FredAmartey/leglas/pr-assets/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
|
+
</p>
|
|
51
|
+
|
|
52
|
+
<p align="center"><i>Two directions for the same page, running side by side as the actual app.</i></p>
|
|
53
|
+
|
|
42
54
|
- Pick any two variations for side-by-side comparison when it gets hard to choose.
|
|
43
55
|
- Name each direction, drag to reorder and organise your variants, set aside the ones that
|
|
44
56
|
don't feel right. Your actions on every idea survive a long exploration.
|
|
@@ -51,12 +63,23 @@ and sessions that clean up after themselves.
|
|
|
51
63
|
the spread, your agent supplies the taste.
|
|
52
64
|
- Ask for changes without leaving the comparison: describe what you
|
|
53
65
|
want on the direction you're looking at, and Leglas turns it into a
|
|
54
|
-
precise request for your agent, file path included.
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
66
|
+
precise request for your agent, file path included. The composer
|
|
67
|
+
carries its own agent picker, the way every chat you already use
|
|
68
|
+
carries a model picker: the CLIs found on your machine (Claude Code,
|
|
69
|
+
Codex, Cursor) are one click away next to the send button, each asked
|
|
70
|
+
for its login status so a signed-out CLI says so before a run instead
|
|
71
|
+
of failing one. Not on that list? Type the command that runs your
|
|
72
|
+
agent once, in the same menu, and Leglas hands it each request; or
|
|
73
|
+
connect an agent Leglas can't spawn (an IDE panel, an MCP host) with
|
|
74
|
+
the copy-paste MCP wiring behind "Connect another agent". Each run
|
|
75
|
+
reports in a card above the field: who is working, what file they
|
|
76
|
+
are touching, how long it has been, a stop button while it runs and
|
|
77
|
+
retry when it fails. Your agent, your subscription, no keys.
|
|
78
|
+
Prefer a terminal? `npx leglas watch` is the same loop with the
|
|
79
|
+
agent's own output scrolling by. In Claude Code, the Leglas MCP
|
|
80
|
+
server can also push each request straight into your open session as
|
|
81
|
+
a channel event (channels are a research preview: start Claude Code
|
|
82
|
+
with `--dangerously-load-development-channels
|
|
60
83
|
server:<your leglas server name>`).
|
|
61
84
|
- Keep the winner with one command. Leglas moves it into your source
|
|
62
85
|
tree and clears the exploration away.
|
|
@@ -154,6 +177,23 @@ directly above the field. Your agent drains the queue with `npx leglas requests
|
|
|
154
177
|
it with `--clear`. Leglas runs no model of its own; your agent already
|
|
155
178
|
knows your conventions and your taste.
|
|
156
179
|
|
|
180
|
+
The line under the field is the whole status: whether anything is
|
|
181
|
+
listening, what you have queued, and when it has been picked up.
|
|
182
|
+
|
|
183
|
+
<p align="center">
|
|
184
|
+
<img src="https://raw.githubusercontent.com/FredAmartey/leglas/pr-assets/field-idle.png" width="290" alt="The change field reading: Enter queues it for npx leglas requests" />
|
|
185
|
+
<img src="https://raw.githubusercontent.com/FredAmartey/leglas/pr-assets/field-queued.png" width="290" alt="The change field reading: one change queued for your agent" />
|
|
186
|
+
<img src="https://raw.githubusercontent.com/FredAmartey/leglas/pr-assets/field-pickedup.png" width="290" alt="The change field reading: Your agent is on it" />
|
|
187
|
+
</p>
|
|
188
|
+
|
|
189
|
+
<p align="center"><i>Nothing waiting, then a request queued, then an agent that has taken it.</i></p>
|
|
190
|
+
|
|
191
|
+
Pick an agent once and the same line shows it working: which file it is
|
|
192
|
+
editing, a cancel if you change your mind, a retry when a run goes
|
|
193
|
+
wrong. `npx leglas watch` in another terminal is the same loop with the
|
|
194
|
+
agent's own output in view, and it needs no flag once an agent has been
|
|
195
|
+
picked in the interface.
|
|
196
|
+
|
|
157
197
|
### MCP server
|
|
158
198
|
|
|
159
199
|
For agent hosts that cannot run shell commands, `leglas-mcp` exposes the
|
|
@@ -246,8 +286,11 @@ trace.
|
|
|
246
286
|
## The interface
|
|
247
287
|
|
|
248
288
|
Directions live in a rail on the left. The stage shows the active one in
|
|
249
|
-
a framed viewport at Full, 1440, 834
|
|
250
|
-
and tag directions from the rail
|
|
289
|
+
a framed viewport at Full, 1440, 834 or 390 wide. Rename, reorder, hide
|
|
290
|
+
and tag directions from the rail. Open the removed list to restore a
|
|
291
|
+
direction, delete one permanently or clear the full list. Machine-local
|
|
292
|
+
directions are removed from `.leglas/previews.json`; shared project config
|
|
293
|
+
and preview source files stay untouched. Layout is saved per project and
|
|
251
294
|
survives restarts and port changes.
|
|
252
295
|
|
|
253
296
|
Flipping shows a difference over time. A split shows it at once, which is
|
|
@@ -255,6 +298,15 @@ what you want for the last two directions in contention: press `C`, or
|
|
|
255
298
|
hover a direction and press its compare button, and it becomes the right
|
|
256
299
|
pane while the active direction holds the left.
|
|
257
300
|
|
|
301
|
+
A split does not hand each side half the room. An app given half the room
|
|
302
|
+
crosses its own breakpoints and draws a different design, so you would be
|
|
303
|
+
choosing between two narrow renderings of directions meant for the wide
|
|
304
|
+
one. Instead each side is drawn at the width it had on its own and scaled
|
|
305
|
+
to fit, keeping the same proportions, so nothing reflows and flipping and
|
|
306
|
+
splitting agree about what the design is. Each pane says the width it is
|
|
307
|
+
drawn at and the scale it is shown at. If you want the narrow rendering,
|
|
308
|
+
that is what the tools popover's "Scale each side to fit" switch is for.
|
|
309
|
+
|
|
258
310
|
Arrows move between directions, `1` to `9` jump straight to one, `R` asks
|
|
259
311
|
for a change to the one you are on, `Cmd K` (`Ctrl K` elsewhere) searches
|
|
260
312
|
and `B` collapses the rail. Press `?` for the whole keymap.
|