C1: node-display-session defined whole, with the verb open
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
This commit is contained in:
+128
@@ -0,0 +1,128 @@
|
||||
// Code generated by seatgen from the seat definitions; DO NOT EDIT.
|
||||
|
||||
// The contract of the seat "node-display-session", defined whole (seats/node-display-session/seat.json): no description.
|
||||
|
||||
export declare const seat: "node-display-session";
|
||||
|
||||
export declare const verbs: {
|
||||
readonly reload: "reload";
|
||||
readonly workspaces: "workspaces";
|
||||
readonly windows: "windows";
|
||||
readonly open: "open";
|
||||
};
|
||||
|
||||
/** is what reload takes. */
|
||||
export interface ReloadInput {
|
||||
/** reload even if the configuration on disk has errors (optional) */
|
||||
"force"?: boolean;
|
||||
}
|
||||
|
||||
export interface ReloadAnswerErrorsItem {
|
||||
/** the file holding the error (optional) */
|
||||
"file"?: string;
|
||||
/** the line holding the error (optional) */
|
||||
"line"?: number;
|
||||
"text": string;
|
||||
}
|
||||
|
||||
export interface ReloadAnswerI3Item {
|
||||
/** why it failed (optional) */
|
||||
"error"?: string;
|
||||
"success": boolean;
|
||||
}
|
||||
|
||||
/** is what reload answers. */
|
||||
export interface ReloadAnswer {
|
||||
/** the configuration's errors on disk, found by the check that ran first */
|
||||
"errors": ReloadAnswerErrorsItem[];
|
||||
/** is the form of what this value carries, left out while it is 1 (design 47 H2 §780). */
|
||||
"form"?: number;
|
||||
/** the outcome of each command the reload ran, given only once it ran (optional) */
|
||||
"i3"?: ReloadAnswerI3Item[];
|
||||
/** whether the reload ran */
|
||||
"reloaded": boolean;
|
||||
/** the configuration watcher's status, given only once the reload ran (optional) */
|
||||
"watcher"?: Record<string, unknown>;
|
||||
/** why it did not reload, given only when it did not (optional) */
|
||||
"why"?: string;
|
||||
}
|
||||
|
||||
/** is what workspaces takes. */
|
||||
export interface WorkspacesInput {
|
||||
}
|
||||
|
||||
export interface WorkspacesAnswerWorkspacesItem {
|
||||
"focused": boolean;
|
||||
"name": string;
|
||||
"num": number;
|
||||
"output": string;
|
||||
"urgent": boolean;
|
||||
"visible": boolean;
|
||||
}
|
||||
|
||||
/** is what workspaces answers. */
|
||||
export interface WorkspacesAnswer {
|
||||
/** is the form of what this value carries, left out while it is 1 (design 47 H2 §780). */
|
||||
"form"?: number;
|
||||
"workspaces": WorkspacesAnswerWorkspacesItem[];
|
||||
}
|
||||
|
||||
/** is what windows takes. */
|
||||
export interface WindowsInput {
|
||||
/** one workspace (optional) */
|
||||
"workspace"?: string;
|
||||
}
|
||||
|
||||
export interface WindowsAnswerWindowsItem {
|
||||
/** optional */
|
||||
"class"?: string;
|
||||
"con_id": number;
|
||||
/** optional */
|
||||
"floating"?: boolean;
|
||||
/** optional */
|
||||
"focused"?: boolean;
|
||||
/** optional */
|
||||
"fullscreen"?: boolean;
|
||||
/** optional */
|
||||
"instance"?: string;
|
||||
/** optional */
|
||||
"marks"?: string[];
|
||||
"output": string;
|
||||
/** optional */
|
||||
"role"?: string;
|
||||
/** optional */
|
||||
"scratchpad"?: boolean;
|
||||
"title": string;
|
||||
/** optional */
|
||||
"urgent"?: boolean;
|
||||
"window": string;
|
||||
"workspace": string;
|
||||
}
|
||||
|
||||
/** is what windows answers. */
|
||||
export interface WindowsAnswer {
|
||||
/** is the form of what this value carries, left out while it is 1 (design 47 H2 §780). */
|
||||
"form"?: number;
|
||||
"windows": WindowsAnswerWindowsItem[];
|
||||
}
|
||||
|
||||
/** is what open takes. */
|
||||
export interface OpenInput {
|
||||
/** the http or https address to open */
|
||||
"address": string;
|
||||
}
|
||||
|
||||
/** is what open answers. */
|
||||
export interface OpenAnswer {
|
||||
/** the address as handed on, encoded */
|
||||
"address": string;
|
||||
/** the first word of that entry's command; given only once the opener started (optional) */
|
||||
"command"?: string;
|
||||
/** is the form of what this value carries, left out while it is 1 (design 47 H2 §780). */
|
||||
"form"?: number;
|
||||
/** the desktop entry that opened it, as browser.desktop; given only once the opener started (optional) */
|
||||
"program"?: string;
|
||||
/** opened when the opener ended well within its bound, opening when it still ran at its bound */
|
||||
"started": "opened" | "opening";
|
||||
}
|
||||
|
||||
@@ -0,0 +1,13 @@
|
||||
// Code generated by seatgen from the seat definitions; DO NOT EDIT.
|
||||
|
||||
// The contract of the seat "node-display-session", defined whole (seats/node-display-session/seat.json): no description.
|
||||
|
||||
export const seat = "node-display-session";
|
||||
|
||||
export const verbs = {
|
||||
reload: "reload",
|
||||
workspaces: "workspaces",
|
||||
windows: "windows",
|
||||
open: "open",
|
||||
};
|
||||
|
||||
+12
@@ -0,0 +1,12 @@
|
||||
{
|
||||
"lockfileVersion": 3,
|
||||
"name": "@novox/mesh-contracts-node-display-session",
|
||||
"packages": {
|
||||
"": {
|
||||
"name": "@novox/mesh-contracts-node-display-session",
|
||||
"version": "0.1.0"
|
||||
}
|
||||
},
|
||||
"requires": true,
|
||||
"version": "0.1.0"
|
||||
}
|
||||
@@ -0,0 +1,18 @@
|
||||
{
|
||||
"description": "The contract of the seat node-display-session, generated from its definition.",
|
||||
"exports": {
|
||||
".": {
|
||||
"default": "./index.js",
|
||||
"types": "./index.d.ts"
|
||||
}
|
||||
},
|
||||
"files": [
|
||||
"index.js",
|
||||
"index.d.ts",
|
||||
"parts"
|
||||
],
|
||||
"name": "@novox/mesh-contracts-node-display-session",
|
||||
"type": "module",
|
||||
"types": "./index.d.ts",
|
||||
"version": "0.1.0"
|
||||
}
|
||||
Reference in New Issue
Block a user