@mgamadeus/ddd-agents 0.6.12 → 0.6.14

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 CHANGED
@@ -102,7 +102,7 @@ conversation in the URL. Keep the default (or any value above 0) and let the for
102
102
  ## Agent.UI on the client (`/ui`)
103
103
 
104
104
  The UI tools of the agent (`getCurrentScreen`, `listScreens`, `openScreen`, `highlightOnScreen`, optionally
105
- `setAgentWindowMode`) send requests to the user's open client; `useAgentUIClient(adapters)` runs them and the
105
+ `setAgentWindowMode` and `actOnScreen`) send requests to the user's open client; `useAgentUIClient(adapters)` runs them and the
106
106
  conversation client posts the answers (`createAgentsHttpConversationClient({ uiClient })`).
107
107
 
108
108
  ```ts
@@ -113,9 +113,31 @@ const uiClient = useAgentUIClient({
113
113
  picture: createDomScreenPictureCapturer(), // optional: getCurrentScreen(format: picture)
114
114
  pathGuide: createDomScreenPathGuide({ findPathElements, currentRoute }), // optional
115
115
  agentWindow: createAgentWindowAdapter({ getMode, applyMode, modes: ['docked', 'aside'] }), // optional
116
+ actions: new DomScreenActor({ registry, currentLocation, describeBlockers, highlighter, describeAction, settle }), // optional: actOnScreen
116
117
  });
117
118
  ```
118
119
 
120
+ - **Screen actions** (`actOnScreen`, off on the server unless `AI.agentUI.screenActionRequests`): with the `actions`
121
+ adapter the agent can sort a table, open a row, switch a tab and press a button, and with a navigator that answers
122
+ `currentTarget()` and `applyFilters(target, filters)` set the URL filters the open screen's target declares.
123
+ `DomScreenActor` acts only on an element that declares the action and that a reference of the newest read names; it
124
+ takes no selector, types nothing and submits no form:
125
+
126
+ | Declaration | Reference | Action |
127
+ |---|---|---|
128
+ | `data-agent-action="sort"` `data-agent-action-key="created"` on the sort control (the state: `aria-sort` of its cell) | `col.created` | `sort` (`asc`, `desc`, `none`) |
129
+ | `data-agent-action="open"` on the element with `data-row-key` | `row.<key>` | `openRow` |
130
+ | `data-agent-action="tab"` `data-agent-action-key="crashes"`, or `role="tab"` | `t.crashes` | `switchTab` |
131
+ | `data-agent-action="press"` `data-agent-action-key="load-more"` `data-agent-action-effect="view"` | `act.load-more` | `press` |
132
+
133
+ A button with any other effect, or without a declaration, is never pressed (`WRITE_ACTION`, `NOT_DECLARED`): declare
134
+ `view` only for a button that changes nothing stored. Before it acts the actor marks the element (the highlighter,
135
+ with the note of `describeAction(action, label)`, which the application translates) and waits `ACTION_MARK_BEAT_MS`;
136
+ unsaved changes block what leaves the screen, an open dialog everything outside it. The reader lists what is
137
+ declared (`Filters`, `Tabs`, `Sort`, `Actions` lines; `describeFilters` names the filters and their URL values), so a
138
+ screen without declarations offers nothing. `@mgamadeus/ddd-admin-ui` declares its tables, tabs and filter buttons
139
+ and brings the navigator and the actor's options.
140
+
119
141
  - A mark: `<a href="/orders" data-agent-anchor="orders" data-agent-group="Sales" data-agent-filters="customerId">`;
120
142
  further attributes `data-agent-label`, `data-agent-route` (`/orders/:orderId`), `data-agent-parameters`,
121
143
  `data-agent-tabs`, `data-agent-views`, `data-agent-anchor-group` (with `groupKey`).
@@ -1,8 +1,8 @@
1
1
  /**
2
2
  * `@mgamadeus/ddd-agents/ui` — the client side of `Agent.UI`: the runner of the client tool requests, the four
3
3
  * adapter contracts an application implements (`ScreenTargetSource`, `ScreenNavigator`, `ScreenReader`,
4
- * `ScreenHighlighter`, optionally `ScreenPictureCapturer`, `AgentWindowAdapter`, `ScreenPathGuide` and handlers of
5
- * further request types), the Markdown writer and reference registry, DOM defaults (reader, highlighter, target
4
+ * `ScreenHighlighter`, optionally `ScreenPictureCapturer`, `AgentWindowAdapter`, `ScreenPathGuide`, `ScreenActor` (the
5
+ * typed actions on declared elements, `DomScreenActor`) and handlers of further request types), the Markdown writer and reference registry, DOM defaults (reader, highlighter, target
6
6
  * source from `data-agent-anchor` marks, picture capturer, path guide), the agent-window adapter, the realtime arrival
7
7
  * adapter and dev helper, the account-level realtime poll (a client that shows no conversation), the UI state the client reports, and the hook.
8
8
  */
@@ -14,6 +14,7 @@ export { useAgentUIClient } from "../ui/useAgentUIClient";
14
14
  export * from "../ui/screen-markdown";
15
15
  export * from "../ui/DomScreenReader";
16
16
  export * from "../ui/DomScreenHighlighter";
17
+ export * from "../ui/DomScreenActor";
17
18
  export * from "../ui/DomScreenTargetSource";
18
19
  export * from "../ui/DomScreenPathGuide";
19
20
  export * from "../ui/screen-picture";
@@ -1,4 +1,4 @@
1
- import { type ClientToolAnswer, type ClientToolRequestDelivery, type ClientToolRequestType, type ScreenAdapters, type ScreenTarget } from "./client-tools";
1
+ import { type ClientToolAnswer, type ClientToolRequestDelivery, type ClientToolRequestType, type ScreenActionKind, type ScreenAdapters, type ScreenTarget } from "./client-tools";
2
2
  /**
3
3
  * The most characters of screen content in one answer: half the answer's cap ({@link MAX_ANSWER_TEXT_CHARS}), the
4
4
  * same number as the server's cut (`AgentUIToolResponseDto::MAX_CONTENT_CHARS`, a contract test compares them). With
@@ -35,6 +35,15 @@ export declare class ClientToolRequestRunner {
35
35
  protected readScreen(parameters: Record<string, unknown>): ClientToolAnswer;
36
36
  protected listTargets(parameters: Record<string, unknown>): ClientToolAnswer;
37
37
  protected openTarget(parameters: Record<string, unknown>): Promise<ClientToolAnswer>;
38
+ /**
39
+ * A typed action on the open screen: `setFilters` through the navigator (the filters the screen's target declares),
40
+ * every other kind through the actor on an element the screen declares for it. With `includeScreen` the answer
41
+ * carries the screen after the action.
42
+ */
43
+ protected actOnScreen(parameters: Record<string, unknown>): Promise<ClientToolAnswer>;
44
+ protected actOnElement(action: Exclude<ScreenActionKind, 'setFilters'>, parameters: Record<string, unknown>): Promise<ClientToolAnswer>;
45
+ /** Sets and clears URL filters of the open screen: only keys its target declares, the rest of the URL stays. */
46
+ protected setFilters(parameters: Record<string, unknown>): Promise<ClientToolAnswer>;
38
47
  protected highlight(parameters: Record<string, unknown>): ClientToolAnswer;
39
48
  protected findTarget(key: unknown): ScreenTarget | null;
40
49
  }
@@ -0,0 +1,62 @@
1
+ import { type ScreenActionRequest, type ScreenActionResult, type ScreenActor, type ScreenHighlighter, type ScreenLocation, type ScreenNavigationBlocker, type ScreenSortDirection } from "./client-tools";
2
+ import { type ScreenReferenceRegistry } from "./DomScreenReader";
3
+ /** How long the mark stays on the element before the action runs, so the user sees what is about to happen. */
4
+ export declare const ACTION_MARK_BEAT_MS = 700;
5
+ /** What the mark's note says for an action; the application translates (`null`: no note). */
6
+ export type ScreenActionNote = (action: ScreenActionRequest['action'], label: string) => string | null;
7
+ export interface DomScreenActorOptions {
8
+ /** The references of the newest read (shared with the reader and the highlighter) */
9
+ registry: ScreenReferenceRegistry;
10
+ /** Where the browser is after the action */
11
+ currentLocation: () => ScreenLocation;
12
+ /** Why leaving the screen would lose the user's work (the navigator's blockers) */
13
+ describeBlockers: () => ScreenNavigationBlocker | null;
14
+ /** Marks the element before the action runs; without it the action runs unmarked */
15
+ highlighter?: ScreenHighlighter;
16
+ /** The note beside the mark, e.g. "The assistant opens this row" */
17
+ describeAction?: ScreenActionNote;
18
+ /** Resolves once the screen settled after the action (a list reloaded, a page opened); default: two frames */
19
+ settle?: () => Promise<void>;
20
+ /** The beat between the mark and the action; default {@link ACTION_MARK_BEAT_MS} */
21
+ markBeatMs?: number;
22
+ }
23
+ /**
24
+ * A click as a pointer makes it: components that act on `pointerdown` or `mousedown` (a tab list selects on mouse
25
+ * down) and those that act on `click` (a link, a button, a row) all see it. No coordinates, no keyboard, no focus move.
26
+ */
27
+ export declare const activateElement: (element: Element) => void;
28
+ /**
29
+ * Carries out the typed actions of `actOnScreen` on the DOM. It acts only on an element that DECLARES the action
30
+ * (`data-agent-action`; a tab list's `role="tab"` counts as a declared tab) and that a reference of the newest read
31
+ * names; it never takes a selector, never types, never submits a form. A button is pressed only when it is declared
32
+ * with the effect `view`: a button without a declaration, or with any other effect, is refused, so a save, a delete
33
+ * or a send never runs through here. Before it acts it marks the element (the highlighter) and waits a beat, so the
34
+ * user sees what happens.
35
+ *
36
+ * What blocks: unsaved changes block every action that leaves the screen (a row, a route tab); while a dialog is open
37
+ * only an element inside it is acted on, and never one that leaves the screen.
38
+ */
39
+ export declare class DomScreenActor implements ScreenActor {
40
+ protected readonly options: DomScreenActorOptions;
41
+ constructor(options: DomScreenActorOptions);
42
+ act(request: ScreenActionRequest): Promise<ScreenActionResult>;
43
+ /** The element must declare the action of the request; a button must declare the effect `view`. */
44
+ protected checkDeclaration(request: ScreenActionRequest, element: Element): ScreenActionResult | null;
45
+ protected notDeclared(request: ScreenActionRequest, element: Element): ScreenActionResult;
46
+ /**
47
+ * Unsaved changes refuse what leaves the screen; an open dialog refuses every element outside it and what leaves
48
+ * the screen inside it.
49
+ */
50
+ protected checkBlockers(request: ScreenActionRequest, element: Element): ScreenActionResult | null;
51
+ /** Marks the element with the application's note and waits the beat; a failing highlighter never stops the action. */
52
+ protected markBeforeActing(request: ScreenActionRequest, element: Element, label: string): Promise<void>;
53
+ /** Clicks the sort control until its column shows the wanted direction; false when it never does. */
54
+ protected sort(reference: string, control: Element, direction: ScreenSortDirection): Promise<boolean>;
55
+ /** The sort a control shows, in the words of the request (`none` when its column is not sorted). */
56
+ protected sortOf(control: Element): ScreenSortDirection;
57
+ protected describeDirection(direction: ScreenSortDirection | null): string;
58
+ protected settle(): Promise<void>;
59
+ protected done(text: string, routeBefore: string): ScreenActionResult;
60
+ protected name(reference: string, element: Element): string;
61
+ protected nameOf(reference: string, label: string): string;
62
+ }
@@ -14,7 +14,26 @@ export declare const AGENT_ATTRIBUTES: {
14
14
  readonly navKey: 'data-nav-key';
15
15
  /** The key of a main menu group (@mgamadeus/ddd-admin-ui): `nav.<value>`; its entries sit inside it */
16
16
  readonly navGroup: 'data-nav-group';
17
+ /**
18
+ * What the agent may do with the element (`actOnScreen`): `sort` (a column's sort control), `open` (a row or card
19
+ * that opens its record), `tab` (a tab), `press` (a button). Set by @mgamadeus/ddd-admin-ui on its tables, cards
20
+ * and tabs, by the application on its own buttons. An element without it is never acted on.
21
+ */
22
+ readonly action: 'data-agent-action';
23
+ /** The stable key of a declared element: the sort key (`col.<value>`), the tab id, the button (`act.<value>`) */
24
+ readonly actionKey: 'data-agent-action-key';
25
+ /** Only on `press`: `view` (changes what the screen shows, nothing stored). Anything else counts as a write and is refused. */
26
+ readonly actionEffect: 'data-agent-action-effect';
17
27
  };
28
+ /** The values of `data-agent-action`. */
29
+ export declare const AGENT_ACTIONS: {
30
+ readonly sort: 'sort';
31
+ readonly open: 'open';
32
+ readonly tab: 'tab';
33
+ readonly press: 'press';
34
+ };
35
+ /** The one effect of a declared button the agent may press. */
36
+ export declare const AGENT_ACTION_EFFECT_VIEW = "view";
18
37
  /** The heading of the main menu part of a read. */
19
38
  export declare const MAIN_MENU_HEADING = "## Main menu (highlightOnScreen marks an entry by its nav. reference)";
20
39
  /** The references of the newest read: reference → element. The highlighter marks by them. */
@@ -22,10 +41,25 @@ export declare class ScreenReferenceRegistry {
22
41
  protected elements: Map<string, Element>;
23
42
  replace(elements: Map<string, Element>): void;
24
43
  find(reference: string): Element | null;
44
+ /** Adds one reference to the newest read (an element found without a read, so the highlighter can mark it). */
45
+ remember(reference: string, element: Element): void;
46
+ /**
47
+ * A declared element found on the page even without a read: `col.<key>` (sort), `t.<key>` (tab), `act.<key>`
48
+ * (press) by its action key, `row.<key>` by its row key. Null for every other reference.
49
+ */
50
+ findDeclared(reference: string): Element | null;
25
51
  /** An anchor is found on the page even without a read. */
26
52
  findAnchor(reference: string): Element | null;
27
53
  labelOf(reference: string): string;
28
54
  }
55
+ /** Whether a row or card declares that it opens its record (`data-agent-action="open"`). */
56
+ export declare const isOpenableByAgent: (row: Element) => boolean;
57
+ /** Whether a button is declared for the agent with the effect `view`: the only buttons `actOnScreen` presses. */
58
+ export declare const isPressableByAgent: (button: Element) => boolean;
59
+ /** The sort a declared sort control shows: the `aria-sort` of its column header. */
60
+ export declare const sortDirectionOf: (control: Element) => 'asc' | 'desc' | null;
61
+ /** Whether a tab is the open one: `aria-selected` (a tab list), `aria-current` (a route tab), `aria-pressed` (a button tab). */
62
+ export declare const isOpenTab: (tab: Element) => boolean;
29
63
  /** The accessible label of an element: aria-label, labelledby, a `<label for>`, the wrapping label, its text. */
30
64
  export declare const labelOfElement: (element: Element) => string;
31
65
  /**
@@ -54,6 +88,11 @@ export interface DomScreenReaderOptions {
54
88
  * browser window's size (`Agent window: … · browser 1440×900 px`), so the agent knows what the user sees beside it.
55
89
  */
56
90
  describeAgentWindow?: () => string | null;
91
+ /**
92
+ * Optional: the URL filters of the open screen with their values, e.g. `status=OPEN · priority · channel` (a filter
93
+ * without a value is not set). The read writes them as `Filters (actOnScreen, action setFilters): …`.
94
+ */
95
+ describeFilters?: () => string | null;
57
96
  }
58
97
  /**
59
98
  * Reads the open screen from the DOM: title and route, the agent window and the browser size, tabs, open dialogs,
@@ -8,12 +8,12 @@ export interface AgentWindowAdapterOptions {
8
8
  modes: string[];
9
9
  /** The mode of `stepAside()`; default `aside` */
10
10
  asideMode?: string;
11
- /** The request types the window steps aside for; default `OPEN_TARGET`, `HIGHLIGHT`, a picture (`READ_SCREEN`) */
11
+ /** The request types the window steps aside for; default `OPEN_TARGET`, `HIGHLIGHT`, `ACT_ON_SCREEN`, a picture (`READ_SCREEN`) */
12
12
  stepAsideFor?: ClientToolRequestType[];
13
13
  }
14
14
  /**
15
15
  * An `AgentWindowAdapter` over the application's own window state: `stepAside()` remembers the mode and shows the
16
16
  * aside mode, `restore()` goes back to the remembered mode, `setMode()` shows a known mode. Stepping aside before the
17
- * agent opens a screen, marks elements or takes a picture is the default.
17
+ * agent opens a screen, marks elements, acts on the screen or takes a picture is the default.
18
18
  */
19
19
  export declare const createAgentWindowAdapter: (options: AgentWindowAdapterOptions) => AgentWindowAdapter;
@@ -7,7 +7,7 @@
7
7
  * Pure (no React, no app imports), so the logic tests cover it.
8
8
  */
9
9
  /** What the server asks a tab to do (`AgentClientToolRequest::TYPE_*`). */
10
- export type ClientToolRequestType = 'READ_SCREEN' | 'LIST_TARGETS' | 'OPEN_TARGET' | 'HIGHLIGHT' | 'SET_WINDOW_MODE';
10
+ export type ClientToolRequestType = 'READ_SCREEN' | 'LIST_TARGETS' | 'OPEN_TARGET' | 'HIGHLIGHT' | 'SET_WINDOW_MODE' | 'ACT_ON_SCREEN';
11
11
  /** A request as the run-state read delivers it. */
12
12
  export interface ClientToolRequestDelivery {
13
13
  id: number;
@@ -43,6 +43,13 @@ export declare const CLIENT_TOOL_OUTCOMES: {
43
43
  readonly unknownRequest: 'UNKNOWN_REQUEST';
44
44
  readonly unknownMode: 'UNKNOWN_MODE';
45
45
  readonly pictureUnavailable: 'PICTURE_UNAVAILABLE';
46
+ readonly actionsUnavailable: 'ACTIONS_UNAVAILABLE';
47
+ readonly unknownAction: 'UNKNOWN_ACTION';
48
+ readonly noFilters: 'NO_FILTERS';
49
+ readonly notDeclared: 'NOT_DECLARED';
50
+ readonly writeAction: 'WRITE_ACTION';
51
+ readonly disabled: 'DISABLED';
52
+ readonly noEffect: 'NO_EFFECT';
46
53
  };
47
54
  export interface ScreenTargetFilter {
48
55
  /** The query parameter, e.g. `customerId` */
@@ -112,6 +119,13 @@ export interface ScreenNavigator {
112
119
  describeBlockers(): ScreenNavigationBlocker | null;
113
120
  open(target: ScreenTarget, request: ScreenOpenRequest): Promise<ScreenLocation>;
114
121
  currentLocation(): ScreenLocation;
122
+ /** Optional: the target the open screen shows; its declared filters are what the action `setFilters` may set */
123
+ currentTarget?(): ScreenTarget | null;
124
+ /**
125
+ * Optional: sets the given URL filters of the open screen (an empty value removes the filter) and keeps the rest of
126
+ * its URL. Called only with keys the target declares. Without it `setFilters` is answered `ACTIONS_UNAVAILABLE`.
127
+ */
128
+ applyFilters?(target: ScreenTarget, filters: Record<string, string>): Promise<ScreenLocation>;
115
129
  }
116
130
  /** Turns the current screen into Markdown. */
117
131
  export interface ScreenReader {
@@ -125,6 +139,34 @@ export interface ScreenHighlighter {
125
139
  mark(references: string[], note: string | null): ScreenMarkResult;
126
140
  clear(): void;
127
141
  }
142
+ /**
143
+ * What the agent may do on the open screen (`actOnScreen`): a closed list. Every action but `setFilters` works on an
144
+ * element the screen DECLARES for it (`data-agent-action`), found by a reference of the newest read; the agent never
145
+ * names a selector, and nothing here saves, deletes or sends.
146
+ */
147
+ export type ScreenActionKind = 'setFilters' | 'sort' | 'openRow' | 'switchTab' | 'press';
148
+ export declare const SCREEN_ACTION_KINDS: ScreenActionKind[];
149
+ /** The direction of the action `sort`; `none` returns to the list's own order. */
150
+ export type ScreenSortDirection = 'asc' | 'desc' | 'none';
151
+ export declare const SCREEN_SORT_DIRECTIONS: ScreenSortDirection[];
152
+ /** An action on a declared element of the screen (every kind but `setFilters`, which the navigator carries out). */
153
+ export interface ScreenActionRequest {
154
+ action: Exclude<ScreenActionKind, 'setFilters'>;
155
+ /** A reference of the newest read: `col.<key>` (sort), `row.<key>` (openRow), `t.<slug>` (switchTab), `act.<key>` (press) */
156
+ reference: string;
157
+ /** Only for `sort` */
158
+ direction: ScreenSortDirection | null;
159
+ }
160
+ /** What an action did: `OK` or a refusal code, one sentence (it can name labels of the screen), small facts. */
161
+ export interface ScreenActionResult {
162
+ outcome: string;
163
+ text: string;
164
+ details: Record<string, string | number | boolean | null>;
165
+ }
166
+ /** Carries out a typed action on a declared element (`DomScreenActor` is the DOM default). */
167
+ export interface ScreenActor {
168
+ act(request: ScreenActionRequest): Promise<ScreenActionResult>;
169
+ }
128
170
  /** The size presets of a screen picture (`pictureSize` of `getCurrentScreen`). */
129
171
  export type ScreenPictureSize = 'small' | 'medium' | 'large';
130
172
  /** How a screen picture is rendered (`renderMode` of `getCurrentScreen`). */
@@ -184,6 +226,8 @@ export interface ScreenAdapters {
184
226
  agentWindow?: AgentWindowAdapter;
185
227
  /** Optional: the path guide shown before `OPEN_TARGET` */
186
228
  pathGuide?: ScreenPathGuide;
229
+ /** Optional: the typed actions on declared elements (`ACT_ON_SCREEN`); without it they are answered `ACTIONS_UNAVAILABLE` */
230
+ actions?: ScreenActor;
187
231
  /** Optional: handlers of further request types, by type; a type of the package is never replaced */
188
232
  requestHandlers?: Record<string, ClientToolRequestHandler>;
189
233
  }
@@ -11,6 +11,8 @@
11
11
  * - `t.<slug>` a tab
12
12
  * - `a.<anchor>` an anchor the application set (`data-agent-anchor`)
13
13
  * - `nav.<key>` an entry or group of the application's main menu (`data-nav-key`, `data-nav-group`)
14
+ * - `col.<key>` a sortable column of a table (`data-agent-action="sort"`), for the action `sort`
15
+ * - `act.<key>` a button the screen declares for the agent (`data-agent-action="press"` with the effect `view`)
14
16
  */
15
17
  /**
16
18
  * The most rows of one table (and cards of one grid) in a read. A list of 200 loaded rows filled the whole read with
@@ -52,6 +54,13 @@ export interface FieldFacts {
52
54
  }
53
55
  /** `- End date (f.endDate, date): 2026-12-31 · required · error "…"` */
54
56
  export declare const formatFieldLine: (field: FieldFacts) => string;
57
+ /** A column the table declares as sortable. */
58
+ export interface SortColumnFacts {
59
+ reference: string;
60
+ label: string;
61
+ /** `asc`, `desc`, or null when the table is not sorted by it */
62
+ direction: 'asc' | 'desc' | null;
63
+ }
55
64
  export interface TableFacts {
56
65
  caption: string | null;
57
66
  columns: string[];
@@ -62,7 +71,15 @@ export interface TableFacts {
62
71
  }[];
63
72
  /** All rows of the table in the DOM (more than shown) */
64
73
  totalRows: number;
74
+ /** The columns declared sortable (`data-agent-action="sort"`) */
75
+ sortColumns?: SortColumnFacts[];
76
+ /** Whether the rows declare an open action (`data-agent-action="open"`) */
77
+ rowsOpen?: boolean;
65
78
  }
79
+ /** The line that tells the agent the rows (or cards) of a list open with the action `openRow`. */
80
+ export declare const ROWS_OPEN_LINE = "Rows open with actOnScreen (action openRow, reference row.<key>).";
81
+ /** `Sort (actOnScreen, action sort): col.created "Created" (desc) · col.id "ID"` */
82
+ export declare const formatSortColumns: (sortColumns: SortColumnFacts[]) => string | null;
66
83
  /**
67
84
  * A table as `| … |` lines with the row reference first, at most {@link MAX_TABLE_ROWS} rows, cells cut to
68
85
  * {@link MAX_CELL_CHARS}. A column without text in every shown row (a selection box, an actions menu) is left out: the
@@ -76,5 +93,7 @@ export interface ButtonFacts {
76
93
  }
77
94
  /** `Buttons: b.save "Save" · b.delete "Delete" (disabled)` */
78
95
  export declare const formatButtons: (buttons: ButtonFacts[]) => string | null;
96
+ /** `Actions (actOnScreen, action press): act.load-more "Load more" · act.clear-filters "Clear filters" (disabled)` */
97
+ export declare const formatActions: (actions: ButtonFacts[]) => string | null;
79
98
  /** Joins the parts of a read and cuts the whole at `maxChars`, saying so. */
80
99
  export declare const joinScreenParts: (parts: string[], maxChars: number) => string;