seats/node-display-session/seat.json moves to grain whole: reload, workspaces and windows keep every field today's definition holds (receives unchanged), reload gains an optional force input and optional i3 and watcher answer fields matching i3's own code, and workspaces/windows gain answers as i3 answers them today. The new verb open (class act) takes an address and answers address, program, command and started (opened or opening), with program and command given only once the opener started; its description carries the shared percent-encoding rule every holder follows. Fixtures (seats/node-display-session/fixtures/verbs.json) exercise every verb's answer so seatgen generates a conformance test. module.json gains the go-nodedisplaysession and ts-nodedisplaysession artifacts; the Go and TypeScript packages are seatgen's generated output. Builds: design 08 sign-in-page §3
92 lines
1.9 KiB
JSON
92 lines
1.9 KiB
JSON
[
|
|
{
|
|
"name": "open takes an address",
|
|
"of": "verb:open.input",
|
|
"given": {
|
|
"address": "https://example.invalid/sign-in"
|
|
}
|
|
},
|
|
{
|
|
"name": "open answers a page that opened",
|
|
"of": "verb:open.answer",
|
|
"given": {
|
|
"address": "https://example.invalid/sign-in",
|
|
"program": "browser.desktop",
|
|
"command": "browser",
|
|
"started": "opened"
|
|
}
|
|
},
|
|
{
|
|
"name": "open answers a page still opening",
|
|
"of": "verb:open.answer",
|
|
"given": {
|
|
"address": "https://example.invalid/sign-in",
|
|
"started": "opening"
|
|
}
|
|
},
|
|
{
|
|
"name": "reload answers a reload that ran",
|
|
"of": "verb:reload.answer",
|
|
"given": {
|
|
"reloaded": true,
|
|
"i3": [
|
|
{
|
|
"success": true
|
|
}
|
|
],
|
|
"errors": [],
|
|
"watcher": {
|
|
"since": "2026-11-24T12:00:00Z",
|
|
"files_watched": 3,
|
|
"reloads": 1
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"name": "reload answers a reload refused for the configuration's errors on disk",
|
|
"of": "verb:reload.answer",
|
|
"given": {
|
|
"reloaded": false,
|
|
"errors": [
|
|
{
|
|
"file": "config",
|
|
"line": 3,
|
|
"text": "bad syntax"
|
|
}
|
|
],
|
|
"why": "the configuration on disk has errors; fix them, or force"
|
|
}
|
|
},
|
|
{
|
|
"name": "workspaces answers the session's workspaces",
|
|
"of": "verb:workspaces.answer",
|
|
"given": {
|
|
"workspaces": [
|
|
{
|
|
"num": 1,
|
|
"name": "1",
|
|
"output": "eDP-1",
|
|
"visible": true,
|
|
"focused": true,
|
|
"urgent": false
|
|
}
|
|
]
|
|
}
|
|
},
|
|
{
|
|
"name": "windows answers the session's windows",
|
|
"of": "verb:windows.answer",
|
|
"given": {
|
|
"windows": [
|
|
{
|
|
"con_id": 1,
|
|
"window": "0x1",
|
|
"title": "a terminal",
|
|
"workspace": "1",
|
|
"output": "eDP-1"
|
|
}
|
|
]
|
|
}
|
|
}
|
|
]
|