@alis-build/design-system 0.80.0 → 0.81.0
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/alisx.css +1 -1
- package/hosts/teams.json +1 -0
- package/hosts/teams.md +7 -3
- package/package.json +1 -1
- package/rules/hosts.md +22 -8
package/alisx.css
CHANGED
|
@@ -600,7 +600,7 @@ button, input, textarea, select { font: inherit; }
|
|
|
600
600
|
.app-chip--outlined.is-selected{background:var(--secondary-container);border-color:transparent;color:var(--on-secondary-container);font-weight:700}
|
|
601
601
|
/* The coin: credits that were on us, a face inside its rim with its own light behind (rules/colour.md § Gold). Open: credits that could be earned. */
|
|
602
602
|
.app-coin{--coin:12px;position:relative;display:inline-block;flex:none;width:var(--coin);height:var(--coin);border-radius:var(--radius-pill)}
|
|
603
|
-
.app-coin::before{content:"";position:absolute;inset:calc(var(--coin) * -.75);border-radius:inherit;background:radial-gradient(closest-side,color-mix(in srgb,var(--reward)
|
|
603
|
+
.app-coin::before{content:"";position:absolute;inset:calc(var(--coin) * -.75);border-radius:inherit;background:radial-gradient(closest-side,color-mix(in srgb,var(--reward) 50%,transparent),transparent);pointer-events:none}
|
|
604
604
|
.app-coin::after{content:"";position:absolute;inset:0;border-radius:inherit;background:var(--reward);box-shadow:inset 0 0 0 max(1px,calc(var(--coin) * .11)) var(--reward-edge)}
|
|
605
605
|
.app-coin--16{--coin:16px}
|
|
606
606
|
.app-coin--open::before{display:none}
|
package/hosts/teams.json
CHANGED
package/hosts/teams.md
CHANGED
|
@@ -86,8 +86,9 @@ above a streamed reply): it carries the latest step's words while the turn
|
|
|
86
86
|
runs.
|
|
87
87
|
|
|
88
88
|
**The task card updates in place.** Alis updates the card it sent rather than
|
|
89
|
-
sending a new one, and a refresh keeps it current for each person.
|
|
90
|
-
|
|
89
|
+
sending a new one, and a refresh keeps it current for each person. The step
|
|
90
|
+
running shows Teams' own progress ring, as does the state line while it works,
|
|
91
|
+
and a step done Teams' checkmark in `on-surface-variant`; there's no progress bar unless the work is
|
|
91
92
|
counted ([AppProgress](../components/AppProgress.md)). Long work is a task card,
|
|
92
93
|
never a reply left streaming: a stream closes at 10 minutes.
|
|
93
94
|
|
|
@@ -97,6 +98,8 @@ that doesn't (it waits on an ask, fails, or outlasts the stream) gets the task
|
|
|
97
98
|
card as soon as the stream closes, then the things and the ask after it. Steps
|
|
98
99
|
fold behind a Show steps disclosure (`Action.ToggleVisibility`): the latest
|
|
99
100
|
twelve, and the whole list on the task's page. Never paged inside the card.
|
|
101
|
+
The disclosure is a row, not a button: the earlier steps counted by kind, and
|
|
102
|
+
Show at its trailing edge.
|
|
100
103
|
|
|
101
104
|
**The expanded view, for now, is the Tasks tab** (opened in Stageview). A
|
|
102
105
|
dialog holding a page is the long-term surface; until one is built, the tab is
|
|
@@ -127,7 +130,8 @@ icon use it, through this map (names to be checked by the card probe):
|
|
|
127
130
|
| `error` failed | `ErrorCircle` |
|
|
128
131
|
| `warning` | `Warning` |
|
|
129
132
|
| `info` | `Info` |
|
|
130
|
-
| `
|
|
133
|
+
| `check` a step done | `Checkmark` |
|
|
134
|
+
| `block` not now, stopped | `Prohibited` |
|
|
131
135
|
| `description` a document | `Document` |
|
|
132
136
|
| `article` | `DocumentText` |
|
|
133
137
|
| `draft` | `DocumentEdit` |
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@alis-build/design-system",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.81.0",
|
|
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",
|
package/rules/hosts.md
CHANGED
|
@@ -141,7 +141,7 @@ for one host. Five things, each from a component the system already has.
|
|
|
141
141
|
| **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 |
|
|
142
142
|
| **Alis needs you** | [AppAsk](../components/AppAsk.md), any kind | A card. The question is its title, under a first line that says it waits and until when ("Waiting for you · until 15:30"); 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, except where the host's own agent answers, whose profile says what counts. It then reads back as AppAsk's record ("Allowed: Send 6 invites", "Not now: …") and loses its actions. Connect is AppAsk's Connect |
|
|
143
143
|
| **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. Alone on a card it carries its state's actions (below); a row in a list opens it and carries no button |
|
|
144
|
-
| **Work** | AppTurn's steps, with the composer's Stop | The task card:
|
|
144
|
+
| **Work** | AppTurn's steps, with the composer's Stop | The task card: a first line with its state in words (§ From the agent's message) and the state's icon, then the task's name as its title, then the latest three steps, the one running marked and the rest in `on-surface-variant`. Once finished the first line is AppTurn's ("Finished · worked for 42s · 6 steps") and the steps fold away |
|
|
145
145
|
| **Too big for a card** | [AppFilePane](../components/AppFilePane.md), a page | The expanded view: an embedded 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 |
|
|
146
146
|
|
|
147
147
|
**The task card carries the composer's controls**, because in a host the
|
|
@@ -252,12 +252,12 @@ A piece the agent gains is added here before any host draws it.
|
|
|
252
252
|
| **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. |
|
|
253
253
|
| **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 |
|
|
254
254
|
| **An approval**, a plan | Alis needs you: Approve | Title "Run this plan?". Body: the plan's first six lines that aren't blank; 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 |
|
|
255
|
-
| **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
|
|
256
|
-
| **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 |
|
|
255
|
+
| **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, as rows of things are: past five, four and then a row that opens all of them in the expanded view ("See all 7 regions"); a card never drops an option without saying so. 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 |
|
|
256
|
+
| **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 that verb doesn't fit at 320 it is Connect, since the title names the account. Where the host signs people in itself, the host's sign-in, and nothing of ours |
|
|
257
257
|
| **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 |
|
|
258
258
|
| **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 serves (it has a `uri`) and found neither a write time nor a size for. One it names but doesn't serve is never taken for gone |
|
|
259
259
|
| **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 |
|
|
260
|
-
| **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
|
|
260
|
+
| **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` in words ("2 added, 3 changed", a zero left out, never "+2 ~3 -0"), 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 |
|
|
261
261
|
| **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 |
|
|
262
262
|
| **The turn's state** | The task card | Below |
|
|
263
263
|
|
|
@@ -292,7 +292,12 @@ alone is safe to press.
|
|
|
292
292
|
|
|
293
293
|
**The wider scope** is AppAsk's one: the first of the request's `grants`, as
|
|
294
294
|
"Allow alis build commands for this session" (its `title`), and only when the
|
|
295
|
-
risk is `CHANGE` or none. A grave approval never offers one.
|
|
295
|
+
risk is `CHANGE` or none. A grave approval never offers one. **Where three
|
|
296
|
+
actions don't fit at 320**, the wider scope is a row of its own above Not now
|
|
297
|
+
and the verb, pressed like an option: its label ("Allow for this session"),
|
|
298
|
+
and under it a line on what it reaches ("Alis runs alis build commands without
|
|
299
|
+
asking until the session ends"). A plan's Run without asking is the same row
|
|
300
|
+
("Alis still stops for anything grave"). It stays the only third choice.
|
|
296
301
|
|
|
297
302
|
**The records** an approval leaves, in AppAsk's words: "Allowed: Run this
|
|
298
303
|
command" (or the act, once the agent says it), "Allowed for this session: alis
|
|
@@ -351,9 +356,18 @@ glyph. The glyph is drawn only where the host draws Material Symbols (rule 8):
|
|
|
351
356
|
| The session is RUNNING | Working, and the latest steps |
|
|
352
357
|
| The session is AWAITING_APPROVAL | Waiting for you |
|
|
353
358
|
| A stop was asked, and the turn hasn't ended | Stopping |
|
|
354
|
-
| The turn ended CANCELLED | Stopped |
|
|
355
|
-
| The turn ended FAILED | Failed,
|
|
356
|
-
| The turn ended COMPLETED | Finished, and "
|
|
359
|
+
| The turn ended CANCELLED | Stopped, who and when ("Stopped · by you at 15:21") |
|
|
360
|
+
| The turn ended FAILED | Failed, in `error`; `error_message` in ink as its line, then where it stopped |
|
|
361
|
+
| The turn ended COMPLETED | Finished, and "worked for 42s · 6 steps" |
|
|
362
|
+
|
|
363
|
+
Where the host's adapter holds the task and the agent can't say, three more,
|
|
364
|
+
each with the one move that helps:
|
|
365
|
+
|
|
366
|
+
| The adapter knows | The card reads | Its action |
|
|
367
|
+
| --- | --- | --- |
|
|
368
|
+
| Alis isn't turned on for the person | Can't start yet, `warning`, and who acts in a sentence ("Ask your administrator to turn it on.") | Help and support; never Try again, which fails the same way |
|
|
369
|
+
| The AlisX account has to be connected again | Waiting for you, and "Connect your AlisX account again to carry on." | Connect your AlisX account |
|
|
370
|
+
| It isn't known whether the request reached Alis | Not sure it reached Alis, `warning`, and "Open the task to check before you send it again, so nothing runs twice." | Open task alone; never Try again, which could run an action twice |
|
|
357
371
|
|
|
358
372
|
**Steps counted by kind**, past the three shown, in one line in this order:
|
|
359
373
|
"Read 9 files, edited 2 files, searched 3 times, opened 2 pages, ran 4
|