diff options
| author | Gabriel Schneider <[email protected]> | 2026-11-20 03:20:39 -0300 |
|---|---|---|
| committer | Gabriel Schneider <[email protected]> | 2026-11-20 04:00:32 -0300 |
| commit | a6c258bec5808ac2b6ef9d3362134e34e759c1c9 (patch) | |
| tree | f785b15b2a3bcd0f7d3e8f92d7948af634c52b69 /docs/typ/figures.typ | |
| parent | 1967cf64dc6d7490d386db874cf1866b764f235c (diff) | |
| download | pardes-a6c258bec5808ac2b6ef9d3362134e34e759c1c9.tar.gz pardes-a6c258bec5808ac2b6ef9d3362134e34e759c1c9.zip | |
docs: an attach is always a client, and a session registers again with a restarted daemon, in the documents: the manual's "How pardes runs" (docs/typ/running.typ: one Attach section, its figure of the in-place attach deleted from figures.typ, the glance and survival tables, the words), the guide's Sessions, the reference's /sessions and command line, the building chapter's daemon, the cheatsheet's line, `pardes help attach` (runtime/main.zig, docs/typ/command-line.txt from builtins-json), the Detach word's doc (core/builtins.zig, both builtins JSONs), docs/next-run.md as built (what went, counted on the change: 305 lines deleted, 94 added; the re-registration as built; --detach forking still not) with its figure (Before / Now), and the changelog's Unreleased; the book and the cheatsheet render (typst), tui shell-test 1046/1049 (3 skipped), core-test 855/1005 (150 skipped: the base's 856/1006 less the deleted `find` test)
Co-Authored-By: Claude Opus <[email protected]>
Claude-Session: https://claude.ai/code/session_016Y9MNBECMWcJD5pdS4SR6T
Diffstat (limited to 'docs/typ/figures.typ')
| -rw-r--r-- | docs/typ/figures.typ | 46 |
1 files changed, 9 insertions, 37 deletions
diff --git a/docs/typ/figures.typ b/docs/typ/figures.typ index 4ca51c1a..15364e47 100644 --- a/docs/typ/figures.typ +++ b/docs/typ/figures.typ @@ -201,37 +201,9 @@ wire((14.1, 3.0), (14.1, 1.67), ends: none, dash: "dotted", label: [keeps each \ one open], at: (15.15, 2.33), width: 1.6) }) -/// `pardes attach work` to a session with no frontend: a terminal's and a -/// window's. -#let run-attach-detached() = drawn(alt: "pardes attach to a detached session: the terminal handed to the session through the daemon; for a window, the session opens its own again", { - import cetz.draw: * - // A terminal's session. - content((0, 8.75), anchor: "west", text(size: 8pt, weight: "bold")[a terminal's session: `pardes attach work`]) - screen(0, 6.4, 3.4, 1.7, [this terminal]) - proc(0, 3.9, 3.4, 2.0, "stub", "pardes attach work", - ("plain", [now the job your shell waits on]), ("plain", [holds nothing])) - daemon-box(5.5, 3.9) - proc(11.0, 3.9, 5.0, 4.2, "session", "pardes --detach=work", - core-truth, ptys, ninep("work"), - ("plain", [draws on this terminal now]), - ("plain", [the same process as before])) - wire((3.4, 4.8), (5.5, 4.8), label: [① this terminal \ and a pipe], at: (4.45, 5.32), width: 1.8) - wire((8.9, 4.8), (11.0, 4.8), dash: "dashed", label: [② handed on], at: (9.95, 5.15)) - wire((3.4, 7.25), (11.0, 7.25), ends: "both", label: [③ keys in, frames out], at: (7.2, 7.6)) - line((-0.1, 3.3), (16.1, 3.3), stroke: (paint: palette.rule, thickness: 0.6pt)) - // A window's session. - content((0, 2.85), anchor: "west", text(size: 8pt, weight: "bold")[a window's session: `pardes-gui attach work`]) - proc(0, 0, 3.4, 2.0, "other", "pardes-gui attach work", ("plain", [asks, then exits: no stub]), dash: "dashed") - daemon-box(5.5, 0) - proc(11.0, 0, 5.0, 2.3, "session", "pardes-gui --detach=work", - core-truth, ("plain", [opens its own window again])) - wire((3.4, 0.9), (5.5, 0.9), label: [① asks], at: (4.45, 1.25)) - wire((8.9, 0.9), (11.0, 0.9), dash: "dashed", label: [② "attach"], at: (9.95, 1.25)) -}) - -/// `pardes attach work` to a session that has a frontend (or is of the -/// other kind): a client. -#let run-attach-client() = drawn(alt: "pardes attach to a session with a frontend: a client process with its own replica core, joined through the daemon", { +/// `pardes attach work`: a client, whether or not the session still has +/// the frontend it was born with (here it has). +#let run-attach-client() = drawn(alt: "pardes attach: a client process with its own replica core, joined through the daemon", { import cetz.draw: * screen(0, 3.4, 3.0, 1.7, [its own terminal]) proc(0, 0, 4.8, 2.9, "session", "pardes", @@ -283,12 +255,12 @@ wire((10.6, 0.7), (12.2, 0.7), ends: "both", label: [a pty's bytes], at: (11.4, 1.05)) }) -// ---- docs/next-run.md: the ruled direction, not built ---- +// ---- docs/next-run.md: the ruling, built ---- -/// What `pardes attach` does today (four things) beside what it does once -/// "an attach is always a client" is built (one). Drawn by +/// What `pardes attach` did before 2026-11-20 (four things) beside what it +/// does since "an attach is always a client" was built (one). Drawn by /// docs/next-run.typ for the design note; no chapter shows it. -#let run-attach-before-after() = drawn(alt: "pardes attach today: four mechanisms; after: always a client", { +#let run-attach-before-after() = drawn(alt: "pardes attach before: four mechanisms; now: always a client", { import cetz.draw: * let row(x, y, when, typed, kind, said) = { content((x, y + 1.2), anchor: "west", text(size: small, style: "italic", fill: palette.tag-fg, when)) @@ -299,13 +271,13 @@ rect((x + 3.9, y), (x + 7.5, y + 0.95), fill: tint(c), stroke: 1.3pt + c, radius: 3pt) content((x + 5.7, y + 0.475), box(width: 3.4cm, align(center, text(size: small, said)))) } - content((0, 8.15), anchor: "west", text(size: 9pt, weight: "bold")[Today: four mechanisms]) + content((0, 8.15), anchor: "west", text(size: 9pt, weight: "bold")[Before: four mechanisms]) row(0, 6.0, [a terminal's session, detached], [pardes attach work], "session", [the session draws here; this process becomes its stub]) row(0, 4.3, [a window's session, detached], [pardes-gui attach work], "session", [the session opens its own window; this process exits]) row(0, 2.6, [it has a frontend, or is the other kind], [pardes attach work], "client", [a client: this process, with a replica]) row(0, 0.9, [on another machine], [pardes attach box:work], "client", [a client, through `ssh -L`]) line((7.95, -0.1), (7.95, 8.4), stroke: (paint: palette.rule, thickness: 0.8pt)) - content((8.45, 8.15), anchor: "west", text(size: 9pt, weight: "bold")[After: always a client]) + content((8.45, 8.15), anchor: "west", text(size: 9pt, weight: "bold")[Now: always a client]) row(8.45, 6.0, [any session on this machine], [pardes attach work], "client", [a client: this process, with a replica]) row(8.45, 4.3, [on another machine], [pardes attach box:work], "client", [a client, through `ssh -L`]) content((8.45, 2.85), anchor: "west", box(width: 7.5cm, text(size: small)[A session's own frontend is only the one it was born with: a Detach, or its terminal or window closing, leaves it detached for good, and each attach after is a client.])) |
