@alis-build/design-system 0.67.0 → 0.68.1

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/hosts/README.md CHANGED
@@ -8,9 +8,11 @@ first; a profile never repeats it.
8
8
  | Host | Kinds | Onboarded | Checked |
9
9
  | --- | --- | --- | --- |
10
10
  | [Microsoft Teams](teams.md) | Described (chat cards, dialogs), framed page (tabs, dialogs) | Draft: no proof yet | 2026-11-07 |
11
+ | [Gemini Enterprise](gemini.md) | Described (messages, A2UI cards, the side panel) | Draft: no proof yet | 2026-11-16 |
11
12
 
12
13
  Next in line: Microsoft 365 Copilot (described cards for Alis in Copilot chat,
13
- framed views for the Copilot companion). ChatGPT, Claude and Slack wait until
14
+ framed views for the Copilot companion), and Google Meet (a framed page: the
15
+ add-on's side panel and main stage). ChatGPT, Claude and Slack wait until
14
16
  something is built for them.
15
17
 
16
18
  A new host starts from the five sections in
@@ -0,0 +1,279 @@
1
+ {
2
+ "host": "gemini",
3
+ "name": "Gemini Enterprise",
4
+ "status": "draft",
5
+ "missing": [
6
+ "proof for every card, light and dark",
7
+ "a probe, in each family: the standard A2UI set or the Material* set, unstyled, beside one of Google's own agents; whether a card's link opens, its choice and button send a press, a picked chip or ticked box still shows later, and backticks draw as code",
8
+ "a probe: MaterialExpansionPanel, the contrast look, Material Symbols or Material Icons"
9
+ ],
10
+ "owner": "design system",
11
+ "checked": "2026-11-16",
12
+ "due": "2027-02-16",
13
+ "recheckWhen": "Google changes the A2UI catalog Gemini Enterprise names, or Gemini Enterprise's release notes touch agents, A2A or A2UI",
14
+ "protocol": {
15
+ "a2a": "0.3",
16
+ "a2ui": "v0.9",
17
+ "catalog": "https://www.gstatic.com/vertexaisearch/a2ui/v0_9/gemini_enterprise_composite_catalog.json"
18
+ },
19
+ "surfaces": [
20
+ {
21
+ "id": "message",
22
+ "kind": "described",
23
+ "is": "A message in the chat with Alis: markdown text, streamed by appending"
24
+ },
25
+ {
26
+ "id": "card",
27
+ "kind": "described",
28
+ "is": "An A2UI surface in a task's artifact, drawn once the task stops"
29
+ },
30
+ {
31
+ "id": "status",
32
+ "kind": "host",
33
+ "is": "The task's working status, shown under Gemini's \"Thinking…\" and folded into \"Show thinking\""
34
+ },
35
+ {
36
+ "id": "side-panel",
37
+ "kind": "described",
38
+ "is": "Gemini's Canvas: a side panel opened from a press, holding text or an image"
39
+ },
40
+ {
41
+ "id": "waiting-form",
42
+ "kind": "host",
43
+ "is": "Gemini's own free-text form while a turn waits for an answer (input-required)"
44
+ }
45
+ ],
46
+ "listing": {
47
+ "name": "AlisX",
48
+ "developmentName": "AlisX (Dev)",
49
+ "provider": "Alis Exchange",
50
+ "nameSetAt": "registration (displayName); the agent card's name is AlisX too",
51
+ "signIn": "named by its authorization id, which people read: alisx"
52
+ },
53
+ "limits": {
54
+ "drawnWhen": "the task stops",
55
+ "updateDrawnCard": false,
56
+ "reuseSurfaceId": false,
57
+ "answerUpdates": "append",
58
+ "styleOn": "Material* components only",
59
+ "colourValue": false,
60
+ "fontFamily": false,
61
+ "pressFrom": [
62
+ "MaterialButton",
63
+ "MaterialChips"
64
+ ],
65
+ "cardLink": "MaterialCard href",
66
+ "sidePanelOpensFrom": "a press",
67
+ "materialCardInset": 16,
68
+ "frames": "IFrameSrcdoc shows nothing; IFrameUrl untested"
69
+ },
70
+ "style": {
71
+ "send": "none",
72
+ "exception": "spacing in multiples of 8 between parts that would touch, and wrapping so a card holds at 320; no negative margin, fixed size or radius",
73
+ "why": "Gemini Enterprise draws A2UI with its own styling, and A2UI leaves the look to the host; a component restyled toward ours is a blend",
74
+ "oursToChoose": [
75
+ "a button's variant",
76
+ "a card's appearance",
77
+ "an image's size (48 for a file's picture)"
78
+ ]
79
+ },
80
+ "type": {
81
+ "text-object-title": "subtitle1",
82
+ "text-body": "body1",
83
+ "text-supporting": "body2",
84
+ "text-label": "subtitle2"
85
+ },
86
+ "themes": [],
87
+ "theme": {
88
+ "source": "Gemini's own; a card takes no colour, so it follows",
89
+ "contrast": "unknown"
90
+ },
91
+ "colour": {
92
+ "send": false,
93
+ "askTinted": false,
94
+ "riskIn": "words"
95
+ },
96
+ "icons": {
97
+ "set": "Material, by name (MaterialIcon)",
98
+ "checked": false,
99
+ "map": "identity: the system's own names",
100
+ "ours": {
101
+ "drawn": "our glyph",
102
+ "why": "Gemini draws Material, the set our things are drawn in"
103
+ },
104
+ "capabilityMarks": false
105
+ },
106
+ "options": {
107
+ "plain": "MaterialChips, one per option; \"(recommended)\" after the suggested one's label",
108
+ "described": "a row per option: label over its line, Choose at its end; the suggested one says Recommended and its Choose is filled",
109
+ "several": "MaterialCheckbox per option, its line under it, then Send",
110
+ "max": "every option drawn; Alis keeps a question to five",
111
+ "ownAnswer": "the card's last line reads \"Or tell Alis something else.\"; no box"
112
+ },
113
+ "things": {
114
+ "withAddress": "the whole card opens an https address (href), no button",
115
+ "noAddress": "drawn with its kind, doesn't open",
116
+ "list": "one card of rows, each ending in Open; every reference listed, since there's no expanded view",
117
+ "file": "Open, a press, opens the side panel",
118
+ "link": "stays in the answer as markdown, description after it; no card, since a card shows only once the turn stops"
119
+ },
120
+ "progress": {
121
+ "whileRunning": "each step's words as the task's status",
122
+ "card": "drawn once as the turn stops, only when it showed steps; no title, no actions: the state line, the last three steps, a line counting the rest by kind",
123
+ "stop": "Gemini's own cancel"
124
+ },
125
+ "updates": {
126
+ "updateSentCard": false,
127
+ "afterPress": "an approval's record first in the answer that follows; a second press gets the first decision's record; a choice's record is the pick the card keeps showing, else its labels first in the answer"
128
+ },
129
+ "plan": {
130
+ "body": "the whole plan on the card",
131
+ "why": "the side panel opens only from a press, so there is no link to the rest"
132
+ },
133
+ "cards": {
134
+ "reply": {
135
+ "surface": "message",
136
+ "proof": "none"
137
+ },
138
+ "ask": {
139
+ "surface": "card",
140
+ "proof": "none"
141
+ },
142
+ "thing": {
143
+ "surface": "card",
144
+ "proof": "none"
145
+ },
146
+ "task": {
147
+ "surface": "card",
148
+ "also": "status",
149
+ "proof": "none",
150
+ "updates": "drawn once"
151
+ },
152
+ "expanded": {
153
+ "surface": "side-panel",
154
+ "proof": "none"
155
+ }
156
+ },
157
+ "sources": [
158
+ {
159
+ "id": "catalog",
160
+ "tag": "limit",
161
+ "claim": "Only MaterialButton (action) and MaterialChips send a press; MaterialCard takes href; the catalog also lists MaterialExpansionPanel",
162
+ "url": "https://www.gstatic.com/vertexaisearch/a2ui/v0_9/gemini_enterprise_composite_catalog.json",
163
+ "page": null,
164
+ "checked": "2026-11-16"
165
+ },
166
+ {
167
+ "id": "built-in-styling",
168
+ "tag": "limit",
169
+ "claim": "Gemini Enterprise supports the standard A2UI components and draws them with its own built-in styling",
170
+ "url": "https://cloud.google.com/blog/topics/developers-practitioners/guide-to-gemini-enterprise-and-a2ui-integration",
171
+ "page": null,
172
+ "checked": "2026-11-16"
173
+ },
174
+ {
175
+ "id": "drawn-when-stopped",
176
+ "tag": "limit",
177
+ "claim": "A card is drawn only once the task stops, whether it was sent as a last chunk or not",
178
+ "url": null,
179
+ "page": null,
180
+ "checked": "2026-11-09",
181
+ "note": "agent.google.v1 4009c55319 reverts three tries to draw it sooner"
182
+ },
183
+ {
184
+ "id": "no-redraw",
185
+ "tag": "limit",
186
+ "claim": "A drawn card can't change, and a surface id can be used once",
187
+ "url": null,
188
+ "page": null,
189
+ "checked": "2026-11-09",
190
+ "note": "agent.google.v1 2cd04a84ce: a second Open failed with surface already exists"
191
+ },
192
+ {
193
+ "id": "append-only",
194
+ "tag": "limit",
195
+ "claim": "An answer's update appends; a replacement is ignored",
196
+ "url": null,
197
+ "page": null,
198
+ "checked": "2026-11-02",
199
+ "note": "agent.google.v1 README"
200
+ },
201
+ {
202
+ "id": "style-material",
203
+ "tag": "limit",
204
+ "claim": "Only Material* components take a style; no colour or font family gets through",
205
+ "url": null,
206
+ "page": null,
207
+ "checked": "2026-11-10",
208
+ "note": "agent.google.v1 README"
209
+ },
210
+ {
211
+ "id": "thinking",
212
+ "tag": "observed",
213
+ "claim": "A working status shows under \"Thinking…\" while the turn runs and folds into \"Show thinking\" when it ends",
214
+ "url": null,
215
+ "page": null,
216
+ "checked": "2026-11-09",
217
+ "note": "agent.google.v1 README, seen on Development"
218
+ },
219
+ {
220
+ "id": "waiting-form",
221
+ "tag": "limit",
222
+ "claim": "While a turn is input-required, Gemini draws its own form, \"Review: Mock Function Call For Required User Input\", with the status as its prompt; what is typed reaches Alis as a plain message",
223
+ "url": null,
224
+ "page": null,
225
+ "checked": "2026-11-04",
226
+ "note": "agent.google.v1 320efbd3ec"
227
+ },
228
+ {
229
+ "id": "seen-working",
230
+ "tag": "observed",
231
+ "claim": "Chips, ticked boxes and Send, a typed answer, a risk in words, fact sets, file pictures, a reference's Open and an operation's Logs draw and work",
232
+ "url": null,
233
+ "page": null,
234
+ "checked": "2026-11-10",
235
+ "note": "agent.google.v1 3d38d909af, d5421eb201"
236
+ },
237
+ {
238
+ "id": "frames",
239
+ "tag": "observed",
240
+ "claim": "IFrameSrcdoc shows nothing for our pages, inside a column or not",
241
+ "url": null,
242
+ "page": null,
243
+ "checked": "2026-11-05",
244
+ "note": "agent.google.v1 README"
245
+ },
246
+ {
247
+ "id": "sign-in",
248
+ "tag": "limit",
249
+ "claim": "Gemini asks people to sign in with \"The agent requires additional authorization for: <id>\", naming the authorization by its id; an id serves one agent, forever",
250
+ "url": null,
251
+ "page": null,
252
+ "checked": "2026-11-12",
253
+ "note": "agent.google.v1 b0927ff6a2, seen on Production"
254
+ },
255
+ {
256
+ "id": "first-chat-empty",
257
+ "tag": "observed",
258
+ "claim": "No opening message follows a first sign-in: that chat starts empty",
259
+ "url": null,
260
+ "page": null,
261
+ "checked": "2026-11-12",
262
+ "note": "agent.google.v1 b0927ff6a2"
263
+ }
264
+ ],
265
+ "components": {
266
+ "family": "unsettled",
267
+ "candidates": [
268
+ "standard A2UI (Card, Column, Row, List, Text, Button, ChoicePicker, CheckBox)",
269
+ "Material*, unstyled"
270
+ ],
271
+ "decidedBy": "the probe",
272
+ "rule": "one family for every card; the standard set loses if it can't press or open a link"
273
+ },
274
+ "waiting": {
275
+ "status": "Answer on the card, or tell Alis here.",
276
+ "typed": "reaches Alis as words, read as any typed answer"
277
+ },
278
+ "textTwin": "the agent's words beside each component; an approval's card says everything itself"
279
+ }
@@ -0,0 +1,182 @@
1
+ # Gemini Enterprise
2
+
3
+ **Status: draft.** Sources, jobs and differences are filled from Google's A2UI
4
+ catalog and from what the adapter has seen Gemini Enterprise do; there's no
5
+ proof yet in the form section 4 asks for. Read [rules/hosts.md](../rules/hosts.md)
6
+ first: this page holds only where Gemini Enterprise differs. The same facts as
7
+ data are in `gemini.json`.
8
+
9
+ Gemini Enterprise talks to Alis over A2A 0.3 and draws what Alis sends with
10
+ A2UI v0.9, from its own catalog of components. Everything Alis sends is
11
+ **described**: Gemini draws it with its own Material components. There is no
12
+ framed view or framed page yet.
13
+
14
+ ## 1. Sources and evidence
15
+
16
+ Checked 16 November 2026. Every claim, with its link or the change that saw it,
17
+ is in `gemini.json` § sources; the ones that shape a design are here.
18
+
19
+ | Tag | What Gemini Enterprise does |
20
+ | --- | --- |
21
+ | limit | Draws a card only once the task stops: a card sent while the turn runs, and redrawn as it goes, shows at the end |
22
+ | limit | Can't change a card it has drawn, and refuses a surface id it has already seen |
23
+ | limit | Appends to an answer and ignores a replacement |
24
+ | limit | Draws every standard A2UI component with its own styling; only its `Material*` components take a `style`, and no colour value or font family gets through |
25
+ | limit | Only a button and a chip send a press back to Alis; a card takes a link (`href`) and nothing else |
26
+ | limit | Opens its side panel (`Canvas`) only from a press, not from a link |
27
+ | limit | Draws its own free-text form beside a card while a turn waits for an answer (`input-required`); what is typed there reaches Alis as a message, not as an answer to the card |
28
+ | limit | Asks people to sign in in its own words, naming the authorization by its id |
29
+ | observed | A step's words, sent as the turn's status, show under "Thinking…" while it runs and fold into "Show thinking" after, 9 Nov |
30
+ | observed | Chips, ticked boxes with Send, a typed answer, a risk in words, fact sets, file pictures, a reference's Open and an operation's Logs all draw and work, 3 to 10 Nov |
31
+ | observed | `IFrameSrcdoc` shows nothing for our pages, 5 Nov |
32
+ | observed | No opening message after someone first signs in: that chat starts empty |
33
+ | unknown | Which components read as Gemini's own, unstyled: the standard A2UI set or the `Material*` set (§ 3, the probe) |
34
+ | unknown | Whether `MaterialExpansionPanel`, which the catalog lists, draws: nothing that folds has been tried |
35
+ | unknown | How a card looks in a contrast theme, and whether Gemini has one |
36
+ | unknown | Whether `MaterialIcon` draws Material Symbols or the older Material Icons |
37
+
38
+ ## 2. Jobs here
39
+
40
+ | Job | Here, as | Handed off, and why |
41
+ | --- | --- | --- |
42
+ | Ask Alis something, follow the answer | Alis's reply; the steps under Gemini's "Thinking…"; the task card once it stops | |
43
+ | Approve what Alis wants to do | Alis needs you (Approve), a card | |
44
+ | Answer Alis's question | Alis needs you (Choose one, Choose several), a card | |
45
+ | Connect an AlisX account | Gemini's own sign-in, before the first message | |
46
+ | Open a file Alis made | A thing; Open shows it in the side panel (text, an image) or hands back the file | Seeing an HTML page as a page: the AlisX console, since a frame shows nothing; here it shows as its text |
47
+ | Open a project, an interview, a ticket | A thing that opens it in the AlisX console | |
48
+ | Follow a define, build or deploy | A thing that opens its logs | |
49
+ | Review a long document | The side panel, as text | Anything with a table, a form or a page: the AlisX console |
50
+ | Run an interview in a call | Not here | The Google Meet add-on: Google Meet is its own host |
51
+
52
+ ## 3. Differences
53
+
54
+ **One listing, named AlisX.** The agent card's name is AlisX and its provider
55
+ Alis Exchange; the name Gemini shows is set when the agent is registered:
56
+ AlisX, and AlisX (Dev) for Development only. The card's description speaks of
57
+ the AlisX Platform, and of Alis. Sign-in is named by its authorization id,
58
+ which people read, so Production's id is `alisx`.
59
+
60
+ **Gemini's look, throughout.** Gemini Enterprise draws A2UI with its own
61
+ styling, and A2UI leaves the look to the host, so a card is Gemini's
62
+ components as Gemini draws them: its shapes, weights, type, insets and
63
+ spacing. We send no `style`, though the Material components would take one
64
+ ([rules/hosts.md](../rules/hosts.md) § Which kind of host). The one exception
65
+ is the rule's: two parts that would touch, where the component has no spacing
66
+ property of its own (a row's gap), get spacing in multiples of 8; a row of
67
+ actions wraps, and a long value breaks, so a card holds at 320. Nothing else:
68
+ no negative margin, no fixed width or height, no radius. Gemini's own options
69
+ are ours to choose (a button's variant, a card's appearance, an image's size,
70
+ 48 for a file's picture).
71
+
72
+ **Which components** isn't settled: the standard A2UI ones (Card, Column, Row,
73
+ List, Text, Button, ChoicePicker, CheckBox), which Gemini styles itself and
74
+ which take no `style`, or its `Material*` ones, unstyled. A probe decides: the
75
+ same approval card built both ways, light and dark, beside one of Google's own
76
+ agents in Gemini Enterprise. The family that reads as Gemini's own is the one
77
+ every card uses, written here once it's chosen. If the standard set can't
78
+ send a press or open a card's link, it loses: one family serves every card,
79
+ never a mix. The probe also answers, in
80
+ the family it picks: whether a card's link opens; whether its choice and
81
+ button send a press; whether a picked chip or a ticked box still shows after
82
+ the turn ends and when the chat is opened again; and whether a command in
83
+ backticks draws as code.
84
+
85
+ **Our type roles take Gemini's words**, and nothing else sets type. For the
86
+ `Material*` set they are below; if the probe picks the standard set, its
87
+ Text's own hints replace them here:
88
+
89
+ | Our role | Material's |
90
+ | --- | --- |
91
+ | `text-object-title` (a card's title) | `subtitle1` |
92
+ | `text-body` | `body1` |
93
+ | `text-supporting` | `body2` |
94
+ | `text-label` | `subtitle2` |
95
+
96
+ **No colour, so states and risk are words.** Nothing sends a colour; a
97
+ failure says so, and the glyph is a state's. An ask is never coloured.
98
+
99
+ **Glyphs are ours.** Gemini draws Material icons by name, so a thing's glyph
100
+ and a state's icon are the system's own names, unmapped
101
+ ([icons.md](../rules/icons.md)), and a thing of ours keeps its glyph. A
102
+ capability mark never goes on a card.
103
+
104
+ **Options are what Gemini can press.** A row can't be pressed, so the options
105
+ the rule draws as rows are, in Gemini:
106
+
107
+ | The ask | Drawn as |
108
+ | --- | --- |
109
+ | Choose one, options with a label only | Gemini's chips, one per option; the one Alis suggests reads "(recommended)" after its label, which is all a chip carries |
110
+ | Choose one, options that say more | A row per option, its label over its line, Choose at its end; the suggested one says "Recommended" on its line and its Choose is filled |
111
+ | Choose several | A box to tick per option, its line under it, then Send |
112
+
113
+ Gemini has no expanded view an ask can open, so a card lists every option;
114
+ Alis keeps a question to five. Where an answer of your own is welcome, the
115
+ card's last line reads "Or tell Alis something else.", and the chat is where
116
+ you say it: no box on the card.
117
+
118
+ **The text twin is the agent's words.** agent.v3 writes the same thing in the
119
+ answer's words beside every component, and Gemini always draws A2UI, so a card
120
+ carries no fallback text of its own. An approval has no words beside it, so its
121
+ card says everything itself.
122
+
123
+ **A thing opens from the whole card** where it has an address (an `https`
124
+ one): a reference and
125
+ an operation's logs are a card whose `href` is that address, with no button on
126
+ it. A thing with no address (an interview with no page yet) is still drawn,
127
+ with its kind, and doesn't open. A row can't take a link, so several references in a row are
128
+ one card of rows, each ending in Open, which opens that row's address: one
129
+ card for the list, not a card each, listing every reference however many: there's
130
+ no expanded view to send the rest to. A file opens from a press, because the
131
+ side panel does, so a file's card keeps Open.
132
+
133
+ **A link stays in the words.** A card shows only once the turn stops, and a
134
+ link is often something to act on now: the sign-in link and its code, which
135
+ the agent sends while a turn waits. So a link is written into the answer as
136
+ markdown, with its description after it, and gets no card.
137
+
138
+ **The task card is a record.** Gemini draws it once the turn has stopped, so
139
+ it carries no actions: no Stop (Gemini's own cancel stops the turn), and no
140
+ Try again or Open task (sending the words again, or the AlisX console, does
141
+ that). It has no title: its state line leads. It is drawn once, as the turn
142
+ stops, and only for a turn that showed steps; a turn that showed none gets no
143
+ card. While the turn runs,
144
+ each step's words are sent as its status, and Gemini shows them under
145
+ "Thinking…". The card lists the last three steps under one line that counts
146
+ the rest by kind.
147
+
148
+ **After a press, the record follows.** An approval can't lose its actions, so
149
+ what was decided comes first in the answer that follows the press: "Allowed:
150
+ …", "Not now: …", in the rule's words. A second press on an answered approval
151
+ gets the record of what was decided first, whichever button it is, and
152
+ nothing runs twice. A choice's record is the pick itself, which the chip or
153
+ the ticked box keeps showing; if the probe finds it doesn't, the pick's labels
154
+ come first in the answer instead.
155
+
156
+ **A plan stays whole on its card.** The side panel opens only from a press, so
157
+ there's no link to the rest of a long plan: the card holds all of it.
158
+
159
+ **While a turn waits** for an approval, Gemini draws its own form for the
160
+ waiting state, with the turn's status as its prompt. What is typed there
161
+ reaches Alis as words, and Alis reads them as any typed answer
162
+ ([rules/hosts.md](../rules/hosts.md)), so the status says both ways:
163
+ "Answer on the card, or tell Alis here."
164
+
165
+ ## 4. Proof
166
+
167
+ None yet. The adapter's cards were built before this profile, so they go in
168
+ the baseline; what Gemini has been seen to draw is in section 1.
169
+
170
+ | Card | Real Gemini Enterprise, light and dark |
171
+ | --- | --- |
172
+ | Alis's reply | Not yet |
173
+ | Alis needs you (Approve, a plan, Choose one, Choose several) | Not yet |
174
+ | A thing (a file, a reference, a link, an operation) | Not yet |
175
+ | The task card | Not yet |
176
+ | The expanded view (the side panel) | Not yet |
177
+
178
+ ## 5. Re-check
179
+
180
+ Owned by the design system. Checked 16 November 2026; due 16 February 2027, or
181
+ sooner when Google changes the A2UI catalog Gemini Enterprise names, or
182
+ Gemini Enterprise's release notes touch agents, A2A or A2UI.
package/hosts/teams.json CHANGED
@@ -162,7 +162,7 @@
162
162
  }
163
163
  },
164
164
  "options": {
165
- "as": "container with selectAction, or Teams' compound button",
165
+ "as": "container with selectAction",
166
166
  "max": 5,
167
167
  "quickReplies": false,
168
168
  "dropdown": false
@@ -199,8 +199,8 @@
199
199
  "updates": "in place"
200
200
  },
201
201
  "expanded": {
202
- "surface": "dialog-page",
203
- "also": "tab",
202
+ "surface": "tab",
203
+ "also": "dialog-page, once one is built",
204
204
  "proof": "none"
205
205
  }
206
206
  },
package/hosts/teams.md CHANGED
@@ -71,11 +71,19 @@ one that matters is said by its word and its place, last, as everywhere. In a
71
71
  dialog holding a card the last action is drawn solid, which is the same place.
72
72
 
73
73
  **Options are rows you press.** An ask's options are containers with a
74
- `selectAction`, each a label and a supporting line (Teams' compound button where
75
- it has one), never action buttons and never a dropdown. Five at most; more
76
- opens the expanded view. Choose several is an expanded multi-select list, then
77
- the verb; a card can't count what's chosen as you choose, so the verb names the
78
- outcome without a count ("Send regions").
74
+ `selectAction`, each a label and a supporting line, never action buttons and
75
+ never a dropdown; Teams' compound button needs a newer card schema than the 1.5
76
+ this profile pins, so it isn't used. Five at most; more opens the expanded
77
+ view. Choose several is an expanded multi-select list, then Send: a card can't
78
+ count what's chosen as you choose, and the agent's options don't name what
79
+ they are.
80
+
81
+ **A command** is a `CodeBlock` in Teams, with a monospace `TextBlock` as its
82
+ fallback, which is what Microsoft 365 Copilot draws.
83
+
84
+ **The working line** is Teams' own streaming update (the informative message
85
+ above a streamed reply): it carries the latest step's words while the turn
86
+ runs.
79
87
 
80
88
  **The task card updates in place.** Alis updates the card it sent rather than
81
89
  sending a new one, and a refresh keeps it current for each person. A working
@@ -83,6 +91,17 @@ step shows Teams' own progress ring; there's no progress bar unless the work is
83
91
  counted ([AppProgress](../components/AppProgress.md)). Long work is a task card,
84
92
  never a reply left streaming: a stream closes at 10 minutes.
85
93
 
94
+ **The work, in a streamed turn.** While the reply streams, the work is the
95
+ working line. A turn that finishes inside its stream needs no task card. One
96
+ that doesn't (it waits on an ask, fails, or outlasts the stream) gets the task
97
+ card as soon as the stream closes, then the things and the ask after it. Steps
98
+ fold behind a Show steps disclosure (`Action.ToggleVisibility`): the latest
99
+ twelve, and the whole list on the task's page. Never paged inside the card.
100
+
101
+ **The expanded view, for now, is the Tasks tab** (opened in Stageview). A
102
+ dialog holding a page is the long-term surface; until one is built, the tab is
103
+ where Open task and anything too big for a card go.
104
+
86
105
  **Colour, by role.** Our roles take these Teams words, and nothing else does:
87
106
 
88
107
  | Our role | On a card |
@@ -147,8 +166,8 @@ this map, never passing Teams' name through:
147
166
  | anything else | `light` |
148
167
 
149
168
  A framed page is the product register ([register.md](../rules/register.md)). It
150
- draws no title bar, navigation or sign-in of its own; when the person's Alis
151
- account isn't connected, it shows Alis needs you (Connect), not a sign-in
169
+ draws no title bar, navigation or sign-in of its own; when the person's
170
+ AlisX account isn't connected, it shows Alis needs you (Connect), not a sign-in
152
171
  screen.
153
172
 
154
173
  **Quick replies aren't used.** Suggested actions under a message would be a
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@alis-build/design-system",
3
- "version": "0.67.0",
3
+ "version": "0.68.1",
4
4
  "description": "The AlisX design system for coding agents: tokens, product CSS, component markup, capability marks, words and rules.",
5
5
  "keywords": ["alisx", "design-system", "design-tokens", "css"],
6
6
  "homepage": "https://alisx.com",
@@ -24,6 +24,7 @@
24
24
  "./components/*": "./components/*",
25
25
  "./assets/*": "./assets/*",
26
26
  "./email/*": "./email/*",
27
+ "./hosts/*": "./hosts/*",
27
28
  "./package.json": "./package.json"
28
29
  },
29
30
  "files": [
package/rules/hosts.md CHANGED
@@ -66,6 +66,18 @@ Who draws what we send?
66
66
  | **Type** | The host's | The host's font and scale | Ours ([type.md](type.md)) |
67
67
  | **Theme** | The host's, contrast included | The host's, from what it sends; the profile's fallback when it sends nothing | The host's, through the profile's map ([themes.md](themes.md) § Who picks the theme) |
68
68
  | **Components** | The host's elements | Plain HTML on the host's variables; no `.app-*` component | `.app-*`, the whole product register |
69
+ | **Style** | None of ours: the host's shapes, weights, sizes and spacing, set only through the host's own properties | Ours, from the host's variables only | Ours ([styling.md](styling.md)) |
70
+
71
+ **A described card sends no styling of its own**, even where the host would
72
+ take it. We choose which of the host's components and roles carry each part,
73
+ in what order, and which action is filled; the host decides how all of it
74
+ looks. Restyling a host's component toward ours (our radius, our button
75
+ weight, our insets) is the blend the stance rules out, and it breaks when the
76
+ host changes its look. Choosing among the host's own options (a button's
77
+ variant, a card's appearance, an image's size) is ours; a radius, a weight or a
78
+ colour never is. The one exception is layout the host leaves undone: two parts
79
+ that would touch get spacing on the host's grid, and a row or a long value
80
+ that would overflow at 320 wraps. Nothing else.
69
81
 
70
82
  A framed page doesn't draw what the host already draws: no second title bar, no
71
83
  navigation pane, no sign-in screen when the host has signed the person in.
@@ -80,7 +92,7 @@ for one host. Five things, each from a component the system already has.
80
92
  | **Alis's reply** | [AppTurn](../components/AppTurn.md) | A message, the default. It streams where the host streams, and Alis writes "I". Thumbs are the host's own reactions where it has them. A card only when a press or a structure is needed |
81
93
  | **Alis needs you** | [AppAsk](../components/AppAsk.md), any kind | A card. The question is its title; up to four fields say what will happen. Options are rows you press to answer, never buttons. Choose several is the host's own checklist, then the verb. Then Not now, AppAsk's one wider scope where the ask offers it, and the verb named by its outcome, in AppAsk's order. A press or an answer typed in the host's composer closes it: "yes, go ahead" allows it. It then reads back as AppAsk's record ("Allowed: Send 6 invites", "Not now: …") and loses its actions. Connect is AppAsk's Connect |
82
94
  | **A thing** | [AppAttachment](../components/AppAttachment.md) | A card, or a row in one: its glyph, its name, its kind and a detail, up to four fields. The whole tile opens it, so rows of things need no button each |
83
- | **Work** | AppTurn's steps, with the composer's Stop | The task card: the task's name, its state in words (Queued, Working, Stopping, Stopped, Failed, Finished), at most three steps; once finished, what was done with its counts ("Interview created, 0 people invited") |
95
+ | **Work** | AppTurn's steps, with the composer's Stop | The task card: the task's name, its state in words (§ From the agent's message), the latest three steps; once finished, AppTurn's line: "Worked for 42s · 6 steps" |
84
96
  | **Too big for a card** | [AppFilePane](../components/AppFilePane.md), a page | The expanded view: a framed page beside or over the conversation, where the host has one. *Open task* opens a task there; *Open interview* (the thing's name) opens a thing in the console |
85
97
 
86
98
  **The task card carries the composer's controls**, because in a host the
@@ -88,6 +100,9 @@ composer is the host's. Two at most, by state: *Stop* while it works; *Try
88
100
  again* and *Open task* when it failed; *Open task*, and *Open* and the kind of
89
101
  thing it made ("Open interview"), once finished. Stop acts at once: stopping is
90
102
  your choice, never confirmed and never red ([AppTurn](../components/AppTurn.md)).
103
+ *Try again* sends the words that started the turn again. *Open* and its kind
104
+ appear only when the answer carries exactly one thing (one file or one
105
+ reference); with none or several, *Open task* alone.
91
106
 
92
107
  **A card the host can't change.** Microsoft Teams updates a card it drew;
93
108
  Microsoft 365 Copilot and Gemini Enterprise can't. There, a card is drawn once
@@ -114,31 +129,95 @@ A piece the agent gains is added here before any host draws it.
114
129
 
115
130
  | The agent sends | It is | In a host |
116
131
  | --- | --- | --- |
117
- | **Text** that answers | Alis's reply | The message. A path under the agent's own address never shows: it's a file, drawn as one |
118
- | **A step** (a command or a hand-over) | A step of the work | Its summary, the words written for you ("Creating the interview"), never the command line. Past three, one line counts the rest by kind: "Read 9 files, edited 2, ran 4 commands" |
119
- | **Thinking, notes, a command's output, a specialist's report** | Nothing | Never drawn. A note may be the host's thinking line while the turn runs |
120
- | **An approval**, a command | Alis needs you: Approve | Title: the act as a question ("Deploy 1.0.5 to Development?"), or "Run this command?" when the agent gives no summary. Body: what makes it grave, as one sentence first (below), then the reason, then the command in the host's code style. Not now, the wider scope when the agent offers one, then the verb named by its outcome ("Deploy", "Delete 14 interviews"), or Run it |
121
- | **An approval**, a plan | Alis needs you: Approve | Title "Run this plan?". Body: the plan's first six lines; a longer plan ends with a link to the whole of it in the expanded view. Not now · Run without asking · **Run it**. Run it asks before every change; Run without asking is the wider scope, and still stops for anything grave. What should change, you say in the host's composer |
122
- | **Options** | Alis needs you: Choose one, Choose several | Rows: the label, and a supporting line if there is one; the one Alis suggests says "Recommended" on that line. Five at most on a card; more opens in the expanded view. Several: the host's checklist, then Send. When your own answer is welcome, the last line reads "Or tell Alis something else.", and the host's composer is where you say it. A pick is sent as your own words, which are the record |
123
- | **Connect** | Alis needs you: Connect | "Connect your AlisX account". Where the host signs people in itself, the host's sign-in, and nothing of ours |
124
- | **A link** | A thing | `link`, its title, and where it lives as the detail (its host, or "Interview"). Opens in the browser |
125
- | **A file** | A thing | AppAttachment's glyph for its kind, or the picture when it's an image; Alis's description of it, or its name; its kind and size. Opens in the expanded view; "Deleted" once it's gone |
126
- | **A reference** | A thing | The glyph for its kind (a project, an interview, a skill) where the host draws Material Symbols, otherwise none (rule 8); its title, and the product after it as the detail ("Project · Alis Ideate"). Opens on the thing itself. Several in a row are one card of rows |
127
- | **An operation** (a define, build or deploy) | A thing | `schema`, `build` or `rocket_launch` where the host draws Material Symbols, otherwise no glyph but a failure's `error` (rule 8); its state as the label: "Deploying 1.0.5 to Development", "Deployed 1.0.5 to Development", "Couldn't deploy 1.0.5", with `error` for the glyph when it failed; the package, "Running" when it serves, and its changes as the detail, or the error. Opens its logs. Drawn as it stood: a later state is a new one |
128
- | **Facts** | Alis's reply, as a read-back ([AppFact](../components/AppFact.md)) | A title if it has one, then each label and its whole value, never shortened. The host's own fact list where it has one |
132
+ | **Text** that answers (`presentation` ANSWER, or unspecified from Alis) | Alis's reply | The message. A path under the agent's own address (`/api/files/…`) never shows in the text: it's a file, drawn as one. While the turn runs, the host's working line carries text marked PROGRESS when there is some, otherwise the latest step's summary |
133
+ | **A step** (`Command`, by its `summary`) | A step of the work | Its summary ("Creating the interview"), never the command line. The latest three show; the rest are one line counted by kind (below). A step with no summary is counted, never listed. A hand-over to a specialist (`Delegation`) isn't a step of its own: the steps taken under it (`parent`) are |
134
+ | **Thinking, notes, a command's output, a specialist's report, a tool's picture** | Nothing | Never drawn. Nor are the parts that echo what the person sent (their answers, references, approvals): the host shows their message. |
135
+ | **An approval**, a command | Alis needs you: Approve | Title: the act as a question ("Deploy 1.0.5 to Development?") when the agent says the act; until it does, "Run this command?". Body: the risk sentence first (below), then the `summary` ("Deploying 1.0.5 to Development"), the `reason`, and the `command` in the host's code style. Actions: Not now · the wider scope (below) · the verb named by its outcome ("Deploy"), or Run it while the agent doesn't say one |
136
+ | **An approval**, a plan | Alis needs you: Approve | Title "Run this plan?". Body: the plan's first six lines; a longer plan ends with a link to the whole of it in the expanded view. Not now · Run without asking · **Run it**. Run it answers with `MANUAL` (asks before every change), Run without asking with `AUTO`, and still stops for anything grave. What should change, you say in the host's composer |
137
+ | **Options** | Alis needs you: Choose one, Choose several | `question` is the title. Rows: the `label`, and the `description` under it; on the one Alis suggests (`recommended`), that second line starts "Recommended · ". Five at most on a card; more opens in the expanded view. Several (`multiple`): the host's checklist, then Send. When your own answer is welcome (`allow_other`), the last line reads "Or tell Alis something else.", and the host's composer is where you say it. A pick goes back as `answers` (the question's id, each pick's `value` and `label`), several picks as one answer; what's typed goes as text |
138
+ | **Connect** | Alis needs you: Connect | Title "Connect your AlisX account?", one line on what Alis will be able to do, then Not now · Connect your AlisX account. Where the host signs people in itself, the host's sign-in, and nothing of ours |
139
+ | **A link** | A thing | `link`, its `title` (its address when there's none), and where it lives as the detail: "Interview" when it opens an interview, otherwise its host ("docs.alisx.com"). Opens in the browser |
140
+ | **A file** | A thing | AppAttachment's glyph for its kind, or the picture (`thumbnail_uri`) when it's an image; its `description`, or else its `file_name`; its kind and size as the detail ("HTML page · 6 KB"). Opens in the expanded view. "Deleted" once it's gone: a file the agent found neither a write time nor a size for |
141
+ | **A reference** | A thing | The glyph for its kind where the host draws Material Symbols, otherwise none (rule 8); its `title`; its kind and product as the detail, read from the last collection in its name (below). Opens its `uri`, on the thing itself; with no `uri`, the row opens nothing and isn't pressable. Several in a row are one card of rows, each row opening its own |
142
+ | **An operation** (a define, build or deploy) | A thing | `schema`, `build` or `rocket_launch` where the host draws Material Symbols, otherwise none but a failure's `error` (rule 8). Its state is the label (below); the detail is the package, "Running" when the deployed service is up (`live`), and `change_summary`, joined by " · ", or the `error_message` when it failed. Opens its logs (`logs_uri`). Drawn as it stood: a later state is a new one |
143
+ | **Facts** (`FactSet`) | Alis's reply, as a read-back ([AppFact](../components/AppFact.md)) | A title if it has one, then each label and its whole value, never shortened. The host's own fact list where it has one |
144
+ | **The turn's state** | The task card | Below |
145
+
146
+ **What's typed while an ask waits** goes to the agent as words, and the agent
147
+ reads them: "yes, go ahead" approves because Alis reads it so. The host never
148
+ decides an approval from the words itself. A typed option's label or number may
149
+ go as that pick, as the console does. Once the turn moves on (the session
150
+ leaves AWAITING_APPROVAL, or a new turn starts), the card loses its actions;
151
+ words typed are their own record, so the card gains none.
152
+
153
+ **Rows of things** are five at most on a card, as options are; past five, the
154
+ card's last row opens the rest in the expanded view ("Open all 8").
129
155
 
130
156
  **What makes an approval grave** is said in words, never by a tint or a red
131
157
  card: an ask is never coloured, because a decision isn't a status.
132
158
 
133
- | The agent's risk | The first sentence |
159
+ | `risk` | The first sentence |
134
160
  | --- | --- |
135
- | Can't be undone | "This can't be undone." |
136
- | Production | "This changes Production." |
137
- | Shows secrets | "This shows secret values in this chat." |
138
- | Needs someone else | "Someone else has to agree to this too." |
139
- | A change you can reverse | none |
161
+ | `DESTRUCTIVE` | "This can't be undone." |
162
+ | `PRODUCTION` | "This changes Production." |
163
+ | `SECRET` | "This shows secret values in this chat." |
164
+ | `GATED` | "Someone else has to agree to this too." |
165
+ | `CHANGE`, or none (`RISK_UNSPECIFIED`) | none |
140
166
 
141
- Only an approval you can reverse offers a wider scope; the grave ones never do.
167
+ **The wider scope** is AppAsk's one: the first of the request's `grants`, as
168
+ "Allow alis build commands for this session" (its `title`), and only when the
169
+ risk is `CHANGE` or none. A grave approval never offers one.
170
+
171
+ **The records** an approval leaves, in AppAsk's words: "Allowed: Run this
172
+ command" (or the act, once the agent says it), "Allowed for this session: alis
173
+ build commands", "Not now: Run this command"; for a plan, "Allowed: Run this
174
+ plan, asking before every change", "Allowed: Run this plan without asking",
175
+ "Not now: Run this plan". A choice leaves the person's own words.
176
+
177
+ **An operation's label**, with its version and, for a deploy, where it went:
178
+
179
+ | | Running | Done | Failed |
180
+ | --- | --- | --- | --- |
181
+ | Define | Defining 1.0.5 | Defined 1.0.5 | Couldn't define 1.0.5 |
182
+ | Build | Building 1.0.5 | Built 1.0.5 | Couldn't build 1.0.5 |
183
+ | Deploy | Deploying 1.0.5 to Development | Deployed 1.0.5 to Development | Couldn't deploy 1.0.5 |
184
+ | Not said | Running | Finished | Couldn't finish |
185
+
186
+ **A reference's kind**, from the last collection in its name (`…/products/…`,
187
+ `…/interviews/…`): names nest (`organisations/acme/products/ledger` is a
188
+ product), so read the segment before the last id, never the first. A
189
+ collection not listed has no detail but its `description`:
190
+
191
+ | The last collection in its name | The detail |
192
+ | --- | --- |
193
+ | `ideas` | Project · Alis Ideate |
194
+ | `interviews` | Interview · Alis Ideate |
195
+ | `artifacts` | Artifact · Alis Ideate |
196
+ | `collections` | Collection · Alis Ideate |
197
+ | `contributionSessions` | Contribution · Alis Ideate |
198
+ | `skills` | Skill · AlisX Skill Store |
199
+ | `products` | Product · Alis Build |
200
+ | `workstations` | Workstation · Alis Build |
201
+ | `tickets` | Conversation · Support |
202
+ | `sessions` | Chat |
203
+ | `accounts`, `organisations` | Account |
204
+
205
+ **The task card's state**, in words, from the turn:
206
+
207
+ | The agent says | The card reads |
208
+ | --- | --- |
209
+ | The message is `queued` | Queued |
210
+ | The session is RUNNING | Working, and the latest steps |
211
+ | The session is AWAITING_APPROVAL | Waiting for you |
212
+ | A stop was asked, and the turn hasn't ended | Stopping |
213
+ | The turn ended CANCELLED | Stopped |
214
+ | The turn ended FAILED | Failed, and `error_message` as its line |
215
+ | The turn ended COMPLETED | Finished, and "Worked for 42s · 6 steps" |
216
+
217
+ **Steps counted by kind**, past the three shown, in one line in this order:
218
+ "Read 9 files, edited 2 files, searched 3 times, opened 2 pages, ran 4
219
+ commands". A read is `READ_FILE`; an edit `WRITE_FILE` or `EDIT_FILE`; a search
220
+ `LIST_FILES` or `SEARCH_FILES`; a page `BROWSER`; everything else a command.
142
221
 
143
222
  ## Every host
144
223
 
@@ -147,7 +226,7 @@ These hold everywhere, and a profile never repeats them:
147
226
  1. **Two actions at most, the verb last**, in the order of [buttons.md](buttons.md).
148
227
  An ask's options and rows that open what they name are answers and ways in,
149
228
  not actions. AppAsk's one wider scope is the only third, and only on an ask
150
- that approves.
229
+ that approves: a grant on a command, Run without asking on a plan.
151
230
  2. **Nothing scrolls inside a card.** No tabs, no menus, no drill-in, no paging,
152
231
  no search inside a card. Long content goes to the expanded view.
153
232
  3. **No message box of our own.** The host's composer is the only one: no note