Files
mesh-sdk/go/seatlist/seatlisttest/seats/node-display-session.json
T
jochen 18c68fda5a Refresh the test copies of node-uplink, node-resolver and node-display-session to their whole definitions
mesh-sdk joins the sign-in-page milestone only to replace its seatlisttest copies with the three
seats' whole definitions, and to update the two tests that assert today's verbs; the seat-name
constants and the package's own code stay untouched (ADR 0613 §5: nothing seat-specific is added
to mesh-sdk).

Builds: design 08 sign-in-page §1, §2, §3, §4
2026-11-24 21:13:21 +01:00

263 lines
6.5 KiB
JSON

{
"format": 1,
"seat": "node-display-session",
"scope": "node",
"grain": "whole",
"domain": "Core",
"decision": "novox/hq ADR 0208, ADR 0687, ADR 0613",
"verbs": [
{
"name": "reload",
"description": "Reload the session's configuration in place, keeping its windows.",
"input": {
"properties": {
"force": {
"type": "boolean",
"description": "reload even when the check finds errors"
}
},
"type": "object"
},
"answer": {
"type": "object",
"required": [
"reloaded",
"errors"
],
"properties": {
"reloaded": {
"type": "boolean"
},
"errors": {
"type": "array",
"items": {
"$ref": "#/defs/ConfigError"
},
"description": "the configuration's problems, found whether or not it reloaded"
},
"why": {
"type": "string",
"description": "why it did not reload, when it did not"
},
"i3": {
"type": "array",
"description": "i3's own outcome of each command it ran to reload; a sway holder could not give this"
},
"watcher": {
"type": "object",
"description": "i3's own watcher status; a sway holder could not give this"
}
}
}
},
{
"name": "workspaces",
"description": "The session's workspaces: each one's name, output, and whether it is visible or focused.",
"input": {
"properties": {},
"type": "object"
},
"answer": {
"type": "object",
"required": [
"workspaces"
],
"properties": {
"workspaces": {
"type": "array",
"items": {
"$ref": "#/defs/Workspace"
}
}
}
}
},
{
"name": "windows",
"description": "The session's windows: each one's title, class, workspace and whether it has focus; narrowed to one workspace when named.",
"input": {
"properties": {
"workspace": {
"description": "one workspace (optional)",
"type": "string"
}
},
"type": "object"
},
"answer": {
"type": "object",
"required": [
"windows"
],
"properties": {
"windows": {
"type": "array",
"items": {
"$ref": "#/defs/Window"
}
}
}
}
},
{
"name": "open",
"description": "Open the address in the person's default browser. Refused, naming the reason: a scheme other than http or https (named), no scheme (a file path), no host, an address over 2048 bytes once encoded, no graphical session running, no default program for the scheme, the opener ending with a failure (its status named). The encoding: RFC 3986's unreserved characters and : / ? # [ ] @ & = + % are kept as they are; every other character is percent-encoded, as the bytes of its UTF-8 form. Nothing is refused for a character, and no shell reads the address. Its callers are the modules whose manifest invokes it and the operator, through the mesh MCP server; the sign-in reaction is not one.",
"class": "act",
"input": {
"type": "object",
"required": [
"address"
],
"properties": {
"address": {
"type": "string",
"maxLength": 2048,
"description": "the address to open, http or https"
}
}
},
"answer": {
"type": "object",
"required": [
"address",
"started"
],
"properties": {
"address": {
"type": "string",
"description": "the address as handed on, encoded"
},
"program": {
"type": "string",
"description": "the desktop entry that opened it (as browser.desktop); given only once the opener started"
},
"command": {
"type": "string",
"description": "the first word of that entry's command; given only once the opener started"
},
"started": {
"type": "string",
"enum": [
"opened",
"opening"
],
"description": "opened when the opener ended well within its bound, opening when it still ran at its bound"
}
}
}
}
],
"receives": [
{
"kind": "config",
"comment": "#"
}
],
"defs": {
"ConfigError": {
"type": "object",
"description": "one problem the configuration check reports",
"required": [
"text"
],
"properties": {
"file": {
"type": "string"
},
"line": {
"type": "integer"
},
"text": {
"type": "string"
}
}
},
"Workspace": {
"type": "object",
"required": [
"num",
"name",
"output",
"visible",
"focused"
],
"properties": {
"num": {
"type": "integer"
},
"name": {
"type": "string"
},
"output": {
"type": "string"
},
"visible": {
"type": "boolean"
},
"focused": {
"type": "boolean"
},
"urgent": {
"type": "boolean"
}
}
},
"Window": {
"type": "object",
"required": [
"window",
"title",
"workspace",
"output"
],
"properties": {
"con_id": {
"type": "integer"
},
"window": {
"type": "string"
},
"class": {
"type": "string"
},
"instance": {
"type": "string"
},
"role": {
"type": "string"
},
"title": {
"type": "string"
},
"workspace": {
"type": "string"
},
"output": {
"type": "string"
},
"focused": {
"type": "boolean"
},
"urgent": {
"type": "boolean"
},
"floating": {
"type": "boolean"
},
"fullscreen": {
"type": "boolean"
},
"scratchpad": {
"type": "boolean"
},
"marks": {
"type": "array",
"items": {
"type": "string"
}
}
}
}
}
}