@alis-build/design-system 0.38.1 → 0.41.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.
@@ -0,0 +1,71 @@
1
+ # Terminal
2
+
3
+ **The CLI and its TUI are a surface like any screen: the same names, the same
4
+ voice, the same keys meaning the same acts.** What changes is what a terminal
5
+ can't draw: there are no caps, no chips and no reliable weight, so a few things
6
+ are written differently. This file says what carries over, what changes shape,
7
+ and how text is written.
8
+
9
+ ## What carries over
10
+
11
+ | Rule | In a terminal |
12
+ | --- | --- |
13
+ | [words.md](words.md) | As it is. Every name comes from `words.json`; Alis is named; the product speaks to "you" |
14
+ | [quick-start.md](quick-start.md) § Copy | As it is: sentence case, British spelling, plain and calm, no dashes, no emoji, no exclamation marks |
15
+ | [errors.md](errors.md) | As it is: what happened and what to do next, in a sentence a person wrote, never the machine's message alone |
16
+ | [shortcuts.md](shortcuts.md) | The principles: one list of keys, a key means one act everywhere, the keys that mean the same everywhere. How a key is written changes (below) |
17
+ | [chips-alerts.md](chips-alerts.md) | A state is said in words. One that must stand out is a coloured pill, the terminal's chip |
18
+ | Colour, type, spacing, surfaces | Don't apply. The terminal's own palette and one font. Colour carries roles only: the accent, an error, quiet text |
19
+
20
+ ## Words written for agents
21
+
22
+ Help text, `alis docs` and the readable text in JSON output (a `next` hint, an
23
+ `agent` instruction) are read by coding agents, and an agent repeats what it
24
+ reads. They use the names in `words.json`, in full sentences ([words.md](words.md)
25
+ § Name it as they know it). JSON field names, error codes and resource paths
26
+ (`ideas/*`) are code and stay as they are.
27
+
28
+ ## Command and flag names
29
+
30
+ A command or a flag is a label: it takes its name from `words.json`.
31
+
32
+ - **Names every CLI uses stay**: `login`, `logout`, `upgrade`, `version`,
33
+ `doctor`, `run`. People and agents already know them. What's on screen still
34
+ follows the glossary ("Sign in").
35
+ - **A name that a guard or a script matches never moves**: the safety flags
36
+ (`--confirm-production`, `--reveal`, `--approve`, `--yes`), the output flags
37
+ (`--json`, `--cwd`), hidden commands (the ones starting `_`, and those saved
38
+ in someone's config), and the `alis docs` topic names. A guard that stops
39
+ matching turns off without an error.
40
+ - **Any other name that clashes is renamed**, and the old one stays as a hidden
41
+ alias. Whatever matches command names (a plugin's guard, the instructions an
42
+ agent starts with) changes in the same release.
43
+ - **The command can be shorter than the name**: `alis org` manages build
44
+ environments and `alis environment` (`-e`) deployment environments. Their
45
+ help uses the full names.
46
+
47
+ ## Writing text
48
+
49
+ | Thing | How |
50
+ | --- | --- |
51
+ | Titles, actions, messages, states | Sentence case: "Deploy to production?", "Request pending" |
52
+ | Column headers | In capitals, as terminal tables are: `NAME STATUS UPDATED` |
53
+ | A state that must stand out | A coloured pill in sentence case, never capitals |
54
+ | A key combination | `Ctrl+V`, `Shift+Tab`: joined by `+`, no spaces, the letter in capitals after a modifier. A terminal has no caps to separate keys, so the plus does it |
55
+ | Named keys | Enter, Esc, Tab, Space as words; ↑ ↓ ← → as arrows |
56
+ | A single letter | As it is typed: `n` and `N` are different keys |
57
+ | Control | `Ctrl` on every platform, never ⌃: the terminal's key is Control, even on a Mac |
58
+ | A key hint | The key, then what it does: `Enter send · Ctrl+V paste image · Esc done`. No quotes around keys |
59
+ | Separators | `·` between items |
60
+ | Ellipses | `…`, never three dots |
61
+ | Finished | "Done", with the time when there is one ("Done in 2m"). Never "Done!" or "Complete" |
62
+ | ID | "ID" in text ("Product ID"); `id` only as code |
63
+ | A new error code | `UPPER_SNAKE`. Existing codes stay as they are: agents match them |
64
+
65
+ ## Before you hand it back
66
+
67
+ 1. Is every name one from `words.json`, and every state said in words?
68
+ 2. Is a key written as above, and does it do the same thing on every screen?
69
+ 3. Would an agent reading the help or a hint learn the right name?
70
+ 4. Did a renamed command keep its old name as a hidden alias, and did a guard's
71
+ or a script's name stay put?
package/rules/themes.md CHANGED
@@ -30,6 +30,13 @@ breaks the moment the theme changes.
30
30
  - A browser without `light-dark()` (before Chrome 123, Firefox 120, Safari 17.5)
31
31
  gets the light theme.
32
32
 
33
+ ## Client branding
34
+
35
+ A client-facing portal may override a bounded set of roles through a scoped,
36
+ validated profile. [branding.md](branding.md) defines account inheritance, portal
37
+ overrides, contrast checks and iframe/overlay boundaries. Light/dark remains a
38
+ separate choice; the defaults and protected semantic roles below still apply.
39
+
33
40
  ## Where the values come from
34
41
 
35
42
  | File | Holds | For |
package/rules/type.md CHANGED
@@ -42,7 +42,8 @@ Three more styles, each with one place:
42
42
  dialog or card.
43
43
  - **`text-eyebrow`**, 12/16 at 700, uppercase, 0.12em: a structural tag of four
44
44
  words at most over what follows. The lattice's label, and a group heading
45
- inside a card, a list, a menu or a panel. The only all-caps in the product.
45
+ inside a card, a list, a menu or a panel, except in a form: a form's groups
46
+ are `text-section-title`, its card included ([page.md](page.md) § Forms). The only all-caps in the product.
46
47
  Never the navigation pane's group headings, which set their own type in
47
48
  sentence case ([AppShell](../components/AppShell.md)).
48
49
  - **`text-metric-value`**, 40/48 at 700 with tabular figures: a dashboard's
@@ -68,7 +69,8 @@ What is this text doing?
68
69
  │ popover's own title → object-title
69
70
  │ a second name on the row, like the owner
70
71
  │ beside the project → supporting
71
- ├─ Heading a group of things below it → section-title; inside a card, eyebrow
72
+ ├─ Heading a group of things below it → section-title; inside a card, eyebrow;
73
+ │ in a form, section-title, card or not
72
74
  ├─ Language someone reads to understand
73
75
  │ ├─ the content of its region: a dialog's
74
76
  │ │ message, an explanation that stands alone → body
@@ -111,7 +113,7 @@ subtitle is never body.
111
113
  | A card's only title | object-title, whatever the card's size |
112
114
  | A caption naming the one block below it ("What we learned") | a key: meta in `on-surface-variant`, and the block keeps the role it would have alone. Over a list, table or set of stats it is a group heading instead |
113
115
  | A data table | headers label, on each header cell; the cell naming the row object-title; other cells supporting in ink, a second line in `on-surface-variant`; a value cell (a date, a count) meta; a sentence standing in for rows supporting. A wrapper that gives a third-party grid its type takes the cell's role |
114
- | A group heading | section-title; inside a card, eyebrow. Sentence case in the copy. Words someone typed are never eyebrow: section-title, or object-title inside a card |
116
+ | A group heading | section-title; inside a card, eyebrow, except a form's groups, which are section-title in a card too. Sentence case in the copy. Words someone typed are never eyebrow: section-title, or object-title inside a card |
115
117
  | A heading that is also a link | label |
116
118
  | A list item used as a control, its text the item itself | label |
117
119
  | An expandable section's title holding a name and a second line | object-title, then supporting in `on-surface-variant` |
package/tokens.css CHANGED
@@ -141,6 +141,7 @@
141
141
  --space-32: 32px;
142
142
  --space-48: 48px;
143
143
  --card-padding-wide: 28px;
144
+ --attachment-preview-size: 96px;
144
145
  --chat-row: 32px;
145
146
  --touch-target: 32px;
146
147
  --touch-target-coarse: 48px;
package/tokens.json CHANGED
@@ -1411,6 +1411,11 @@
1411
1411
  "value": "28px",
1412
1412
  "usage": "Card padding from 600px wide: the scale's one exception. Set once on the card, never at a site."
1413
1413
  },
1414
+ {
1415
+ "name": "attachment-preview-size",
1416
+ "value": "96px",
1417
+ "usage": "Square preview in a composer's attachment tray: leaves the image visible beside a 48px touch remove target. Sent images use AppTurn's larger preview."
1418
+ },
1414
1419
  {
1415
1420
  "name": "chat-row",
1416
1421
  "value": "32px",
package/words.json CHANGED
@@ -21,7 +21,7 @@
21
21
  "product": "all",
22
22
  "means": "The organisation you work in: its projects, members and credits. You switch accounts from the account menu.",
23
23
  "retired": [],
24
- "avoid": ["workspace", "tenant", "org"],
24
+ "avoid": ["workspace", "tenant", "org", "organisation (in Build, where products live is the build environment)"],
25
25
  "code": "accounts/*"
26
26
  },
27
27
  {
@@ -70,6 +70,14 @@
70
70
  "retired": ["Read only", "View only"],
71
71
  "avoid": ["read-only", "view-only", "guest"]
72
72
  },
73
+ {
74
+ "name": "Admin",
75
+ "plural": "Admins",
76
+ "product": "all",
77
+ "means": "A role on an account: manages its members and its billing, and decides who joins. Capitalised wherever it names the role: \"Ask an Admin at Acme\". Owner, Editor and Viewer are roles on the things inside it.",
78
+ "retired": [],
79
+ "avoid": ["administrator", "account owner", "admin (lower case, for the role)"]
80
+ },
73
81
  {
74
82
  "name": "credits",
75
83
  "product": "all",
@@ -77,22 +85,43 @@
77
85
  "retired": [],
78
86
  "avoid": []
79
87
  },
88
+ {
89
+ "name": "free credits",
90
+ "product": "all",
91
+ "means": "The credits a new account starts with, at no charge: \"What happens after the free credits?\"",
92
+ "retired": [],
93
+ "avoid": ["trial credits", "starter credits", "bonus credits"]
94
+ },
95
+ {
96
+ "name": "spend limit",
97
+ "product": "all",
98
+ "means": "The most an account can be charged once its free credits are used. Chosen in sign-up's Spending step, and changed later by an Admin.",
99
+ "retired": [],
100
+ "avoid": ["credit limit (the ledger's field, not a word on screen)", "budget", "cap"]
101
+ },
102
+ {
103
+ "name": "Spending",
104
+ "product": "all",
105
+ "means": "The sign-up step where an account chooses what happens after its free credits: stop there, or keep going up to a spend limit.",
106
+ "retired": [],
107
+ "avoid": ["Credits (as the step's name)"]
108
+ },
80
109
  {
81
110
  "name": "chat",
82
111
  "plural": "chats",
83
112
  "product": "all",
84
113
  "means": "A conversation with Alis. \"Chats\" in the navigation, \"New chat\" to start one.",
85
114
  "retired": ["agent chat", "agent chats"],
86
- "avoid": ["thread", "session"],
115
+ "avoid": ["thread", "session (in Build a session is a coding-agent session)"],
87
116
  "code": "threads/*"
88
117
  },
89
118
  {
90
119
  "name": "conversation",
91
120
  "plural": "conversations",
92
121
  "product": "all",
93
- "means": "A conversation between people, as in Support.",
94
- "retired": [],
95
- "avoid": []
122
+ "means": "A conversation between people: in Support, and with a build specialist. Feedback and requests are kinds of conversation, not other names for one.",
123
+ "retired": ["support ticket", "support tickets"],
124
+ "avoid": ["ticket (on screen)"]
96
125
  },
97
126
  {
98
127
  "name": "file",
@@ -295,6 +324,164 @@
295
324
  "means": "What you copy into your agent to hand it a task: one sentence asking for it, then the context it needs. \"Copy prompt\", and \"Copy as prompt\" on a thing you can carry on with.",
296
325
  "retired": [],
297
326
  "avoid": ["brief (for a prompt: a project brief is an artifact, and the introduction was the participant brief)", "instructions"]
327
+ },
328
+ {
329
+ "name": "build environment",
330
+ "plural": "build environments",
331
+ "product": "build",
332
+ "means": "Where a team's products live, paid for by an account. Also the whole space, products included (\"your build environment\"). The command is `alis org`.",
333
+ "retired": ["landing zone", "landing zones"],
334
+ "avoid": ["organisation (for it: in plain words an organisation is the company, which is its account)", "org (on screen)"],
335
+ "code": "organisations/*"
336
+ },
337
+ {
338
+ "name": "product",
339
+ "plural": "products",
340
+ "product": "build",
341
+ "means": "A self-contained system in a build environment, with its own Google Cloud project, repositories and deployment environments.",
342
+ "retired": [],
343
+ "avoid": ["project (for a product: a project is Alis Ideate's)"],
344
+ "code": "organisations/*/products/*"
345
+ },
346
+ {
347
+ "name": "service",
348
+ "plural": "services",
349
+ "product": "build",
350
+ "means": "One deployable part of a product: you define it, build it and deploy it. Named by its package ID.",
351
+ "retired": ["neuron", "neurons"],
352
+ "avoid": ["package (for the service itself)"],
353
+ "code": "organisations/*/products/*/neurons/*"
354
+ },
355
+ {
356
+ "name": "package ID",
357
+ "plural": "package IDs",
358
+ "product": "build",
359
+ "means": "A service's identifier, as typed in a command: `alis.os.console.v2`.",
360
+ "retired": [],
361
+ "avoid": ["package id (ID in capitals, in text)"]
362
+ },
363
+ {
364
+ "name": "deployment environment",
365
+ "plural": "deployment environments",
366
+ "product": "build",
367
+ "means": "Where a product's services are deployed, such as development or production. The command is `alis environment`, the flag `-e`.",
368
+ "retired": [],
369
+ "avoid": ["environment (alone, where a build environment could be meant)", "deployment target", "env (on screen)"]
370
+ },
371
+ {
372
+ "name": "Google Cloud project",
373
+ "plural": "Google Cloud projects",
374
+ "product": "build",
375
+ "means": "The cloud project behind a product or a deployment environment. Always named in full: a project is Alis Ideate's.",
376
+ "retired": [],
377
+ "avoid": ["project (alone, for this)", "GCP project"],
378
+ "code": "projectId"
379
+ },
380
+ {
381
+ "name": "code block",
382
+ "plural": "code blocks",
383
+ "product": "build",
384
+ "means": "A versioned starting point made from a service, which others install into their own product and keep up to date.",
385
+ "retired": [],
386
+ "avoid": ["codeblock (`alis docs codeblocks` is a topic name and stays)", "block (alone)"],
387
+ "code": "blocks/*"
388
+ },
389
+ {
390
+ "name": "Define, Build, Deploy",
391
+ "product": "build",
392
+ "means": "The three steps every service goes through, by name and in that order. DBD is their short name, which builders use too: spell it out where someone meets it first.",
393
+ "retired": [],
394
+ "avoid": []
395
+ },
396
+ {
397
+ "name": "release",
398
+ "product": "build",
399
+ "means": "Offering a service to other build environments, so their products can install it. \"Release\" is the action.",
400
+ "retired": [],
401
+ "avoid": ["release (for a deploy)"]
402
+ },
403
+ {
404
+ "name": "operation",
405
+ "plural": "operations",
406
+ "product": "build",
407
+ "means": "A Define, Build or Deploy running on the platform. You wait on it, or you are told when it is done.",
408
+ "retired": [],
409
+ "avoid": ["op (on screen)", "job"],
410
+ "code": "operations/*"
411
+ },
412
+ {
413
+ "name": "session",
414
+ "plural": "sessions",
415
+ "product": "build",
416
+ "means": "A coding-agent session (Claude Code, Codex and the others) that the CLI saves, searches or hands off to a workstation. Only that, in Build: an Ask exchange is a conversation, and herdr's sessions are herdr sessions.",
417
+ "retired": [],
418
+ "avoid": ["session (for anything else in Build)"],
419
+ "code": "contexts/*"
420
+ },
421
+ {
422
+ "name": "coding agent",
423
+ "plural": "coding agents",
424
+ "product": "build",
425
+ "means": "The kind of agent that writes and runs code: Claude Code, Codex, Cursor and the others. Named by its own name where it is known; \"your agent\" when it is the person's own.",
426
+ "retired": [],
427
+ "avoid": ["harness", "coding harness"]
428
+ },
429
+ {
430
+ "name": "skill",
431
+ "plural": "skills",
432
+ "product": "build",
433
+ "means": "Instructions a coding agent loads to do one kind of task well.",
434
+ "retired": [],
435
+ "avoid": [],
436
+ "code": "skills/*"
437
+ },
438
+ {
439
+ "name": "workstation",
440
+ "plural": "workstations",
441
+ "product": "build",
442
+ "means": "Your cloud machine for building, tied to one build environment.",
443
+ "retired": [],
444
+ "avoid": ["shell", "VM", "machine (alone)", "Build Workstation (the retired host)"],
445
+ "code": "organisations/*/workstations/*"
446
+ },
447
+ {
448
+ "name": "handoff",
449
+ "plural": "handoffs",
450
+ "product": "build",
451
+ "means": "Moving a coding-agent session to a workstation, so it keeps running when you close your laptop. Hand over, two words, is passing a conversation to someone.",
452
+ "retired": [],
453
+ "avoid": ["continuation"]
454
+ },
455
+ {
456
+ "name": "build specialist",
457
+ "plural": "build specialists",
458
+ "product": "build",
459
+ "means": "Someone on the Alis Build team you can write to from the CLI or the console. Only them: a skill's or a code block's maintainer is its Owner.",
460
+ "retired": [],
461
+ "avoid": ["support staff"]
462
+ },
463
+ {
464
+ "name": "teammate",
465
+ "plural": "teammates",
466
+ "product": "build",
467
+ "means": "Someone else in your build environment.",
468
+ "retired": ["peer specialist", "peer specialists"],
469
+ "avoid": []
470
+ },
471
+ {
472
+ "name": "automation tier",
473
+ "plural": "automation tiers",
474
+ "product": "build",
475
+ "means": "How much agents and scripts may do through the CLI without asking you: Manual, Balanced or Autonomous. Deploying to production always asks.",
476
+ "retired": [],
477
+ "avoid": []
478
+ },
479
+ {
480
+ "name": "Safe mode",
481
+ "product": "build",
482
+ "means": "Showing only the build environments you choose, so the others can't be acted on by mistake.",
483
+ "retired": [],
484
+ "avoid": []
298
485
  }
299
486
  ],
300
487
  "verbs": [
@@ -305,6 +492,7 @@
305
492
  { "name": "Remove", "means": "It leaves this place and still exists: a person from Sharing, a project from a collection, a file from a message." },
306
493
  { "name": "Archive", "means": "Only where there is a place to find archived things and bring them back. Otherwise it is Delete." },
307
494
  { "name": "Share", "means": "Opens Sharing." },
308
- { "name": "Request access", "means": "Asks whoever can grant it for a role here, with an optional note (rules/access.md). Afterwards the control reads \"Request sent\" until they decide; a refusal reads \"Declined by …\" with Request again." }
495
+ { "name": "Request access", "means": "Asks whoever can grant it for a role here, with an optional note (rules/access.md). Afterwards the control reads \"Request sent\" until they decide; a refusal reads \"Declined by …\" with Request again." },
496
+ { "name": "Request to join", "means": "Asks an account's Admins to let you in, from the account rows sign-up shows for your email's domain. Afterwards it reads \"Request sent\" until an Admin decides, as Request access does." }
309
497
  ]
310
498
  }