@re-cinq/floor-studio 0.6.1 → 0.6.2
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 +110 -55
- package/dist/backend/run-start-request.js +1 -1
- package/dist/run/agent-command.js +2 -1
- package/dist/run/run-outcome.d.ts +2 -0
- package/dist/run/run-outcome.js +4 -2
- package/dist/run/run-preview.d.ts +3 -0
- package/dist/run/run-preview.js +9 -2
- package/dist/run/run-produces.d.ts +3 -1
- package/dist/run/run-produces.js +9 -7
- package/dist/run/run-result.js +2 -2
- package/dist/web/assets/index-Bb0f0ToW.css +1 -0
- package/dist/web/assets/index-bPZxSQCP.js +195 -0
- package/dist/web/index.html +2 -2
- package/package.json +5 -5
- package/dist/web/assets/index-C8lJqRJ8.css +0 -1
- package/dist/web/assets/index-DGskovNk.js +0 -194
package/README.md
CHANGED
|
@@ -1,17 +1,21 @@
|
|
|
1
1
|
# @re-cinq/floor-studio
|
|
2
2
|
|
|
3
|
-
A local studio for a collection of assembly lines
|
|
3
|
+
A local studio for a collection of assembly lines. A collection is a folder with one folder per assembly line, each holding `assembly-line.yaml` and `agents/<agent>.md`. The studio reads the folder and tells every client what it holds: each assembly line with its nodes, edges and problems, each agent with its settings and prompt, and each file it refused and why. A change to a file on disk reaches every client at once.
|
|
4
4
|
|
|
5
|
-
This package is the backend, the protocol, the command that starts them, and the page that draws the lines (`web/`). It is
|
|
5
|
+
This package is the backend, the protocol, the command that starts them, and the page that draws the assembly lines (`web/`). It is published to npm, so this starts it without a checkout:
|
|
6
6
|
|
|
7
|
-
|
|
7
|
+
```
|
|
8
|
+
npx @re-cinq/floor-studio path/to/collection
|
|
9
|
+
```
|
|
10
|
+
|
|
11
|
+
## The four parts
|
|
8
12
|
|
|
9
13
|
| part | where | what it does |
|
|
10
14
|
|---|---|---|
|
|
11
|
-
| Backend | `src/backend`, exported as `@re-cinq/floor-studio/backend` |
|
|
12
|
-
| Protocol | `src/protocol.ts`, exported as `@re-cinq/floor-studio/protocol` |
|
|
13
|
-
| Shell | `src/cli.ts`, the command `floor-studio` |
|
|
14
|
-
| Page | `web/`, built into `dist/web` |
|
|
15
|
+
| Backend | `src/backend`, exported as `@re-cinq/floor-studio/backend` | Headless. `startStudio({ dir, port, hostKeys, origins })` listens on `127.0.0.1` and speaks WebSocket only. It serves no page and knows nothing about a browser |
|
|
16
|
+
| Protocol | `src/protocol.ts`, exported as `@re-cinq/floor-studio/protocol` | Every frame as a zod schema and its type. It imports nothing from Node, so a browser bundle can take it |
|
|
17
|
+
| Shell | `src/cli.ts`, the command `floor-studio` | Parses the arguments, starts the backend, serves the built page from `dist/web` over plain HTTP on `127.0.0.1`, and opens the browser. A desktop app would replace only this part |
|
|
18
|
+
| Page | `web/`, built into `dist/web` | A Vite and React app, one client of the backend. It takes the socket and the token from its address and draws the collection |
|
|
15
19
|
|
|
16
20
|
## Run it from the checkout
|
|
17
21
|
|
|
@@ -27,30 +31,30 @@ floor-studio [dir] [--port <n>] [--host-key <name>]... [--no-open]
|
|
|
27
31
|
|
|
28
32
|
| option | meaning |
|
|
29
33
|
|---|---|
|
|
30
|
-
| `dir` |
|
|
31
|
-
| `--port <n>` |
|
|
32
|
-
| `--host-key <name>` |
|
|
33
|
-
| `--no-open` |
|
|
34
|
-
| `--help` |
|
|
34
|
+
| `dir` | The collection. Default: the current directory. A directory that does not exist is an error, exit 1 |
|
|
35
|
+
| `--port <n>` | The port of the backend's socket on `127.0.0.1`. Default: a free one. The page's own port is always a free one |
|
|
36
|
+
| `--host-key <name>` | A frontmatter key the host owns, accepted in an agent file and left out of its settings. Repeat it as often as needed. The `host_keys` of the collection's `floor-collection.yaml` count too, and are read again when that file changes |
|
|
37
|
+
| `--no-open` | Print the url and do not open a browser. Without it the studio waits 3 seconds and opens the default browser with `xdg-open`, `open` or `start`. It skips that when a page has connected by then, such as a tab left open from before a restart. Failing to open a browser is not an error |
|
|
38
|
+
| `--help` | Print the usage and exit 0. A bad argument prints the usage to standard error and exits 2 |
|
|
35
39
|
|
|
36
|
-
It prints one line, `floor-studio: <url>`. The url is the page's
|
|
40
|
+
It prints one line, `floor-studio: <url>`. The url is the page's. What the page needs is in the fragment, which a browser does not send to a server:
|
|
37
41
|
|
|
38
42
|
```
|
|
39
43
|
http://127.0.0.1:<page port>/#socket=ws%3A%2F%2F127.0.0.1%3A<socket port>&token=<token>
|
|
40
44
|
```
|
|
41
45
|
|
|
42
|
-
When `dist/web` does not exist the page server answers a plain page saying the page is not built. It serves only files under `dist/web`, with `Cache-Control: no-store
|
|
46
|
+
When `dist/web` does not exist the page server answers a plain page saying the page is not built. It serves only files under `dist/web`, with `Cache-Control: no-store`. It refuses a path that leaves the folder, by `..`, by a percent-encoded `..` or by a symlink.
|
|
43
47
|
|
|
44
48
|
## The page
|
|
45
49
|
|
|
46
|
-
`web/` holds the page: Vite, React and TypeScript, styled with plain CSS custom properties and CSS Modules in lore's look
|
|
50
|
+
`web/` holds the page: Vite, React and TypeScript, styled with plain CSS custom properties and CSS Modules in lore's look. The tokens are in `web/src/theme/theme.css`, the fonts are IBM Plex Sans and JetBrains Mono as local files, and the theme is light, dark or auto. It draws the assembly lines with [`@re-cinq/floor-graph`](../graph/README.md) and loads nothing from another host. Everything the page needs is bundled, so React, Vite and the test tools are devDependencies and the published package needs none of them at run time.
|
|
47
51
|
|
|
48
52
|
| where | what |
|
|
49
53
|
|---|---|
|
|
50
54
|
| `npm run build -w @re-cinq/floor-studio` | `tsc` writes `dist` except `dist/web`, then `vite build` writes only `dist/web` (it empties that folder and nothing else), so the two steps do not depend on their order |
|
|
51
|
-
| `dist/web/index.html` |
|
|
52
|
-
| `npm run dev:web -w @re-cinq/floor-studio` |
|
|
53
|
-
| `npm run typecheck -w @re-cinq/floor-studio` |
|
|
55
|
+
| `dist/web/index.html` | The built page, the one the command serves |
|
|
56
|
+
| `npm run dev:web -w @re-cinq/floor-studio` | The Vite dev server with hot reload |
|
|
57
|
+
| `npm run typecheck -w @re-cinq/floor-studio` | Checks `src` and `web` |
|
|
54
58
|
|
|
55
59
|
To work on the page, start a backend and give the dev server its address:
|
|
56
60
|
|
|
@@ -59,40 +63,91 @@ node packages/studio/dist/cli.js path/to/collection --no-open # prints floor
|
|
|
59
63
|
npm run dev:web -w @re-cinq/floor-studio # serves http://localhost:5173/
|
|
60
64
|
```
|
|
61
65
|
|
|
62
|
-
Open `http://localhost:5173/` with the fragment the command printed (`#socket=...&token=...`). The backend refuses a browser page whose origin it was not told
|
|
66
|
+
Open `http://localhost:5173/` with the fragment the command printed (`#socket=...&token=...`). The backend refuses a browser page whose origin it was not told. The command allows only its own page, as `127.0.0.1` or `localhost` on the page's port. To allow the dev server, start the backend from a script with `startStudio({ ..., origins: ["http://localhost:5173"] })`.
|
|
67
|
+
|
|
68
|
+
### Selection
|
|
69
|
+
|
|
70
|
+
The page keeps the selected assembly line and node in the fragment (`&line=<id>&node=<id>&tab=<tab>`), so a reload keeps the place.
|
|
71
|
+
|
|
72
|
+
- Clicking an edge or its label selects that edge and drops the node (`&edge=<from>|<to>|<event>`). A Line inspector shows its stations, its event, whether it is on the main path and its iteration limit.
|
|
73
|
+
- Choosing another node keeps the tab, or falls back to the first tab when that node lacks it. Escape clears the node and the tab.
|
|
74
|
+
- A `collection` push redraws the page in place and keeps the selection while the assembly line and node still exist.
|
|
63
75
|
|
|
64
|
-
|
|
76
|
+
### Screens
|
|
65
77
|
|
|
66
|
-
|
|
78
|
+
- No address.
|
|
79
|
+
- Connecting.
|
|
80
|
+
- Cannot connect. The page retries with backoff and reads the collection again once it is back.
|
|
81
|
+
- Refused: a wrong token or another protocol version. It is not retried.
|
|
82
|
+
- Unreadable: the collection could not be read, shown with the reason. An unasked `refused` push, such as the folder being deleted, replaces a collection already drawn.
|
|
83
|
+
- An empty folder.
|
|
84
|
+
- The line view.
|
|
67
85
|
|
|
68
86
|
### The inspector tabs
|
|
69
87
|
|
|
88
|
+
The right-hand inspector shows the selected node's id and station, with tabs by kind. A marker has none. A station has Station and Events. An agent adds Prompt, Run and the five settings tabs. The arrow keys move between tabs and wrap, and Home and End go to the first and last.
|
|
89
|
+
|
|
70
90
|
| tab | what it shows |
|
|
71
91
|
|---|---|
|
|
72
|
-
| Station | description,
|
|
73
|
-
| Events |
|
|
74
|
-
| Prompt |
|
|
75
|
-
| Run |
|
|
92
|
+
| Station | The description, each need with a sentence on how it is covered, each produce with the downstream nodes that read it, and the outcomes |
|
|
93
|
+
| Events | What starts the node: an edge, an outside event, or the assembly line's own start, with its condition. The outside events that answer it, with the outcome each reports. What it raises: its events, each outcome with the node its edge starts (or that the run stops there), and the assembly lines a settled run starts |
|
|
94
|
+
| Prompt | The agent's prompt with each `{placeholder}` marked by its state, by the same name rule the lint uses (`placeholderPattern`). A table of the placeholders with their source, state and the nodes that fill them. The needs the prompt never uses. An editor when connected |
|
|
95
|
+
| Run | Runs this one station on your machine, see [Running one station](#running-one-station) |
|
|
76
96
|
| Model | `model`, `permission_mode`, `max_turns`, `model_secret_key` |
|
|
77
97
|
| Tools | `skills`, `skills_source`, `disallowed_tools` |
|
|
78
98
|
| MCP | `mcp_servers` |
|
|
79
99
|
| Pod | `image`, `timeout_minutes`, `env`, `pod_resources` |
|
|
80
100
|
| Other | `tags`, `prices` and the rest of `config` |
|
|
81
101
|
|
|
102
|
+
The settings tabs show each setting the agent file writes. Without a studio connection a settings tab is a read-only `key: value` list, with objects and lists as compact JSON.
|
|
103
|
+
|
|
104
|
+
### Editing
|
|
105
|
+
|
|
106
|
+
Connected to a studio, the Prompt tab has an editor and "Save prompt". Each settings tab has a form and "Save settings", with a field per setting and nested ones such as `config` as YAML. Numbers stay numbers.
|
|
107
|
+
|
|
108
|
+
A save sends `agent.write` with the version of the file the edit started from. The backend refuses it when the file changed on disk since, or when the agent file it would write fails the same check the collection read uses. The tab shows the reason.
|
|
109
|
+
|
|
110
|
+
With no unsaved edits, a change on disk shows at once. With unsaved edits, the edits are kept and the tab offers "Take the version on disk" or "Keep my edits". A save before choosing is refused.
|
|
111
|
+
|
|
112
|
+
An agent extended by `<line>/agents/<agent>.extra.md` also gets an "Extra prompt" editor for that file's text on its own, saved with the same version check. The studio is told no shipped agents, so it shows no merged prompt and the collection still lists the extension as refused.
|
|
113
|
+
|
|
82
114
|
### Running one station
|
|
83
115
|
|
|
84
|
-
The Run tab of an agent node runs that station alone, with the agent CLI on your machine. It runs `claude` or `codex`, by the agent's model
|
|
116
|
+
The Run tab of an agent node runs that station alone, with the agent CLI on your machine. It runs `claude` or `codex`, by the agent's model. Any other model family is a blocker.
|
|
117
|
+
|
|
118
|
+
The tab has a field for each need:
|
|
119
|
+
|
|
120
|
+
| need | what you give | what the studio does |
|
|
121
|
+
|---|---|---|
|
|
122
|
+
| value | text | passes it as is |
|
|
123
|
+
| file | the path of a file | copies it to the need's path in the folder |
|
|
124
|
+
| git | the path of a checkout | links it at the need's path. It links the real checkout, so the agent's commits land in it |
|
|
125
|
+
|
|
126
|
+
Folder is where the run happens. Permission is `acceptEdits` or `bypass`, as in the pod.
|
|
127
|
+
|
|
128
|
+
Preview shows the rendered prompt, the command and the blockers. A blocker is a required need with no value, a source path that does not exist, or a model the studio cannot run. A run with blockers is refused.
|
|
85
129
|
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
130
|
+
Run starts it and Cancel stops it. The transcript streams in as what the agent said, each tool it called (`› Read tests.json`), each refusal in red, and the run's turns, time and cost. Raw shows the lines as `claude` printed them.
|
|
131
|
+
|
|
132
|
+
When the run ends the tab shows the agent's final answer under Answer. Its words are text, and any JSON object in it is laid out field by field, each list item a numbered block, with the `LORE_NODE_RESULT` line left out. Below it, each under its label:
|
|
133
|
+
|
|
134
|
+
- the outcome, which is the agent's verdict read from its final result
|
|
135
|
+
- the exit code, none when cancelled
|
|
136
|
+
- each produce as found or missing. A produce `from: output` is found when the agent gave a final answer
|
|
137
|
+
- the edge taken, which is also lit on the graph
|
|
138
|
+
- the events raised next
|
|
139
|
+
|
|
140
|
+
Two things match the pod. The run gets the agent's `config.env` over the studio's own environment, so `CLAUDE_CODE_DISABLE_CLAUDE_MDS` and the like apply. And `/workspace`, as the pod spells the working folder, is replaced by the picked folder in the prompt's text and in the `<name>_path` parameters.
|
|
90
141
|
|
|
91
142
|
The need values are saved in `.floor-studio/fixtures/<line>/<node>.json` and each run in `.floor-studio/runs/<id>.json`, both in the collection folder. The store folder gets a `.gitignore` of `*` on its first write. The run's id is kept in the page's fragment (`&run=<id>`), so after a reload the tab reads the transcript again with `run.read`, also for a run still going. Closing the studio cancels its runs.
|
|
92
143
|
|
|
93
144
|
### The environment
|
|
94
145
|
|
|
95
|
-
The sidebar lists the variables the settings name as `${NAME}`, with the files using each. A setting written that way shows as a chip, `env: NAME
|
|
146
|
+
The sidebar lists the variables the settings name as `${NAME}`, with the files using each. A setting written that way shows as a chip, `env: NAME`. The studio does not fill it.
|
|
147
|
+
|
|
148
|
+
Override opens the field to type a value in its place. Saved with nothing typed, the setting keeps its `${NAME}`.
|
|
149
|
+
|
|
150
|
+
The install that applies the collection fills the variable in once, and applying fails when it is not set. In Lore it is set on lore-api by its Helm chart, or in `.env.local` when Lore runs locally.
|
|
96
151
|
|
|
97
152
|
## Use the backend on its own
|
|
98
153
|
|
|
@@ -104,7 +159,7 @@ const studio = await startStudio({ dir: "collection", port: 0, hostKeys: ["revie
|
|
|
104
159
|
await studio.close();
|
|
105
160
|
```
|
|
106
161
|
|
|
107
|
-
`startStudio` resolves to `{ url, token, close }`. `url` has the real port and not the token. `close()` closes the sockets, the server and the watcher.
|
|
162
|
+
`startStudio` resolves to `{ url, token, close }`. `url` has the real port and not the token. `close()` closes the sockets, the server and the watcher. `startStudio` rejects when `dir` is not a directory.
|
|
108
163
|
|
|
109
164
|
## The protocol
|
|
110
165
|
|
|
@@ -112,43 +167,43 @@ Every frame is JSON in one WebSocket message. A request carries an `id` the clie
|
|
|
112
167
|
|
|
113
168
|
| direction | frame | when |
|
|
114
169
|
|---|---|---|
|
|
115
|
-
| backend to client | `{ type: "hello", version }` |
|
|
116
|
-
| client to backend | `{ id, type: "collection.read" }` |
|
|
117
|
-
| client to backend | `{ id, type: "agent.write", line, agent, prompt, settings?, version }` |
|
|
118
|
-
| client to backend | `{ id, type: "extra.write", line, agent, text, version }` |
|
|
119
|
-
| client to backend | `{ id, type: "fixture.write", line, node, needs }` |
|
|
120
|
-
| client to backend | `{ id, type: "fixture.read", line, node }` |
|
|
121
|
-
| client to backend | `{ id, type: "run.preview", line, node, fixture, folder, permission }` |
|
|
122
|
-
| client to backend | `{ id, type: "run.start", line, node, fixture, folder, permission }` |
|
|
123
|
-
| client to backend | `{ id, type: "run.cancel", run }` |
|
|
124
|
-
| client to backend | `{ id, type: "run.read", run, after }` |
|
|
125
|
-
| backend to client | `{ id, type: "result", result }` |
|
|
126
|
-
| backend to client | `{ id?, type: "refused", reason }` |
|
|
127
|
-
| backend to client | `{ type: "collection", collection }` |
|
|
128
|
-
| backend to client | `{ type: "run.output", run, line: { stream, text } }` |
|
|
129
|
-
| backend to client | `{ type: "run.ended", run, exitCode, outcome?, produced?, edge? }` |
|
|
170
|
+
| backend to client | `{ type: "hello", version }` | First, when a socket opens. `version` is `PROTOCOL_VERSION` |
|
|
171
|
+
| client to backend | `{ id, type: "collection.read" }` | The client wants the whole collection |
|
|
172
|
+
| client to backend | `{ id, type: "agent.write", line, agent, prompt, settings?, version }` | Rewrite an agent file. The body becomes `prompt`, and the frontmatter becomes `settings` when given, with comments and key order kept. `version` is the sha256 of the file as the client read it (each node's `agent.version`). Refused when the assembly line has no such agent, the file changed since, or the file it would write fails the agent-file check. The result is `{ written: <file> }` |
|
|
173
|
+
| client to backend | `{ id, type: "extra.write", line, agent, text, version }` | Replace the whole text of the agent's `.extra.md` (each node's `extra`). `version` is the sha256 of the file as read. Refused when the assembly line has no extra file for that agent or the file changed since. The text is saved ending in one newline. The result is `{ written: <file> }` |
|
|
174
|
+
| client to backend | `{ id, type: "fixture.write", line, node, needs }` | Save the need values (`needs`, a text for each need name) of a node in `.floor-studio/fixtures/<line>/<node>.json`. The result is `{ written: <file> }` |
|
|
175
|
+
| client to backend | `{ id, type: "fixture.read", line, node }` | Read the saved need values of a node. The result is `{ needs }`, empty when none were saved |
|
|
176
|
+
| client to backend | `{ id, type: "run.preview", line, node, fixture, folder, permission }` | What a run would do. The result is `{ prompt, command, copies, links, blockers }`. `permission` is `acceptEdits` or `bypass` |
|
|
177
|
+
| client to backend | `{ id, type: "run.start", line, node, fixture, folder, permission }` | Start a run of an agent node. Refused when the preview has blockers. The result is `{ run }`, the run's id |
|
|
178
|
+
| client to backend | `{ id, type: "run.cancel", run }` | Stop a running run. Refused when none runs under that id. The result is `{ cancelled: run }` |
|
|
179
|
+
| client to backend | `{ id, type: "run.read", run, after }` | The transcript of a run from line number `after` on, running or ended, also after a restart. The result is `{ lines, ended? }` |
|
|
180
|
+
| backend to client | `{ id, type: "result", result }` | The answer to a request. For `collection.read`, `result` is the collection view |
|
|
181
|
+
| backend to client | `{ id?, type: "refused", reason }` | A frame that is not JSON, fails its schema or has an unknown `type`, or a request that failed. The `id` is there when one could be read. Also pushed unasked, without an `id`, when a re-read after a change on disk fails, such as the folder being deleted. The socket stays open |
|
|
182
|
+
| backend to client | `{ type: "collection", collection }` | A file the collection reads changed on disk, whoever changed it. The whole view is sent again |
|
|
183
|
+
| backend to client | `{ type: "run.output", run, line: { stream, text } }` | One line a run wrote, on `stdout` or `stderr`, sent to every socket |
|
|
184
|
+
| backend to client | `{ type: "run.ended", run, exitCode, outcome?, produced?, edge? }` | A run ended. `exitCode` is `null` when it was cancelled, and then the rest is absent. Otherwise `outcome` is the agent's verdict, `produced` lists each file produce as `{ name, found }`, and `edge` is the `{ from, to, on }` the outcome takes (none from a terminal node) |
|
|
130
185
|
|
|
131
186
|
A new request type is one schema in `src/protocol.ts` and one handler in the table in `src/backend/requests.ts`.
|
|
132
187
|
|
|
133
188
|
### The collection view
|
|
134
189
|
|
|
135
|
-
`collectionView(files, hostKeys)` is pure and takes `{ path, text }` values. It answers plain JSON: `lines`, `agents`, `refused` and `counts`. The backend adds `folder`, the name of the collection's folder, to what it sends. A node that names a `fanout` carries it as `fanout: { over, to }`.
|
|
190
|
+
`collectionView(files, hostKeys)` is pure and takes `{ path, text }` values. It answers plain JSON: `lines`, `agents`, `refused` and `counts`. The backend adds `folder`, the name of the collection's folder, to what it sends. A node that names a `fanout` carries it as `fanout: { over, to }`. The types are in `src/view.ts` and exported from the protocol.
|
|
136
191
|
|
|
137
|
-
-
|
|
138
|
-
- A file that cannot be read at all
|
|
139
|
-
- Settings are shown as the file writes them
|
|
140
|
-
- Each node holds its station's `kind`, `description`, `outcomes`, `needs` and `produces
|
|
192
|
+
- An assembly line with problems is still shown. Each assembly line is read on its own, so one the collection's overlay would refuse appears with `problems` listing each one: `rule`, the `node` when there is one, and the `message`. The rules of the lint and the floor's own check of a line body are both there. A fault they both name is listed once, as the lint's rule.
|
|
193
|
+
- A file that cannot be read at all is in `refused` with its path and the reason. Examples are YAML that does not parse, an agent file with no frontmatter, or a `pipeline.yaml` beside an `assembly-line.yaml`. The other files still draw.
|
|
194
|
+
- Settings are shown as the file writes them. `${NAME}` is not filled from the environment.
|
|
195
|
+
- Each node holds its station's `kind`, `description`, `outcomes`, `needs` and `produces`. Each need has its `coverage` from `needCoverage`. Each produce has `readBy`, the nodes downstream of it (by `downstreamOf`) whose station needs it. The node has its `events` from `nodeEvents`. For an agent station whose agent a file defines, it also has `agent` and the `placeholders` of that agent's prompt from `promptPlaceholders`.
|
|
141
196
|
|
|
142
197
|
## Security
|
|
143
198
|
|
|
144
|
-
The backend writes files and starts processes, so no web page may reach it. Three rules
|
|
199
|
+
The backend writes files and starts processes, so no web page may reach it. Three rules keep it shut.
|
|
145
200
|
|
|
146
201
|
- It listens on `127.0.0.1` and never on `0.0.0.0`.
|
|
147
202
|
- A random token of 256 bits is made at start. A socket is accepted only when its url carries `?token=<token>`, compared in constant time. Without it the upgrade is refused with 401.
|
|
148
|
-
- A browser always sends an `Origin`. A socket that has one is accepted only when it is in the `origins` list given to `startStudio
|
|
203
|
+
- A browser always sends an `Origin`. A socket that has one is accepted only when it is in the `origins` list given to `startStudio`. The shell passes the origin of its own page, as `127.0.0.1` and as `localhost` on the same port. Any other origin is refused with 403, whatever the token. A client that sends no `Origin` is not a browser, and the token is enough.
|
|
149
204
|
|
|
150
205
|
A refused upgrade gets no socket at all.
|
|
151
206
|
|
|
152
207
|
## Change watching
|
|
153
208
|
|
|
154
|
-
The backend watches `dir` with `fs.watch` and `recursive: true`. It ignores a path the collection does not read and anything under a dot folder
|
|
209
|
+
The backend watches `dir` with `fs.watch` and `recursive: true`. It ignores a path the collection does not read and anything under a dot folder. It waits about 100 ms for the changes to settle, then pushes one `collection` frame to every open socket, or one `refused` frame without an `id` when the read fails. A file that is deleted or renamed is handled the same way. A watcher error does not stop the backend.
|
|
@@ -18,7 +18,7 @@ export const runStartHandler = {
|
|
|
18
18
|
const record = { lines: [] };
|
|
19
19
|
context.runs.set(run, record);
|
|
20
20
|
await context.writeRun(run, record);
|
|
21
|
-
const running = runProcess({ command: preview.command, folder: request.folder, env: context.runEnv }, (line) => {
|
|
21
|
+
const running = runProcess({ command: preview.command, folder: request.folder, env: { ...preview.env, ...context.runEnv } }, (line) => {
|
|
22
22
|
appendLine(record, line);
|
|
23
23
|
context.broadcast({ type: "run.output", run, line });
|
|
24
24
|
});
|
|
@@ -2,10 +2,11 @@ const permissionFlags = {
|
|
|
2
2
|
acceptEdits: ["--permission-mode", "acceptEdits"],
|
|
3
3
|
bypass: ["--dangerously-skip-permissions"],
|
|
4
4
|
};
|
|
5
|
+
/** `--setting-sources project`: the person's own settings and hooks stay out of the run, as in the pod, while their login still works (`--bare` would drop it). */
|
|
5
6
|
function claudeCommand({ settings, prompt, permission }) {
|
|
6
7
|
const disallowedTools = settings.disallowedTools ?? [];
|
|
7
8
|
const maxTurns = settings.maxTurns && settings.maxTurns > 0 ? String(settings.maxTurns) : undefined;
|
|
8
|
-
return ["claude", "--print", "--verbose", "--output-format", "stream-json", ...optionalFlag("--model", settings.model), ...permissionFlags[permission], ...disallowedTools.flatMap((tool) => ["--disallowedTools", tool]), ...optionalFlag("--max-turns", maxTurns), "--", prompt];
|
|
9
|
+
return ["claude", "--print", "--verbose", "--output-format", "stream-json", "--setting-sources", "project", ...optionalFlag("--model", settings.model), ...permissionFlags[permission], ...disallowedTools.flatMap((tool) => ["--disallowedTools", tool]), ...optionalFlag("--max-turns", maxTurns), "--", prompt];
|
|
9
10
|
}
|
|
10
11
|
function optionalFlag(flag, value) {
|
|
11
12
|
return value ? [flag, value] : [];
|
|
@@ -4,7 +4,9 @@ interface RunOutcomeInput {
|
|
|
4
4
|
lines: RunLine[];
|
|
5
5
|
station: StationBody;
|
|
6
6
|
}
|
|
7
|
+
/** The outcome the agent reported, and its final answer. */
|
|
7
8
|
export declare function runOutcome({ lines, station }: RunOutcomeInput): {
|
|
8
9
|
outcome: string;
|
|
10
|
+
answer?: string;
|
|
9
11
|
};
|
|
10
12
|
export {};
|
package/dist/run/run-outcome.js
CHANGED
|
@@ -1,8 +1,10 @@
|
|
|
1
1
|
// Reads how an agent run ended from the final "result" line of its stream-json transcript.
|
|
2
2
|
import { readAgentVerdict, requiredVerdict } from "@re-cinq/floor-assembly-lines";
|
|
3
|
+
/** The outcome the agent reported, and its final answer. */
|
|
3
4
|
export function runOutcome({ lines, station }) {
|
|
4
|
-
const
|
|
5
|
-
|
|
5
|
+
const answer = finalAgentText(lines);
|
|
6
|
+
const verdict = requiredVerdict(readAgentVerdict(answer, station.outcomes), station);
|
|
7
|
+
return { outcome: verdict.outcome, answer };
|
|
6
8
|
}
|
|
7
9
|
function finalAgentText(lines) {
|
|
8
10
|
const results = lines
|
|
@@ -6,6 +6,7 @@ export interface StationSettings {
|
|
|
6
6
|
config?: {
|
|
7
7
|
max_turns?: number;
|
|
8
8
|
disallowed_tools?: string[];
|
|
9
|
+
env?: Record<string, string>;
|
|
9
10
|
};
|
|
10
11
|
}
|
|
11
12
|
export interface RunPreviewInput {
|
|
@@ -22,5 +23,7 @@ export interface RunPreview {
|
|
|
22
23
|
copies: NeedCopy[];
|
|
23
24
|
links: NeedLink[];
|
|
24
25
|
blockers: string[];
|
|
26
|
+
/** The agent's `config.env`, laid over the studio's environment for the run. */
|
|
27
|
+
env: Record<string, string>;
|
|
25
28
|
}
|
|
26
29
|
export declare function runPreview({ station, prompt, settings, fixture, folder, permission }: RunPreviewInput): RunPreview;
|
package/dist/run/run-preview.js
CHANGED
|
@@ -6,11 +6,18 @@ import { vendorOf } from "./vendor.js";
|
|
|
6
6
|
import { workspaceOf } from "./workspace.js";
|
|
7
7
|
export function runPreview({ station, prompt, settings, fixture, folder, permission }) {
|
|
8
8
|
const { parameters, copies, links, missing } = workspaceOf({ station, fixture, folder });
|
|
9
|
-
const rendered = renderPrompt(prompt, parameters);
|
|
9
|
+
const rendered = inFolder(renderPrompt(prompt, parameters), folder);
|
|
10
10
|
const vendor = vendorOf(settings.model ?? "");
|
|
11
11
|
const unrunnable = runnableVendors.includes(vendor) ? [] : [unrunnableBlocker(settings.model ?? "", vendor)];
|
|
12
12
|
const command = unrunnable.length ? [] : agentCommand({ vendor, settings: commandSettingsOf(settings), prompt: rendered, permission });
|
|
13
|
-
return { prompt: rendered, command, copies, links, blockers: [...missing.map((name) => `"${name}" has no value`), ...unrunnable, ...relativeFolderBlockers(folder)] };
|
|
13
|
+
return { prompt: rendered, command, copies, links, env: agentEnvOf(settings), blockers: [...missing.map((name) => `"${name}" has no value`), ...unrunnable, ...relativeFolderBlockers(folder)] };
|
|
14
|
+
}
|
|
15
|
+
/** The pod's `/workspace` in the prompt's own text, pointed at the picked folder, as the parameters already are. */
|
|
16
|
+
function inFolder(text, folder) {
|
|
17
|
+
return text.replace(/\/workspace(?![\w-])/g, folder);
|
|
18
|
+
}
|
|
19
|
+
function agentEnvOf({ config }) {
|
|
20
|
+
return config?.env ?? {};
|
|
14
21
|
}
|
|
15
22
|
function relativeFolderBlockers(folder) {
|
|
16
23
|
return isAbsolute(folder) ? [] : [`the folder must be an absolute path: ${folder}`];
|
|
@@ -2,8 +2,10 @@ import type { StationBody } from "@re-cinq/floor-contracts";
|
|
|
2
2
|
interface ProducesFoundInput {
|
|
3
3
|
station: StationBody;
|
|
4
4
|
folder: string;
|
|
5
|
+
/** The agent's final answer, which a produce `from: output` holds. */
|
|
6
|
+
answer?: string;
|
|
5
7
|
}
|
|
6
|
-
export declare function producesFound({ station, folder }: ProducesFoundInput): Promise<{
|
|
8
|
+
export declare function producesFound({ station, folder, answer }: ProducesFoundInput): Promise<{
|
|
7
9
|
name: string;
|
|
8
10
|
found: boolean;
|
|
9
11
|
}[]>;
|
package/dist/run/run-produces.js
CHANGED
|
@@ -1,11 +1,13 @@
|
|
|
1
|
-
// Checks which declared
|
|
1
|
+
// Checks which declared produces of a station a run left: a file produce in the run folder, a produce from output in the agent's final answer.
|
|
2
2
|
import { access } from "node:fs/promises";
|
|
3
3
|
import { join } from "node:path";
|
|
4
|
-
export function producesFound({ station, folder }) {
|
|
5
|
-
const
|
|
6
|
-
return Promise.all(
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
4
|
+
export function producesFound({ station, folder, answer }) {
|
|
5
|
+
const checked = station.produces.filter((produce) => produce.kind === "file" && (produce.path || produce.from === "output"));
|
|
6
|
+
return Promise.all(checked.map(async (produce) => ({ name: produce.name, found: await isFound(produce, folder, answer) })));
|
|
7
|
+
}
|
|
8
|
+
function isFound(produce, folder, answer) {
|
|
9
|
+
if (produce.from === "output")
|
|
10
|
+
return Promise.resolve(Boolean(answer?.trim()));
|
|
11
|
+
return access(join(folder, produce.path)).then(() => true, () => false);
|
|
10
12
|
}
|
|
11
13
|
//# sourceMappingURL=run-produces.js.map
|
package/dist/run/run-result.js
CHANGED
|
@@ -4,7 +4,7 @@ import { producesFound } from "./run-produces.js";
|
|
|
4
4
|
export async function runResult({ exitCode, lines, station, line, node, folder }) {
|
|
5
5
|
if (exitCode === null)
|
|
6
6
|
return {};
|
|
7
|
-
const { outcome } = runOutcome({ lines, station });
|
|
8
|
-
return { outcome, produced: await producesFound({ station, folder }), edge: edgeTaken({ line, node, outcome }) };
|
|
7
|
+
const { outcome, answer } = runOutcome({ lines, station });
|
|
8
|
+
return { outcome, produced: await producesFound({ station, folder, answer }), edge: edgeTaken({ line, node, outcome }) };
|
|
9
9
|
}
|
|
10
10
|
//# sourceMappingURL=run-result.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
._panel_1j4sq_1,._canvas_1j4sq_2{flex-direction:column;flex:1;min-height:0;display:flex}._heading_1j4sq_8{font-size:var(--fs-md);font-weight:var(--fw-semibold);letter-spacing:-.01em;margin-bottom:var(--space-3)}._svg_1j4sq_14{display:block;overflow:visible}._familyAgent_1j4sq_20{--family:var(--chart-spec)}._familyService_1j4sq_23{--family:var(--chart-section)}._familyPerson_1j4sq_26{--family:var(--chart-feature)}._familyMarker_1j4sq_29{--family:var(--chart-neutral)}._legendBox_1j4sq_32{fill:color-mix(in srgb, var(--family) 12%, var(--bg-surface));stroke:var(--family);stroke-width:1.5px}._typeGlyph_1j4sq_37{fill:var(--family)}._stopCircle_1j4sq_40{fill:color-mix(in srgb, var(--family) 12%, var(--bg-surface));stroke:var(--family);stroke-width:1.5px}._stopTitle_1j4sq_45{fill:var(--text);font-size:var(--fs-xs);font-weight:var(--fw-bold)}._legend_1j4sq_32{gap:var(--space-2) var(--space-5);margin:var(--space-3) 0 0;color:var(--text-muted);font-size:var(--fs-xs);flex-wrap:wrap;padding:0;list-style:none;display:flex}._legendItem_1j4sq_60{align-items:center;gap:var(--space-2);display:inline-flex}._legendSwatch_1j4sq_65{flex:none}._empty_1j4sq_68{color:var(--text-muted);font-size:var(--fs-sm);margin-bottom:var(--space-6)}._edge_1j4sq_74{fill:none;stroke:var(--border);stroke-width:2px;stroke-linecap:round;stroke-linejoin:round;transition:stroke-width var(--transition), opacity var(--transition)}._edgeHit_1j4sq_84{fill:none;stroke:#0000;stroke-width:12px;pointer-events:stroke}._back_1j4sq_90,._self_1j4sq_91{stroke-dasharray:5 4}._arrowHead_1j4sq_94{fill:context-stroke}._toneOk_1j4sq_100{stroke:var(--success)}._toneWarn_1j4sq_103{stroke:var(--warning)}._toneErr_1j4sq_106{stroke:var(--danger)}._toneNeutral_1j4sq_109{stroke:var(--border)}._edge_1j4sq_74._taken_1j4sq_114{stroke:var(--success);stroke-width:4px}._edge_1j4sq_74:hover{stroke-width:3px}._edge_1j4sq_74._dim_1j4sq_123:hover{opacity:1}[data-selected=true] ._edge_1j4sq_74,[data-chosen=true] ._edge_1j4sq_74{stroke-width:3.5px}._svg_1j4sq_14 text[data-selected=true]{font-weight:var(--fw-bold,700)}._outgoing_1j4sq_137{stroke-width:3.5px;stroke-dasharray:none}._dim_1j4sq_123{opacity:.4}._node_1j4sq_145{cursor:default}._node_1j4sq_145[tabindex]{cursor:pointer}._node_1j4sq_145:focus-visible{outline:none}._node_1j4sq_145:focus-visible ._box_1j4sq_155{stroke-width:3px;filter:brightness(.8)}._box_1j4sq_155{fill:color-mix(in srgb, var(--family,var(--border)) 12%, var(--bg-surface));stroke:var(--family,var(--border));stroke-width:1.5px;filter:drop-shadow(0 1px 2px #0000001f);transition:stroke var(--transition), fill var(--transition)}._node_1j4sq_145[tabindex]:hover ._box_1j4sq_155{stroke-width:2.5px}._boxUnreachable_1j4sq_173{stroke-dasharray:5 3}._selected_1j4sq_176 ._box_1j4sq_155{stroke-width:4px;filter:brightness(.8)drop-shadow(0 1px 2px #0000001f)}._node_1j4sq_145[data-open=true] ._box_1j4sq_155{stroke-dasharray:6 4;animation:1.6s ease-in-out infinite _openPulse_1j4sq_1}@keyframes _openPulse_1j4sq_1{50%{opacity:.55}}@media (prefers-reduced-motion:reduce){._node_1j4sq_145[data-open=true] ._box_1j4sq_155{animation:none}}._nodeId_1j4sq_194{fill:var(--text);font-size:var(--fs-sm);font-weight:var(--fw-bold);letter-spacing:-.01em}._nodeUnreachable_1j4sq_200{fill:var(--warning);font-size:var(--fs-2xs)}._nodeKind_1j4sq_204{fill:var(--text-muted);font-size:var(--fs-2xs);font-weight:var(--fw-semibold)}._outOk_1j4sq_209{fill:var(--success)}._outWarn_1j4sq_212{fill:var(--warning)}._outErr_1j4sq_215{fill:var(--danger)}._outNeutral_1j4sq_218{fill:var(--text-muted)}._agentStopStart_1j4sq_223{stop-color:var(--chart-spec)}._agentStopMiddle_1j4sq_226{stop-color:var(--chart-feature)}._agentStopEnd_1j4sq_229{stop-color:var(--chart-section)}._familyAgent_1j4sq_20 ._box_1j4sq_155{stroke:url(#rgv-agent-border);stroke-width:2px}._tooltip_1j4sq_238{z-index:var(--z-popover);max-width:320px;padding:var(--space-3) var(--space-4);border:1px solid var(--border);border-top:3px solid var(--family,var(--border));border-radius:var(--radius);background:var(--bg-elevated);box-shadow:var(--shadow-lg);color:var(--text);pointer-events:none;position:fixed;transform:translate(-50%)}._tooltip_1j4sq_238[data-placement=above]{transform:translate(-50%,-100%)}._tooltipTitle_1j4sq_255{font-size:var(--fs-sm);display:inline}._tooltipKind_1j4sq_259{margin-left:var(--space-2);color:var(--family,var(--text-muted));font-size:var(--fs-xs);font-weight:var(--fw-semibold);text-transform:uppercase;letter-spacing:.03em}._tooltipText_1j4sq_267{margin:var(--space-2) 0 0;color:var(--text-muted);font-size:var(--fs-sm);line-height:var(--lh-base)}[data-theme-family=lore] ._heading_1j4sq_8{color:var(--heading-color);font-size:var(--fs-lg);font-weight:var(--fw-medium)}[data-theme-family=lore] ._box_1j4sq_155{rx:var(--radius);fill:color-mix(in srgb, var(--family,var(--border)) 6%, var(--bg-surface));filter:none}[data-theme-family=lore] ._selected_1j4sq_176 ._box_1j4sq_155{filter:drop-shadow(0 0 var(--space-3) var(--focus-ring))}._edgeLabel_1j4sq_290{font-size:var(--fs-2xs);font-weight:var(--fw-semibold);paint-order:stroke;stroke:var(--bg);stroke-width:4px;stroke-linejoin:round}._takenCount_1j4sq_300{font-size:var(--fs-2xs);font-weight:var(--fw-bold,700);paint-order:stroke;stroke:var(--bg);stroke-width:4px;stroke-linejoin:round}._badge_1j4sq_310 rect{fill:var(--bg-surface);stroke:var(--border-hover);stroke-width:1px}._badge_1j4sq_310 text{fill:var(--text);font-size:var(--fs-2xs);font-weight:var(--fw-semibold);letter-spacing:.03em}._badge-entry_1j4sq_321 rect,._badge-exit_1j4sq_322 rect{fill:var(--pill-bg);stroke:var(--pill-fg)}._badge-entry_1j4sq_321 text,._badge-exit_1j4sq_322 text{fill:var(--pill-fg)}._badge-fail_1j4sq_330 rect{fill:var(--danger-bg);stroke:var(--danger)}._badge-fail_1j4sq_330 text{fill:var(--danger)}._badge-fanout_1j4sq_337 rect{fill:var(--info-bg);stroke:var(--info)}._badge-fanout_1j4sq_337 text{fill:var(--info)}._badge-event_1j4sq_344 rect{fill:var(--wait-bg);stroke:var(--wait)}._badge-event_1j4sq_344 text{fill:var(--wait)}._badge-problem_1j4sq_351 rect{fill:var(--danger);stroke:var(--danger)}._badge-problem_1j4sq_351 text{fill:var(--text-on-accent)}._exitRing_1j4sq_359{fill:none;stroke:var(--text);stroke-width:1.5px}._exitCore_1j4sq_364{fill:var(--text)}._terminalRing_1j4sq_367{fill:none;stroke:var(--text);stroke-width:2px}._terminalCore_1j4sq_372{fill:var(--text)}._portOk_1j4sq_377{fill:var(--success)}._portWarn_1j4sq_380{fill:var(--warning)}._portErr_1j4sq_383{fill:var(--danger)}._portNeutral_1j4sq_386,._portIn_1j4sq_387{fill:var(--text-muted)}._svg_1j4sq_14 [data-dim=true]{opacity:.15;transition:opacity .15s}._svg_1j4sq_14 [data-off-path=true]{opacity:.25;transition:opacity .15s}._stubBar_1j4sq_401{stroke:var(--warning);stroke-width:2px}._stubText_1j4sq_405{fill:var(--warning);font-size:11px}@keyframes _changeFlash_1j4sq_1{0%,to{opacity:1}30%{opacity:.45;filter:drop-shadow(0 0 6px var(--accent))}}@keyframes _changeFade_1j4sq_1{to{opacity:0}}._svg_1j4sq_14 [data-change=added]{animation:1.2s ease-out _changeFlash_1j4sq_1}._svg_1j4sq_14 [data-change=moved]{transition:transform .4s}._svg_1j4sq_14 [data-change=removed]{pointer-events:none;animation:.3s ease-out forwards _changeFade_1j4sq_1}._edge_1j4sq_74{transition:d .4s}@media (prefers-reduced-motion:reduce){._svg_1j4sq_14 [data-change=added],._svg_1j4sq_14 [data-change=removed]{animation:none}._svg_1j4sq_14 [data-change=moved],._edge_1j4sq_74{transition:none}}._svg_1j4sq_14 [data-taken=false]{opacity:.3;transition:opacity .15s}._svg_1j4sq_14 [data-visited=false]{opacity:.4;transition:opacity .15s}[data-outcome=success] ._box_1j4sq_155{stroke:var(--success);stroke-width:2.5px}[data-outcome=failed] ._box_1j4sq_155{stroke:var(--danger);stroke-width:2.5px}._viewport_1u3mj_1{border:1px solid var(--border);border-radius:var(--radius);background:var(--bg-surface);flex:1;min-height:0;position:relative;overflow:hidden}._box_1u3mj_11{touch-action:none;-webkit-user-select:none;user-select:none;cursor:grab;width:100%;height:100%;display:block}._box_1u3mj_11:active{cursor:grabbing}._controls_1u3mj_26{right:var(--space-3);bottom:var(--space-3);gap:var(--space-2);display:flex;position:absolute}._controls_1u3mj_26 button{border:1px solid var(--border);border-radius:var(--radius);background:var(--bg-surface);width:30px;height:30px;min-height:0;color:inherit;cursor:pointer;place-items:center;padding:0;transition:background .15s,border-color .15s,transform .15s;display:grid}._controls_1u3mj_26 button:hover{border-color:var(--border-hover);background:var(--bg-hover)}._controls_1u3mj_26 button:active{transform:scale(.94)}._controls_1u3mj_26 button:focus-visible{outline:2px solid var(--accent);outline-offset:2px}._controls_1u3mj_26 button[aria-pressed=true]{border-color:var(--accent);background:color-mix(in srgb, var(--accent) 18%, var(--bg-surface));transition:background .15s,border-color .15s,transform .15s}._screen_1jo8v_2{--sheet-height:45vh;height:100%;position:relative}._primary_1jo8v_9{flex-direction:column;min-width:0;height:100%;min-height:0;display:flex}._graph_1jo8v_17{flex-direction:column;flex:1;min-height:0;display:flex}._header_1jo8v_24{gap:var(--space-3);margin-bottom:var(--space-6);flex-direction:column;display:flex}._file_1jo8v_31{font-family:var(--font-mono);font-size:var(--fs-xs);color:var(--text-muted)}._facts_1jo8v_37{gap:var(--space-2) var(--space-5);font-size:var(--fs-sm);grid-template-columns:max-content 1fr;display:grid}._facts_1jo8v_37 dt{color:var(--text-muted);font-family:var(--font-mono);font-size:var(--fs-xs)}._facts_1jo8v_37 dd{overflow-wrap:anywhere;min-width:0}._args_1jo8v_55{gap:var(--space-3);flex-wrap:wrap;list-style:none;display:flex}._arg_1jo8v_55{padding:var(--space-1) var(--space-4);border:1px solid var(--border);border-radius:var(--radius-pill);font-size:var(--fs-xs)}._subject_1jo8v_69{background:var(--pill-bg);color:var(--pill-fg);font-weight:var(--fw-medium)}._problems_1jo8v_75{margin-top:var(--space-6);max-height:30%;overflow-y:auto}._problems_1jo8v_75 h2{align-items:center;gap:var(--space-3);margin-bottom:var(--space-3);display:flex}._problemNode_1jo8v_88{padding:var(--space-1) var(--space-4);background:var(--pill-bg);min-height:0;color:var(--pill-fg);font-family:var(--font-mono);font-size:var(--fs-xs)}._problemNode_1jo8v_88:hover{background:var(--pill-bg-hover)}._rule_1jo8v_101{font-family:var(--font-mono);font-size:var(--fs-xs);white-space:nowrap}._inspector_1jo8v_109{inset:auto 0 calc(-1 * var(--space-7)) 0;height:var(--sheet-height);padding:0 var(--space-5) var(--space-5);border:1px solid var(--border);border-radius:var(--radius-lg) var(--radius-lg) 0 0;background:var(--bg-surface);border-bottom:0;flex-direction:column;animation:.18s ease-out _sheet-up_1jo8v_1;display:flex;position:absolute;box-shadow:0 -8px 24px #0000002e}._inspector_1jo8v_109[data-maximized]{height:calc(100% + var(--space-7));border-radius:0}@keyframes _sheet-up_1jo8v_1{0%{transform:translateY(100%)}}@media (prefers-reduced-motion:reduce){._inspector_1jo8v_109{animation:none}}._inspector_1jo8v_109 h2{display:none}._inspector_1jo8v_109 header{justify-content:space-between;align-items:center;gap:var(--space-4);padding:var(--space-4) 0 var(--space-3);border-bottom:1px solid var(--border);display:flex}._inspector_1jo8v_109 header button{padding:var(--space-2) var(--space-4);color:var(--text-muted);border:1px solid var(--border);background:0 0}._inspector_1jo8v_109 header>div{flex:1;min-width:0}._inspector_1jo8v_109 header button[aria-pressed=true]{color:var(--text);background:var(--bg);border-color:var(--text-muted)}._inspector_1jo8v_109 header button:hover{color:var(--text);background:var(--bg)}._inspector_1jo8v_109 [role=tablist]{gap:var(--space-2);margin:var(--space-3) 0;border-bottom:1px solid var(--border);flex:none;display:flex}._inspector_1jo8v_109 [role=tab]{padding:var(--space-2) var(--space-4);min-height:0;color:var(--text-muted);font-size:var(--fs-sm);background:0 0;border:0;border-bottom:2px solid #0000;border-radius:0}._inspector_1jo8v_109 [role=tab][aria-selected=true]{border-bottom-color:var(--accent,currentColor);color:var(--text);font-weight:var(--fw-medium)}._inspector_1jo8v_109 [role=tabpanel]{min-height:0;padding:var(--space-2);margin:0 calc(-1 * var(--space-2));gap:var(--space-5);font-size:var(--fs-sm);flex-direction:column;flex:1;display:flex;overflow-y:auto}._inspector_1jo8v_109 ul[aria-label]{gap:var(--space-1);flex-direction:column;list-style:none;display:flex}._inspector_1jo8v_109 ul[aria-label]:before{content:attr(aria-label);margin-bottom:var(--space-2);font-family:var(--font-mono);font-size:var(--fs-xs);letter-spacing:var(--tracking-caps);color:var(--text-muted)}._inspector_1jo8v_109 ul[aria-label]:empty{display:none}._inspector_1jo8v_109 [role=tabpanel] button{margin-right:var(--space-3);align-self:flex-start}._inspector_1jo8v_109 section[aria-labelledby]{gap:var(--space-3);flex-direction:column;flex:1 0 16rem;min-height:16rem;display:flex}._inspector_1jo8v_109 [data-actions]{align-items:center;gap:var(--space-3);flex-wrap:wrap;display:flex}._inspector_1jo8v_109 section[aria-labelledby] h3{width:100%;font-family:var(--font-mono);font-size:var(--fs-xs);font-weight:var(--fw-normal);color:var(--text-muted)}._inspector_1jo8v_109 section[aria-labelledby] p,._inspector_1jo8v_109 section[aria-labelledby] textarea{box-sizing:border-box;width:100%;padding:var(--space-4);border:1px solid var(--border);border-radius:var(--radius-sm);background:var(--bg);color:var(--text);font-family:var(--font-mono);font-size:var(--fs-xs);white-space:pre-wrap;overflow-wrap:anywhere;flex:1;min-height:0;margin:0;line-height:1.6;overflow-y:auto}._inspector_1jo8v_109 section[aria-labelledby] textarea{resize:none}._inspector_1jo8v_109 mark{padding:0 var(--space-1);border-radius:var(--radius-sm);background:var(--success-bg);color:var(--success)}._inspector_1jo8v_109 mark[data-state=optional],._inspector_1jo8v_109 mark[data-state=sometimes-empty]{background:var(--warning-bg);color:var(--warning)}._inspector_1jo8v_109 mark[data-state=never-filled],._inspector_1jo8v_109 mark[data-state=unsupplied]{background:var(--danger-bg);color:var(--danger)}._inspector_1jo8v_109 [role=tabpanel] label{align-self:stretch;gap:var(--space-2);flex-direction:column;width:100%;display:flex}._inspector_1jo8v_109 [role=tabpanel] label>span{font-family:var(--font-mono);font-size:var(--fs-xs);letter-spacing:var(--tracking-caps);color:var(--text-muted)}._inspector_1jo8v_109 [role=tabpanel] input,._inspector_1jo8v_109 [role=tabpanel] select,._inspector_1jo8v_109 [role=tabpanel] label textarea{box-sizing:border-box;width:100%;padding:var(--space-3) var(--space-4);border:1px solid var(--border);border-radius:var(--radius-sm);background:var(--bg);color:var(--text);font-family:var(--font-mono);font-size:var(--fs-sm)}._inspector_1jo8v_109 [role=tabpanel] label textarea{resize:vertical;white-space:pre;min-height:8rem}._inspector_1jo8v_109 [role=tabpanel] input:hover,._inspector_1jo8v_109 [role=tabpanel] select:hover,._inspector_1jo8v_109 [role=tabpanel] textarea:hover{border-color:var(--text-muted)}._inspector_1jo8v_109 [role=tabpanel] fieldset{gap:var(--space-3);padding:var(--space-4);border:1px solid var(--border);border-radius:var(--radius-sm);flex-direction:column;margin:0;display:flex}._inspector_1jo8v_109 [role=tabpanel] fieldset fieldset{background:var(--bg);max-width:none}._inspector_1jo8v_109 [role=tabpanel] legend{padding:0 var(--space-2);font-family:var(--font-mono);font-size:var(--fs-xs);letter-spacing:var(--tracking-caps);color:var(--text-muted)}._inspector_1jo8v_109 [role=tabpanel] fieldset>span{color:var(--text-muted);font-size:var(--fs-xs)}._inspector_1jo8v_109 [role=tabpanel] [data-cards]{gap:var(--space-4);flex-direction:column;display:flex}._inspector_1jo8v_109 [role=tabpanel] [data-cards]>p{color:var(--text-muted);font-size:var(--fs-xs)}._inspector_1jo8v_109 [role=tabpanel] [data-card]{gap:var(--space-3);padding-top:var(--space-4);border-top:1px solid var(--border);flex-direction:column;display:flex}._inspector_1jo8v_109 [role=tabpanel] [data-card-header]{justify-content:space-between;align-items:center;display:flex}._inspector_1jo8v_109 [role=tabpanel] [data-card-header] h3{font-family:var(--font-mono);font-size:var(--fs-sm)}._inspector_1jo8v_109 [role=tabpanel] [data-cards] button{padding:var(--space-2) var(--space-4);border:1px solid var(--border);color:var(--text-muted);font-size:var(--fs-xs);background:0 0;align-self:flex-start}._inspector_1jo8v_109 [role=tabpanel] [data-card-header] button:hover{border-color:var(--danger);color:var(--danger)}._inspector_1jo8v_109 [role=tabpanel] label div{align-items:center;gap:var(--space-3);display:flex}._inspector_1jo8v_109 [role=tabpanel] label button,._inspector_1jo8v_109 [role=tabpanel] fieldset button{padding:var(--space-2) var(--space-4);border:1px solid var(--border);color:var(--text-muted);font-size:var(--fs-xs);background:0 0;flex:none}._inspector_1jo8v_109 [role=tabpanel] label button:hover,._inspector_1jo8v_109 [role=tabpanel] fieldset button:hover{border-color:var(--text-muted);background:var(--bg);color:var(--text)}._inspector_1jo8v_109 [role=tabpanel] label code+span{font-family:var(--font-sans);font-size:var(--fs-xs);letter-spacing:normal;color:var(--text-muted)}._inspector_1jo8v_109 [role=tabpanel] label+span[id]{margin-top:calc(-1 * var(--space-2));color:var(--text-muted);font-size:var(--fs-xs)}._inspector_1jo8v_109 [role=tabpanel] [role=radiogroup] label{align-items:center;gap:var(--space-3);flex-direction:row;width:auto}._inspector_1jo8v_109 [role=tabpanel] [role=radiogroup] input{width:auto}._inspector_1jo8v_109 [role=tabpanel] section[aria-label=Rendered\ prompt],._inspector_1jo8v_109 [role=tabpanel] section[aria-label=Command],._inspector_1jo8v_109 [role=tabpanel] section[aria-label=Transcript]{padding:var(--space-4);border:1px solid var(--border);border-radius:var(--radius-sm);background:var(--bg);font-family:var(--font-mono);font-size:var(--fs-xs);white-space:pre-wrap;overflow-wrap:anywhere;line-height:1.6}._inspector_1jo8v_109 [role=tabpanel] section[aria-label=Transcript]{gap:var(--space-2);white-space:normal;flex-direction:column;display:flex}._inspector_1jo8v_109 [role=tabpanel] section[aria-label=Transcript]>button{align-self:flex-end}._inspector_1jo8v_109 [role=tabpanel] section[aria-label=Transcript] ol{gap:var(--space-2);flex-direction:column;margin:0;padding:0;list-style:none;display:flex}._inspector_1jo8v_109 [data-transcript] li{white-space:pre-wrap;color:var(--text-muted)}._inspector_1jo8v_109 [data-transcript] li[data-kind=said]{font-family:var(--font-sans);font-size:var(--fs-sm);color:var(--text)}._inspector_1jo8v_109 [data-transcript] li[data-kind=tool]:before{content:"› "}._inspector_1jo8v_109 [data-transcript] li[data-kind=error]{color:var(--danger)}._inspector_1jo8v_109 [data-answer] dl{gap:var(--space-1);flex-direction:column;margin:0;display:flex}._inspector_1jo8v_109 [data-answer] dt{margin-top:var(--space-2);font-family:var(--font-mono);font-size:var(--fs-xs);color:var(--text-muted)}._inspector_1jo8v_109 [data-answer] dd{margin:0;line-height:1.6}._inspector_1jo8v_109 [data-answer] ol{gap:var(--space-3);margin:var(--space-1) 0 0;padding-left:var(--space-5);flex-direction:column;display:flex}._inspector_1jo8v_109 [data-answer] ol ol{gap:var(--space-1);font-family:var(--font-mono);font-size:var(--fs-xs);color:var(--text-muted)}._inspector_1jo8v_109 section[aria-label=Run\ result] dl{gap:var(--space-2) var(--space-5);grid-template-columns:max-content 1fr;margin:0;display:grid}._inspector_1jo8v_109 section[aria-label=Run\ result] dt{font-family:var(--font-mono);font-size:var(--fs-xs);color:var(--text-muted)}._inspector_1jo8v_109 section[aria-label=Run\ result] dd{margin:0}._inspector_1jo8v_109 [role=tabpanel] section[aria-label=Blockers]{color:var(--danger)}._inspector_1jo8v_109 li{overflow-wrap:anywhere}._inspectorNode_1jo8v_594{font-size:var(--fs-md);font-weight:var(--fw-medium);overflow-wrap:anywhere}._screen_wmc9m_1{max-width:var(--measure);margin:var(--space-8) auto 0}._screen_wmc9m_1 code{overflow-wrap:anywhere}._summary_wmc9m_10{gap:var(--space-3) var(--space-6);margin-top:var(--space-5);color:var(--text-muted);font-size:var(--fs-sm);flex-wrap:wrap;display:flex}._shell_1ncjb_1{height:100%;display:flex;overflow:hidden}._sidebar_1ncjb_7{width:var(--size-256);background:var(--sidebar-bg);border-right:1px solid var(--border);padding:var(--space-5) 0 var(--space-4);flex-direction:column;flex:none;display:flex;position:relative;overflow-y:auto}._brand_1ncjb_20{gap:var(--space-2);padding:var(--space-3) var(--space-6) var(--space-4);line-height:var(--lh-1);flex-direction:column;display:flex}._brandName_1ncjb_28{font-size:var(--fs-lg);font-weight:var(--fw-medium);letter-spacing:var(--tracking-tight);color:var(--heading-color)}._brandKind_1ncjb_35{font-family:var(--font-mono);font-size:var(--fs-2xs);letter-spacing:var(--tracking-caps);color:var(--text-muted)}._folder_1ncjb_42{padding:0 var(--space-6) var(--space-4);font-family:var(--font-mono);font-size:var(--fs-xs);color:var(--text-muted);overflow-wrap:anywhere}._section_1ncjb_50{padding:var(--space-3) var(--space-4)}._sectionTitle_1ncjb_54{padding:0 var(--space-4) var(--space-2);font-family:var(--font-mono);font-size:var(--fs-xs);font-weight:var(--fw-normal);letter-spacing:var(--tracking-caps);color:var(--text-muted)}._list_1ncjb_63{gap:var(--space-1);flex-direction:column;list-style:none;display:flex}._lineLink_1ncjb_70{align-items:center;gap:var(--space-3);min-height:var(--control);padding:var(--space-3) var(--space-4);border-radius:var(--radius-pill);color:var(--text-muted);font-size:var(--fs-sm);transition:background var(--transition), color var(--transition);display:flex}._lineLink_1ncjb_70:hover{background:var(--bg-hover);color:var(--heading-color);text-decoration:none}._lineLink_1ncjb_70[aria-current=page]{background:var(--pill-bg);color:var(--pill-fg);font-weight:var(--fw-medium)}._lineName_1ncjb_96{text-overflow:ellipsis;white-space:nowrap;flex:1;min-width:0;overflow:hidden}._nodeCount_1ncjb_104{font-size:var(--fs-xs);color:var(--text-muted)}._problemCount_1ncjb_109{background:var(--danger-bg);color:var(--danger)}._refused_1ncjb_114{padding:var(--space-3) var(--space-4);border-radius:var(--radius);background:var(--danger-bg);font-size:var(--fs-xs);overflow-wrap:anywhere}._refusedPath_1ncjb_122{font-family:var(--font-mono);color:var(--text)}._refusedReason_1ncjb_127{color:var(--danger)}._footer_1ncjb_131{gap:var(--space-4);padding:var(--space-4) var(--space-6) 0;flex-direction:column;margin-top:auto;display:flex}._scheme_1ncjb_139{gap:var(--space-1);padding:var(--space-1);border:1px solid var(--border);border-radius:var(--radius-pill);display:flex}._scheme_1ncjb_139 legend{clip-path:inset(50%);width:1px;height:1px;position:absolute;overflow:hidden}._scheme_1ncjb_139 label{padding:var(--space-2) var(--space-3);border-radius:var(--radius-pill);color:var(--text-muted);font-size:var(--fs-xs);text-align:center;cursor:pointer;flex:1}._scheme_1ncjb_139 input{opacity:0;position:absolute}._scheme_1ncjb_139 label:has(input:checked){background:var(--pill-bg);color:var(--pill-fg);font-weight:var(--fw-medium)}._scheme_1ncjb_139 label:has(input:focus-visible){outline:var(--focus-ring-width) solid var(--focus-ring)}._connection_1ncjb_180{align-items:center;gap:var(--space-3);font-size:var(--fs-xs);color:var(--text-muted);display:flex}._dot_1ncjb_188{width:var(--space-3);height:var(--space-3);border-radius:var(--radius-pill);background:var(--text-muted);flex:none}._dotOpen_1ncjb_196{background:var(--success)}._dotClosed_1ncjb_200,._dotRefused_1ncjb_201{background:var(--danger)}._dotConnecting_1ncjb_205{background:var(--warning)}._main_1ncjb_209{min-width:0;padding:var(--space-7) var(--space-6);flex:1;overflow-y:auto}@media (width<=900px){._shell_1ncjb_1{flex-direction:column;height:auto;overflow:visible}._sidebar_1ncjb_7{border-right:none;border-bottom:1px solid var(--border);width:auto}._main_1ncjb_209{padding:var(--space-6) var(--space-5)}}._environmentEntry_1ncjb_234{padding:var(--space-2) var(--space-4);font-size:var(--fs-xs);overflow-wrap:anywhere}._environmentName_1ncjb_240{font-family:var(--font-mono);color:var(--text)}._environmentFiles_1ncjb_245,._environmentNote_1ncjb_246{font-size:var(--fs-xs);color:var(--text-muted)}._environmentNote_1ncjb_246{padding:var(--space-2) var(--space-4) 0}._environmentEntry_1ncjb_234 summary{cursor:pointer}._environmentEntry_1ncjb_234 ul{padding:var(--space-1) 0 0 var(--space-4);list-style:none}@font-face{font-family:IBM Plex Sans;font-weight:300;font-display:swap;src:url(./ibm-plex-sans-latin-300-b4i7YzLG.woff2)format("woff2")}@font-face{font-family:IBM Plex Sans;font-weight:400;font-display:swap;src:url(./ibm-plex-sans-latin-400-CDDApCn2.woff2)format("woff2")}@font-face{font-family:IBM Plex Sans;font-weight:500;font-display:swap;src:url(./ibm-plex-sans-latin-500-6ng42L7E.woff2)format("woff2")}@font-face{font-family:IBM Plex Sans;font-weight:600;font-display:swap;src:url(./ibm-plex-sans-latin-600-CuJfVYMP.woff2)format("woff2")}@font-face{font-family:IBM Plex Sans;font-weight:700;font-display:swap;src:url(./ibm-plex-sans-latin-700-Bxkt5Cjx.woff2)format("woff2")}@font-face{font-family:JetBrains Mono;font-weight:100 800;font-display:swap;src:url(./jetbrains-mono-latin-wght-B9CIFXIH.woff2)format("woff2")}:root{--color-scheme:light;--transition:.15s ease;--font-ui:system-ui, -apple-system, "Segoe UI", sans-serif;--font-sans:var(--font-ui);--font-mono:ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;--font-heading:var(--font-ui);--fs-2xs:10px;--fs-xs:12px;--fs-sm:14px;--fs-base:16px;--fs-md:18px;--fs-lg:20px;--fs-xl:25px;--fw-normal:400;--fw-medium:500;--fw-semibold:600;--fw-bold:700;--lh-1:1;--lh-sm:1.25;--lh-base:1.5;--lh-lg:1.65;--space-1:2px;--space-2:4px;--space-3:8px;--space-4:12px;--space-5:16px;--space-6:24px;--space-7:32px;--space-8:48px;--radius-sm:6px;--radius:10px;--radius-lg:16px;--radius-pill:9999px;--focus-ring-width:3px;--glass-blur:blur(20px) saturate(180%);--z-raised:1;--z-dropdown:10;--z-sticky:20;--z-backdrop:40;--z-offcanvas:50;--z-popover:60;--control-sm:32px;--control:36px;--control-lg:40px;--control-xl:44px;--size-badge:22px;--measure-sm:640px;--measure:720px;--measure-lg:760px;--size-96:96px;--size-150:150px;--size-160:160px;--size-180:180px;--size-200:200px;--size-220:220px;--size-256:256px;--size-280:280px;--size-480:480px;--tracking-caps:.06em;--tracking-tight:-.02em;--tracking-snug:-.01em;--pulse-duration:1.6s;--white:#fff;--black:#000;--bg:#f5f5f7;--bg-surface:#fff;--bg-hover:#ececee;--bg-elevated:#fff;--border:#d2d2d7;--border-hover:#b8b8c0;--focus-ring:#0071e366;--text:#1d1d1f;--text-muted:#6e6e73;--text-on-accent:#fff;--accent:#0071e3;--accent-hover:#0077ed;--success:#1a7f37;--warning:#9a6700;--danger:#d70015;--info:#0071e3;--success-bg:#e4f3e8;--warning-bg:#fbf3da;--wait:var(--warning);--wait-bg:var(--warning-bg);--danger-bg:#ffe5e6;--info-bg:#e3f0fd;--shadow:0 1px 3px #00000014, 0 1px 2px #0000000a;--shadow-lg:0 12px 32px #0000001f;--glass-bg:#ffffffb8;--glass-border:#00000014;--backdrop:#00000080;--chart-feature:#db2777;--chart-spec:#7c3aed;--chart-section:#0891b2;--chart-statement:#2563eb;--chart-criterion:#4f46e5;--chart-test:#16a34a;--chart-code:#ea580c;--chart-adr:#d97706;--chart-neutral:#94a3b8;--primary:var(--accent);--primary-hover:var(--accent-hover);--pill-bg:var(--bg-hover);--pill-bg-hover:var(--border);--pill-fg:var(--text);--sidebar-bg:var(--glass-bg);--heading-color:var(--text);--heading-gradient:none}[data-color-scheme=dark]{--color-scheme:dark;--bg:#000;--bg-surface:#1d1d1f;--bg-hover:#2a2a2c;--bg-elevated:#1d1d1f;--border:#38383a;--border-hover:#48484a;--focus-ring:#2997ff80;--text:#f5f5f7;--text-muted:#86868b;--text-on-accent:#fff;--accent:#2997ff;--accent-hover:#47a9ff;--success:#30d158;--warning:#ffd60a;--danger:#ff453a;--info:#0a84ff;--success-bg:#0e2a17;--warning-bg:#2a2410;--danger-bg:#2e1416;--info-bg:#11233f;--shadow:0 1px 3px #00000080, 0 1px 2px #0006;--shadow-lg:0 16px 40px #0009;--glass-bg:#1d1d1fb3;--glass-border:#ffffff1a}[data-theme-family=lore]{--font-ui:"IBM Plex Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;--font-sans:var(--font-ui);--font-mono:"JetBrains Mono", ui-monospace, "SF Mono", Menlo, monospace;--font-heading:var(--font-ui);--fs-xl:28px;--radius-sm:8px;--radius:12px;--radius-lg:20px;--radius-pill:999px;--transition:.16s cubic-bezier(.4, 0, .2, 1);--glass-blur:blur(20px)}[data-theme-family=lore][data-color-scheme=light]{--color-scheme:light;--bg:#fff;--bg-surface:#fff;--bg-hover:#f1f2fe;--bg-elevated:#fff;--border:#e5e7ee;--border-hover:#cbcfdb;--focus-ring:#0014eb59;--text:#000;--text-muted:#6b7385;--text-on-accent:#fff;--accent:#0014eb;--accent-hover:#2a3cff;--success:#1d6b40;--warning:#7a4f00;--danger:#a12c2c;--info:#0014eb;--success-bg:#e5f6ec;--warning-bg:#fdf2dc;--wait:#8e2ee0;--wait-bg:#f3e8fc;--danger-bg:#fce8e8;--info-bg:#e8eafe;--shadow:0 2px 6px #00053c0f, 0 1px 2px #00053c0a;--shadow-lg:0 20px 50px -12px #00053c2e, 0 4px 12px #00053c14;--glass-bg:#ffffffe6;--glass-border:#e5e7ee;--backdrop:#00053c73;--primary:#010967;--primary-hover:#1a2173;--pill-bg:#e6e8fd;--pill-bg-hover:#c9cdfb;--pill-fg:#010967;--sidebar-bg:#f7f8ff;--heading-color:#010967;--heading-gradient:linear-gradient(96deg, #000 12%, #010967 56%, #0014eb 96%);--chart-feature:#8e2ee0;--chart-spec:#010967;--chart-section:#2a9bb0;--chart-statement:#0014eb;--chart-criterion:#6e1ed1;--chart-test:#2f9e5f;--chart-code:#e85d5d;--chart-adr:#d99a1e;--chart-neutral:#9aa1b5}[data-theme-family=lore][data-color-scheme=dark]{--color-scheme:dark;--bg:#03072e;--bg-surface:#080d45;--bg-hover:#111866;--bg-elevated:#0e1463;--border:#c9cdfb1f;--border-hover:#c9cdfb3d;--focus-ring:#8a93ff80;--text:#fff;--text-muted:#9aa1b5;--text-on-accent:#fff;--accent:#8a93ff;--accent-hover:#b4baff;--success:#8fe0ae;--warning:#f6c76a;--danger:#f49393;--info:#b4baff;--success-bg:#74d09724;--warning-bg:#f2b54424;--wait:#c28eec;--wait-bg:#c28eec29;--danger-bg:#e85d5d29;--info-bg:#8a93ff29;--shadow:0 2px 6px #0000004d;--shadow-lg:0 24px 60px -12px #0009;--glass-bg:#00053ce6;--glass-border:#c9cdfb1f;--backdrop:#00021e99;--primary:#2a3cff;--primary-hover:#4d5dff;--pill-bg:#8a93ff29;--pill-bg-hover:#8a93ff47;--pill-fg:#e6e8fd;--sidebar-bg:#00053c;--heading-color:#fff;--heading-gradient:linear-gradient(96deg, #fff 12%, #c9cdfb 56%, #8a93ff 96%);--chart-feature:#c28eec;--chart-spec:#e6e8fd;--chart-section:#7fd3e2;--chart-statement:#8a93ff;--chart-criterion:#a557e5;--chart-test:#8fe0ae;--chart-code:#f49393;--chart-adr:#f6c76a;--chart-neutral:#6b7385}*,:before,:after{box-sizing:border-box;margin:0;padding:0}html,body,#root{height:100%}html,body{background:var(--bg);color:var(--text);color-scheme:var(--color-scheme);font-family:var(--font-ui);font-size:var(--fs-base);line-height:var(--lh-base);-webkit-font-smoothing:antialiased}a{color:var(--accent);text-decoration:none}a:hover{color:var(--accent-hover);text-decoration:underline}button,input,select,textarea{font-family:inherit}table{border-collapse:collapse;width:100%;font-size:var(--fs-sm)}thead th{text-align:left;padding:var(--space-3) var(--space-4);border-bottom:1px solid var(--border);color:var(--text-muted);font-family:var(--font-mono);font-weight:var(--fw-medium);font-size:var(--fs-xs);text-transform:uppercase;letter-spacing:var(--tracking-caps)}tbody td{padding:var(--space-3) var(--space-4);border-bottom:1px solid var(--border);vertical-align:top}h1,h2,h3,h4{font-family:var(--font-heading);font-weight:var(--fw-semibold)}h1{font-size:var(--fs-xl)}h2{font-size:var(--fs-md)}code{font-family:var(--font-mono);background:var(--bg-surface);color:var(--text);padding:var(--space-1) var(--space-3);border-radius:var(--radius-sm);font-size:var(--fs-sm)}button{padding:var(--space-3) var(--space-5);border-radius:var(--radius-sm);background:var(--accent);color:var(--text-on-accent);cursor:pointer;font-size:var(--fs-sm);font-weight:var(--fw-medium);line-height:var(--lh-sm);border:none}button:hover{background:var(--accent-hover)}a:focus-visible,button:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible,[tabindex]:focus-visible{outline:var(--focus-ring-width) solid var(--focus-ring);outline-offset:2px}svg [tabindex]:focus-visible{outline:none}.muted{color:var(--text-muted)}.mono{font-family:var(--font-mono)}.count-pill{min-width:var(--size-badge);padding:1px var(--space-3);border-radius:var(--radius-pill);background:var(--info-bg);color:var(--accent);font-family:var(--font-mono);font-size:var(--fs-xs);font-weight:var(--fw-medium);line-height:var(--lh-base);justify-content:center;align-items:center;display:inline-flex}.empty-state{padding:var(--space-8) var(--space-6);color:var(--text-muted);text-align:center}.empty-state h2{margin-bottom:var(--space-3)}.empty-state p+p{margin-top:var(--space-3)}@media (prefers-reduced-motion:reduce){*,:before,:after{transition:none!important;animation:none!important}}[data-theme-family=lore] h1,[data-theme-family=lore] h2,[data-theme-family=lore] h3{font-weight:var(--fw-medium);letter-spacing:var(--tracking-tight);color:var(--heading-color)}:where([data-theme-family=lore]) button{min-height:var(--control);padding:var(--space-3) var(--space-5);border-radius:var(--radius-pill);background:var(--primary);color:var(--text-on-accent);transition:background var(--transition)}:where([data-theme-family=lore]) button:hover{background:var(--primary-hover)}[data-theme-family=lore] table{font-family:var(--font-ui)}[data-theme-family=lore] thead th{font-weight:var(--fw-normal);text-transform:lowercase}[data-theme-family=lore] .count-pill{background:var(--pill-bg);color:var(--pill-fg);font-family:var(--font-ui);font-weight:var(--fw-medium)}[data-theme-family=lore] code{background:var(--sidebar-bg)}[data-theme-family=lore] .empty-state{border:1px dashed var(--border-hover);border-radius:var(--radius-lg);padding:var(--space-7) var(--space-6)}[data-theme-family=lore] .empty-state h2{color:var(--heading-color)}
|