Page: scripts/lemmings/ui/LemDrive

Job: generated chapter

Level: F#

Source lines:

  • scripts/lemmings/ui/LemDrive/Outcome.fs:1

scripts/lemmings/ui/LemDrive

F#19 source file(s)3376 line(s) of code

grug measure this project from its own files. nobody write this page, so it cannot go stale. why the code is shaped so is for the topics.

what this repository says it is

What one driver call came to, the environment the harness hands the driver, and the numbered log every call leaves behind. Shared by the VS Code and Neovim commands so a transcript reads the same for both editors. scripts/lemmings/ui/LemDrive/Outcome.fs:1

where it start

a program start in

  • scripts/lemmings/ui/LemDrive/Program.fs

the files, in the order to read them

the project file lists these in compile order, and in F# a file can use only what came before it. read from the top and each file stand on the ones above. lines count code only, with comments and blanks left out.

#filelineswhat the file say about itself
1scripts/lemmings/ui/LemDrive/Outcome.fs76What one driver call came to, the environment the harness hands the driver, and the numbered log every call leaves behind. Shared by the VS Code and Neovim commands so a transcript reads the same for both editors. scripts/lemmings/ui/LemDrive/Outcome.fs:1
2scripts/lemmings/ui/LemDrive/Timeline.fs67The actions clock. Every driver command appends one JSON line to OUT/timeline.ndjson with the epoch-millisecond instant it started and the instant it ended, the editor, the command and its arguments. A separate unit records video and does… scripts/lemmings/ui/LemDrive/Timeline.fs:1
3scripts/lemmings/ui/LemDrive/Chord.fs134Key chords as a lemming writes them ("ctrl+shift+p", "alt+enter") and as Playwright wants them ("Control+Shift+P", "Alt+Enter"). Pure: no browser, no IO, so it is proven in the REPL before the driver ever uses it. scripts/lemmings/ui/LemDrive/Chord.fs:1
4scripts/lemmings/ui/LemDrive/Guard.fs101The few VS Code commands a lemming must not run, because the daemon they reach is the one Will is watching and every lemming shares. The extension's "SageFs: Stop Daemon" asks the daemon over HTTP to shut down, and "Switch Project" stops… scripts/lemmings/ui/LemDrive/Guard.fs:1
5scripts/lemmings/ui/LemDrive/VscCommand.fs154The closed set of things asked of VS Code. There is no verb that runs arbitrary script: every command is one of these, parsed here, and run by a function that matches on it exhaustively. Pure, so parsing is proven in the REPL and in the… scripts/lemmings/ui/LemDrive/VscCommand.fs:1
6scripts/lemmings/ui/LemDrive/Tour.fs205A tour is a plain text file of steps, run in order against the run's VS Code and daemon, writing numbered shots. This module is only the file format: it parses a tour into typed steps (and refuses a bad file with line numbers) and does… scripts/lemmings/ui/LemDrive/Tour.fs:1
7scripts/lemmings/ui/LemDrive/Snapshot.fs191What the VS Code window shows, as plain data, and how it reads as text. The driver fills `Facts` from the page; everything here is pure, so the rendering (what a model that cannot see the screen actually reads) is proven in the REPL with… scripts/lemmings/ui/LemDrive/Snapshot.fs:1
8scripts/lemmings/ui/LemDrive/Cdp.fs386Talks to the real VS Code over CDP with Playwright.NET and reads what the window shows into `Snapshot.Facts`. The only script strings here are three read-only readers (an attribute list, a bounding-box top, a pseudo-element's content):… scripts/lemmings/ui/LemDrive/Cdp.fs:1
9scripts/lemmings/ui/LemDrive/OutputChannel.fs131Reading the extension's own `SageFs` Output channel from the window. The daemon's /events stream carries eval output only for the session the daemon has active, so the channel (which keeps every result the extension printed) is the second… scripts/lemmings/ui/LemDrive/OutputChannel.fs:1
10scripts/lemmings/ui/LemDrive/Shot.fs149`vsc shot <name>`: the full window as a PNG, optional crops of one workbench part each, and a text sidecar carrying the same moment as text, so a reviewer (or a model that can read images) can cross-check what it sees against what the… scripts/lemmings/ui/LemDrive/Shot.fs:1
11scripts/lemmings/ui/LemDrive/Daemon.fs208What the harness reads from the ONE shared SageFs daemon (Will's dev daemon on 37749). Read only: the sessions list, and a few MCP tools called the way any client calls them. It never starts, stops or reconfigures the daemon, and it never… scripts/lemmings/ui/LemDrive/Daemon.fs:1
12scripts/lemmings/ui/LemDrive/Binding.fs39Giving a lemming its own session, and proving the window is attached to it. The extension binds a new window to the head of the shared daemon's session list (or to the one a person picks), so a lemming that just pressed Alt+Enter evaluated… scripts/lemmings/ui/LemDrive/Binding.fs:1
13scripts/lemmings/ui/LemDrive/Leftovers.fs66Which processes a finished run left alive. The runner used to count every process whose command line mentioned the run directory, so an unrelated shell waiting on the run's summary file was reported as a leftover (teardown.txt said… scripts/lemmings/ui/LemDrive/Leftovers.fs:1
14scripts/lemmings/ui/LemDrive/Vsc.fs545Runs one `VscCommand` against the real VS Code. Every command answers with what it did and then a brief of the window (focus, an open picker, a dialog, notifications, the status bar), so a model that cannot see the screen still sees what… scripts/lemmings/ui/LemDrive/Vsc.fs:1
15scripts/lemmings/ui/LemDrive/Shim.fs86The `sagefs` command on PATH inside the VS Code sandbox. The extension (and a terminal opened in that window) call `sagefs`; a real user has the CLI installed, so the window gets one. But the CLI can stop the shared daemon, sweep it, or… scripts/lemmings/ui/LemDrive/Shim.fs:1
16scripts/lemmings/ui/LemDrive/VscHost.fs397The harness's own commands on the VS Code window, run OUTSIDE the sandbox by the runner (`LemDrive host <verb> ...`). The lemming never sees these. host events --port N --out FILE record the daemon's eval output for the run host… scripts/lemmings/ui/LemDrive/VscHost.fs:1
17scripts/lemmings/ui/LemDrive/FellOver.fs136What the editor driver saw that the cmdc stream cannot show: calls that failed or were refused, a lemming that never touched the editor, a session that never reached the dashboard. Written to out/fellover.extra.json, which `LemScore score`… scripts/lemmings/ui/LemDrive/FellOver.fs:1
18scripts/lemmings/ui/LemDrive/Oracle.fs253The VS Code lemmings' oracles. The harness runs them OUTSIDE the sandbox, after the lemming is done and BEFORE its sessions are cleaned up, and never trusts what the model said: the evidence is the shared daemon's own session list, the… scripts/lemmings/ui/LemDrive/Oracle.fs:1
19scripts/lemmings/ui/LemDrive/Program.fs52begins with module LemDrive.Program scripts/lemmings/ui/LemDrive/Program.fs:1

what it use and who use it

2 package(s) named in LemDrive.fsproj: FSharp.Core, Microsoft.Playwright.

it reference no other project of this repo.

these projects of this repo reference it:

  • scripts/lemmings/ui/LemDrive.Tests

what test it

these test projects reference it:

  • scripts/lemmings/ui/LemDrive.Tests, 9 test file(s), 641 line(s)

where to look for trouble

the demon watch catalog match nothing here. it list only patterns grug know, so a quiet file can still hide behaviour.