@alis-build/design-system 0.37.0 → 0.38.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/alisx.css +24 -0
- package/classes.json +15 -0
- package/components/AppButton.md +3 -3
- package/components/AppHandOff.md +183 -0
- package/components/README.md +1 -0
- package/package.json +1 -1
- package/rules/buttons.md +6 -4
- package/rules/icons.md +5 -3
- package/rules/known-gaps.md +2 -2
- package/rules/quick-start.md +1 -0
- package/words.json +15 -0
package/alisx.css
CHANGED
|
@@ -410,6 +410,8 @@ button, input, textarea, select { font: inherit; }
|
|
|
410
410
|
/* ── Button · text (default) or filled (one per surface) ── */
|
|
411
411
|
.app-btn{display:inline-flex;align-items:center;justify-content:center;gap:var(--space-8);min-height:var(--control-height);padding:0 var(--space-24);border:0;border-radius:var(--radius-pill);background:transparent;color:var(--on-surface);font-family:var(--font-sans);font-size:14px;line-height:20px;font-weight:600;letter-spacing:0;text-decoration:none;white-space:nowrap}
|
|
412
412
|
.app-btn .app-icon{font-size:16px;margin-left:calc(var(--space-8) * -1)}
|
|
413
|
+
/* A trailing glyph (open_in_new, a menu's chevron) pulls into the end padding instead */
|
|
414
|
+
.app-btn .app-icon--trailing{margin-left:0;margin-right:calc(var(--space-8) * -1)}
|
|
413
415
|
.app-btn--filled{padding:0 var(--space-24);background:var(--primary);color:var(--on-primary);font-weight:700;transition:border-radius var(--dur-spatial) var(--motion-spatial),transform var(--dur-spatial) var(--motion-spatial),background-color var(--dur-effects) var(--motion-effects)}
|
|
414
416
|
.app-btn--outlined{border:1px solid var(--outline-variant);background:var(--surface)}
|
|
415
417
|
.app-btn--error{color:var(--error)}
|
|
@@ -889,6 +891,28 @@ span.app-account__avatar{display:flex;align-items:center;justify-content:center;
|
|
|
889
891
|
.app-code--command .app-icon-btn{color:var(--on-machine-surface)}
|
|
890
892
|
@media print{.app-code{box-shadow:none}.app-code.is-folded .app-code__body{max-height:none;-webkit-mask-image:none;mask-image:none}.app-code .app-icon-btn,.app-code__foot{display:none}}
|
|
891
893
|
|
|
894
|
+
/* ── Hand-off · a task done in the person's own agent, and the way back ──
|
|
895
|
+
The ask is a command's machine ground and signal caret; it is words, so it wraps.
|
|
896
|
+
The context folds under one line and scrolls past 12 lines when opened. Back and a
|
|
897
|
+
step's buttons are pulled to the text edge, as the detail title bar's are. */
|
|
898
|
+
.app-handoff{display:flex;flex-direction:column;gap:var(--space-16);min-width:0}
|
|
899
|
+
.app-handoff__choices{display:flex;flex-direction:column;min-width:0}
|
|
900
|
+
.app-handoff__back{margin-inline-start:calc(var(--space-24) * -1)}
|
|
901
|
+
.app-handoff__label,.app-handoff__body>p,.app-handoff>p{margin:0}
|
|
902
|
+
.app-handoff__status{position:absolute;width:1px;height:1px;margin:-1px;padding:0;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap;border:0}
|
|
903
|
+
.app-handoff__head{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:var(--space-8)}
|
|
904
|
+
.app-handoff__title{margin:0}
|
|
905
|
+
.app-handoff__steps{display:flex;flex-direction:column;gap:var(--space-24);margin:0;padding:0;list-style:none}
|
|
906
|
+
.app-handoff__step{display:flex;align-items:flex-start;gap:var(--space-12)}
|
|
907
|
+
.app-handoff__step>.app-icon{flex:none;color:var(--on-surface-variant)}
|
|
908
|
+
.app-handoff__body{display:flex;flex-direction:column;align-items:flex-start;gap:var(--space-8);flex:1;min-width:0}
|
|
909
|
+
.app-handoff__body>.app-btn-row{align-self:stretch;margin-inline-start:calc(var(--space-24) * -1)}
|
|
910
|
+
.app-handoff__ask{align-self:stretch;margin:0;padding:var(--space-12) var(--space-16);border-radius:var(--radius-md);font-family:var(--font-mono);font-size:14px;line-height:20px;white-space:pre-wrap;overflow-wrap:anywhere}
|
|
911
|
+
.app-handoff__caret{color:var(--signal);-webkit-user-select:none;user-select:none}
|
|
912
|
+
.app-handoff__context{align-self:stretch;max-height:calc(12 * 20px + var(--space-24));overflow-y:auto;padding:var(--space-12) var(--space-16);border-radius:var(--radius-md);background:var(--code-surface);box-shadow:inset 0 0 0 1px var(--outline-variant);color:var(--on-surface);font-family:var(--font-mono);font-size:14px;line-height:20px;white-space:pre-wrap;overflow-wrap:anywhere}
|
|
913
|
+
.app-handoff__group{margin:var(--space-24) 0 var(--space-4);color:var(--on-surface-variant)}
|
|
914
|
+
.app-handoff__group:first-child{margin-top:0}
|
|
915
|
+
|
|
892
916
|
/* ── Composer · where you write to Alis, an agent or a person: tray, editor, row; one line below ── */
|
|
893
917
|
.app-composer{position:relative;display:flex;flex-direction:column;gap:var(--space-8);width:100%;max-width:var(--measure-prose);margin-inline:auto}
|
|
894
918
|
.app-composer__box{position:relative;z-index:1;display:flex;flex-direction:column;padding:var(--space-8);border-radius:var(--radius-xl);background:var(--surface-container-high);box-shadow:var(--elevation-2);transition:background-color var(--dur-effects) var(--motion-effects),box-shadow var(--dur-effects) var(--motion-effects)}
|
package/classes.json
CHANGED
|
@@ -181,10 +181,25 @@
|
|
|
181
181
|
"app-filterrow__search",
|
|
182
182
|
"app-filterrow__summary",
|
|
183
183
|
"app-form",
|
|
184
|
+
"app-handoff",
|
|
185
|
+
"app-handoff__ask",
|
|
186
|
+
"app-handoff__back",
|
|
187
|
+
"app-handoff__body",
|
|
188
|
+
"app-handoff__caret",
|
|
189
|
+
"app-handoff__choices",
|
|
190
|
+
"app-handoff__context",
|
|
191
|
+
"app-handoff__group",
|
|
192
|
+
"app-handoff__head",
|
|
193
|
+
"app-handoff__label",
|
|
194
|
+
"app-handoff__status",
|
|
195
|
+
"app-handoff__step",
|
|
196
|
+
"app-handoff__steps",
|
|
197
|
+
"app-handoff__title",
|
|
184
198
|
"app-icon",
|
|
185
199
|
"app-icon--24",
|
|
186
200
|
"app-icon--filled",
|
|
187
201
|
"app-icon--mark",
|
|
202
|
+
"app-icon--trailing",
|
|
188
203
|
"app-icon-btn",
|
|
189
204
|
"app-icon-btn--small",
|
|
190
205
|
"app-key",
|
package/components/AppButton.md
CHANGED
|
@@ -11,7 +11,7 @@ Emphasis is allocated, not chosen ([buttons.md](../rules/buttons.md)).
|
|
|
11
11
|
- Cyan text is a link, never a button.
|
|
12
12
|
- **Error** (`app-btn--error`) for destructive actions, at the same level. **Quiet** (`app-btn--quiet`, `on-surface-variant`) for a quiet action beside content.
|
|
13
13
|
- No tonal or elevated buttons. A filled button scales to 97% and rounds to 12px when pressed (the CSS does it).
|
|
14
|
-
- **A word or a glyph, never both, outside the lexicon** ([buttons.md](../rules/buttons.md) § The form): `add` (New, Add), `upload`, `download`, `content_copy` (Copy) and `edit` lead their verb wherever it appears; `edit_square` leads a new conversation; a trailing chevron opens a menu and a trailing `open_in_new` leaves the product; a third party's mark leads a hand-off to them. No glyph on a filled button or a dialog's affirmative.
|
|
14
|
+
- **A word or a glyph, never both, outside the lexicon** ([buttons.md](../rules/buttons.md) § The form): `add` (New, Add), `upload`, `download`, `content_copy` (Copy) and `edit` lead their verb wherever it appears; `edit_square` leads a new conversation; a trailing chevron opens a menu and a trailing `open_in_new` leaves the product, each with `app-icon--trailing` so it pulls into the end padding as a leading glyph pulls into the start; a third party's mark leads a hand-off to them. No glyph on a filled button or a dialog's affirmative.
|
|
15
15
|
- **A shortcut** never goes in the label. A button with one takes an [AppTooltip](AppTooltip.md) that says the label and its keys, and `aria-keyshortcuts` ([shortcuts.md](../rules/shortcuts.md)); a button without one has no tooltip.
|
|
16
16
|
- The visible box is `control-height` (36px, 48 on touch), padded 24, and the target is `touch-target` ([buttons.md](../rules/buttons.md)). Text and outlined buttons are 600, the filled button 700. `app-btn--small` (32px, padded 12) belongs only in a table row. Inside a toggle group or table row, add `app-target--none`.
|
|
17
17
|
- **Loading** shows the work on the control the user pressed: a 16px spinner replaces the icon and the label stays (or becomes the present participle, "Deploying"). The button is busy, not disabled: full colour, presses ignored until it settles.
|
|
@@ -30,9 +30,9 @@ Emphasis is allocated, not chosen ([buttons.md](../rules/buttons.md)).
|
|
|
30
30
|
<span class="app-icon" aria-hidden="true">download</span>Download
|
|
31
31
|
</button>
|
|
32
32
|
|
|
33
|
-
<!-- Leaves the product: open_in_new trails, and the name says so -->
|
|
33
|
+
<!-- Leaves the product: open_in_new trails (app-icon--trailing), and the name says so -->
|
|
34
34
|
<a class="app-btn app-state app-target" href="…" target="_blank" rel="noopener noreferrer" aria-label="Logs, opens in a new tab">
|
|
35
|
-
Logs<span class="app-icon" aria-hidden="true">open_in_new</span>
|
|
35
|
+
Logs<span class="app-icon app-icon--trailing" aria-hidden="true">open_in_new</span>
|
|
36
36
|
</a>
|
|
37
37
|
|
|
38
38
|
<!-- Outlined: the lead of a title bar, pane or empty state, when it starts something.
|
|
@@ -0,0 +1,183 @@
|
|
|
1
|
+
# AppHandOff
|
|
2
|
+
|
|
3
|
+
A task the person can do in **their own agent** (Claude, ChatGPT, Copilot, Codex, Gemini and the rest) or with Alis, and the way the result comes back. AlisX works with the agent you already have; this is where a screen shows it.
|
|
4
|
+
|
|
5
|
+
## Use / don't use
|
|
6
|
+
|
|
7
|
+
- **Where an agent can do the task.** A hand-off that **makes** something here (an interview, an artifact, a machine's setup) needs a way back: the agent saves to the project, or the person pastes the result into a named place. A hand-off that **carries on** something you already have (an artifact) may end in the agent: "Continue it with Claude" has two steps and no way back.
|
|
8
|
+
- **One per screen.** Repeated items (a list's rows, a grid of cards) never carry one each; theirs are the ⋯ menu rows.
|
|
9
|
+
- **List or button.** A flow that asks how to start (write it yourself, use what you have, or plan it with an agent) takes **the list** as its agent-led option, beside its own controls. That option is named **"[Verb] it with an agent"** ("Plan it with an agent"): it names the way of starting, and Alis is the first agent it offers. Never "with AI". A surface that already has a form and an affirmative takes **the button** in its action row.
|
|
10
|
+
- **The screen gives it three things**: the task's verb (below), the prompt and the way back. It never draws its own.
|
|
11
|
+
- **Doing it yourself is not part of it.** Writing a purpose by hand, or pasting your own questions, stay the flow's own controls beside the hand-off; they are never rows in its list.
|
|
12
|
+
|
|
13
|
+
## The words
|
|
14
|
+
|
|
15
|
+
The person's tool is **your agent** ([words.md](../rules/words.md)), named wherever it is known. **Every label is *[verb] it with [who]***, Alis's too: "Plan it with Alis", "Plan it with Claude", "Plan it with your agent". What they copy is the **prompt**. A label names the task and the doer, never the mechanism: CLI, MCP, copy and paste live in the steps.
|
|
16
|
+
|
|
17
|
+
| Task | Verb | The way back |
|
|
18
|
+
|---|---|---|
|
|
19
|
+
| Plan an interview | Plan | The questions, pasted back; or the draft, saved by the agent |
|
|
20
|
+
| Make an artifact | Draft | The text, pasted back; or the artifact, saved by the agent |
|
|
21
|
+
| Set up a machine | Set up | The agent runs the Alis CLI; the machine appears |
|
|
22
|
+
| Fix a failed setup | Fix | The agent runs the Alis CLI; the setup runs again |
|
|
23
|
+
| Carry on an artifact | Continue | None: it ends in the chat or your agent |
|
|
24
|
+
|
|
25
|
+
**What comes back** is said once per group in the list (its heading) and in the steps' first line. A list groups its agents only when they bring the result back in two ways: "Saves the {result} to this project" (Alis, and agents that run commands) and "You paste the {result} back here" (chats). When every agent brings it back the same way (Set up, Fix, Continue), the list has one group and no heading. **What each agent needs** is its row's second line and the steps' first line: "Needs a Claude account", "Needs the Alis CLI".
|
|
26
|
+
|
|
27
|
+
## Four placements
|
|
28
|
+
|
|
29
|
+
1. **The list**, at the start of a create flow that offers AI-led ways in. One [AppListRow](AppListRow.md) list per group, each under a heading saying what comes back. **Alis comes first**, then the agents the task works with, by name, then **"[Verb] it with another agent"** last. Alis's row starts a normal Alis chat, where chats open in the product ("Opens a chat · Nothing to set up"); every other row opens the steps and ends in `chevron_right`.
|
|
30
|
+
2. **In the action row**, a text [AppButton](AppButton.md) in the `.app-btn-row` the surface already has, **before** the affirmative, which stays last on the trailing edge ([buttons.md](../rules/buttons.md)). Never a line of its own, never "Or…", never a chevron, never filled or outlined, never a split button. It names the doer (§ The doer): with Alis it starts the chat, with an outside agent it opens the steps, with none known ("Plan it with your agent") it opens the list. On a narrow surface the row wraps, the affirmative still last; the label never truncates.
|
|
31
|
+
3. **Two menu rows**, in the ⋯ [AppMenu](AppMenu.md) of a thing you can carry on with (an artifact), on its own screen or on its row in a list: **Continue it with Claude** opens the steps, and **Copy as prompt** copies at once, then says "Copied" in a snackbar, since the menu has closed. In a menu whose rows carry glyphs, Copy as prompt takes `content_copy` and Continue takes the agent's mark, or `forward` until this package has the marks.
|
|
32
|
+
4. **The steps**, which the other three open for an outside agent.
|
|
33
|
+
|
|
34
|
+
**On an alert**, a hand-off is the alert's one action ([AppAlert](AppAlert.md)): a failed setup's error offers "Fix it with Claude Code", and the steps open in place of the alert's panel.
|
|
35
|
+
|
|
36
|
+
## The steps
|
|
37
|
+
|
|
38
|
+
**They open in place of what opened them**: the list's place, or the whole of the card (its fields and its action row), or the thing's content from its ⋯ menu. From a row in a list, the thing opens first, with the steps in place of its content. A Back in words leads them, named for what they replaced, and puts it back exactly as it was: "Back to the form", "Back to the list", "Back to Q3 pricing brief". Opening the steps adds a history entry, so the browser's back does the same.
|
|
39
|
+
|
|
40
|
+
Then the head (the label, then **Use another agent**), one line saying what the agent needs and what comes back, and the numbered steps:
|
|
41
|
+
|
|
42
|
+
1. **Copy the prompt**: the ask, the line saying what its context carries, then one row: **Copy prompt** and **Show full prompt**.
|
|
43
|
+
2. **Use it in Claude**, with **Open Claude**, which opens the agent's start page in a new tab. An agent that runs commands has no start page: the step reads **Paste it into Claude Code**, with no button.
|
|
44
|
+
3. **The way back**, by how the result comes back:
|
|
45
|
+
- **Pasted**: "Bring the {result} back", with **Paste what Claude gave you**.
|
|
46
|
+
- **Saved by the agent**: "Review the draft", with a line ("It shows here when Claude Code has saved it.") until it exists, then a line naming what was saved ("Saved as a draft: Why onboarding takes three weeks.") and **Open the draft**. No button before there is a draft.
|
|
47
|
+
- **Done on the machine** (Set up, Fix): "Check it here", with a line ("This page updates when Claude Code has finished.") and no button.
|
|
48
|
+
- **None** (Continue): no third step.
|
|
49
|
+
|
|
50
|
+
Under the steps of an agent that runs commands, when the way back needs the Alis CLI, sits a closed [AppDisclosure](AppDisclosure.md), **Set up the Alis CLI yourself**, for anyone who would rather not let the agent install it. Continue never shows it.
|
|
51
|
+
|
|
52
|
+
## The doer
|
|
53
|
+
|
|
54
|
+
- **Remembered per person** (on every device they use) **and per task** in the table above: someone may plan interviews in Copilot and set up machines in Claude Code. The action row and the Continue row name the one remembered.
|
|
55
|
+
- **"Used" means Copy prompt was pressed, or Alis's chat started.** Opening the steps doesn't count.
|
|
56
|
+
- **Alis counts**, for every verb. If Alis was last, the button reads "Plan it with Alis" (or "Continue it with Alis") and starts the chat.
|
|
57
|
+
- **Another agent counts as "your agent"**: next time the label is "Plan it with your agent" and it opens the steps for another agent.
|
|
58
|
+
- **None yet**: "[Verb] it with your agent" opens the list, in the place the steps would open.
|
|
59
|
+
- **Use another agent** swaps the steps for the list, led by Back to the steps; whatever is picked becomes the name next time.
|
|
60
|
+
- **The list never reorders** for what is remembered: Alis first, the rest in the product's order, another agent last.
|
|
61
|
+
- **Each agent's mark** is its harness mark: one colour, the ink of the text beside it, at text size ([icons.md](../rules/icons.md)). It leads the agent's row and its Open button. This is the one-colour exception to buttons.md's full-colour third-party marks (§ A third party's mark on a hand-off), which are for sign-in and connect. Until this package carries the marks ([known-gaps.md](../rules/known-gaps.md) § Assets), every row is its words alone, Alis's too, so the column stays even.
|
|
62
|
+
|
|
63
|
+
## The prompt
|
|
64
|
+
|
|
65
|
+
**Two parts, the same at any length.** It never switches look at a character count.
|
|
66
|
+
|
|
67
|
+
- **The ask**: one sentence in the person's voice, imperative, sentence case, ending in a full stop. "Help me plan an interview about why onboarding takes three weeks." Built from what the person has given so far; with nothing yet, from the project: "Help me plan an interview for Client onboarding." Always shown, on the machine ground behind the `signal` caret like a command to run ([AppCodeBlock](AppCodeBlock.md)). It is words, not code, so it wraps, still in mono.
|
|
68
|
+
- **The context**, in Markdown: everything the agent needs and the person doesn't need to read. The goal (what the person typed, else the project's goal), then each document by its name with its text, then the way back. For an agent that runs commands, the way back says where to save with the Alis CLI, and how to install the CLI and sign in when it is missing. For a chat, it says the form to give the result in, so the paste lands cleanly. A carry-on has no way back. This package sets no length limit; the product does.
|
|
69
|
+
- **One line says what the context carries**, under the ask: "With {what it carries, named and counted} and how to bring the {result} back." So: "With the goal, 3 documents and how to bring the questions back." For an agent that saves to the project: "…and how to save the {result} here." A carry-on drops the last part: "With the brief's full text." **Show full prompt** (beside Copy prompt) opens the context above that row, in a box that scrolls past 12 lines.
|
|
70
|
+
- **Copy prompt** copies the ask, a blank line, then the context. Never the caret.
|
|
71
|
+
- **Alis gets the same prompt**: the ask and the context are sent as the first message of a normal Alis chat.
|
|
72
|
+
- **Nothing copies until Copy prompt or Copy as prompt is pressed.** Picking a row or opening the steps never touches the clipboard.
|
|
73
|
+
|
|
74
|
+
## Markup
|
|
75
|
+
|
|
76
|
+
```html
|
|
77
|
+
<!-- 1 · The list: one list per group, under its heading -->
|
|
78
|
+
<div class="app-handoff__choices">
|
|
79
|
+
<h3 class="app-handoff__group text-label" id="g-saves">Saves the draft to this project</h3>
|
|
80
|
+
<div class="app-list" role="list" aria-labelledby="g-saves">
|
|
81
|
+
<div class="app-row app-state app-row--divided" role="listitem">
|
|
82
|
+
<span class="app-row__text">
|
|
83
|
+
<button type="button" class="app-row__hit text-object-title">Plan it with Alis</button>
|
|
84
|
+
<span class="text-supporting">Opens a chat · Nothing to set up</span>
|
|
85
|
+
</span>
|
|
86
|
+
</div>
|
|
87
|
+
<div class="app-row app-state app-row--divided" role="listitem">
|
|
88
|
+
<span class="app-row__text">
|
|
89
|
+
<button type="button" class="app-row__hit text-object-title">Plan it with Claude Code</button>
|
|
90
|
+
<span class="text-supporting">Needs the Alis CLI</span>
|
|
91
|
+
</span>
|
|
92
|
+
<span class="app-row__trailing"><span class="app-icon" aria-hidden="true">chevron_right</span></span>
|
|
93
|
+
</div>
|
|
94
|
+
</div>
|
|
95
|
+
<h3 class="app-handoff__group text-label" id="g-paste">You paste the questions back here</h3>
|
|
96
|
+
<div class="app-list" role="list" aria-labelledby="g-paste">
|
|
97
|
+
<div class="app-row app-state app-row--divided" role="listitem">
|
|
98
|
+
<span class="app-row__text">
|
|
99
|
+
<button type="button" class="app-row__hit text-object-title">Plan it with Claude</button>
|
|
100
|
+
<span class="text-supporting">Needs a Claude account</span>
|
|
101
|
+
</span>
|
|
102
|
+
<span class="app-row__trailing"><span class="app-icon" aria-hidden="true">chevron_right</span></span>
|
|
103
|
+
</div>
|
|
104
|
+
<div class="app-row app-state app-row--divided" role="listitem">
|
|
105
|
+
<span class="app-row__text">
|
|
106
|
+
<button type="button" class="app-row__hit text-object-title">Plan it with another agent</button>
|
|
107
|
+
<span class="text-supporting">Any agent that takes a prompt</span>
|
|
108
|
+
</span>
|
|
109
|
+
<span class="app-row__trailing"><span class="app-icon" aria-hidden="true">chevron_right</span></span>
|
|
110
|
+
</div>
|
|
111
|
+
</div>
|
|
112
|
+
</div>
|
|
113
|
+
|
|
114
|
+
<!-- 2 · In the action row: before the affirmative, which stays last -->
|
|
115
|
+
<div class="app-btn-row">
|
|
116
|
+
<button type="button" class="app-btn app-state app-target">Plan it with Claude</button>
|
|
117
|
+
<button type="button" class="app-btn app-btn--filled app-state app-target">Create interview</button>
|
|
118
|
+
</div>
|
|
119
|
+
|
|
120
|
+
<!-- 3 · The ⋯ menu rows, in a menu whose rows carry glyphs -->
|
|
121
|
+
<button type="button" class="app-menu__item app-state" role="menuitem"><span class="app-icon" aria-hidden="true">forward</span><span class="app-menu__text"><span>Continue it with Claude</span></span></button>
|
|
122
|
+
<button type="button" class="app-menu__item app-state" role="menuitem"><span class="app-icon" aria-hidden="true">content_copy</span><span class="app-menu__text"><span>Copy as prompt</span></span></button>
|
|
123
|
+
|
|
124
|
+
<!-- 4 · The steps, in place of what opened them -->
|
|
125
|
+
<section class="app-handoff" aria-labelledby="handoff-title">
|
|
126
|
+
<div class="app-btn-row app-btn-row--start app-handoff__back">
|
|
127
|
+
<button type="button" class="app-btn app-state app-target">Back to the form</button>
|
|
128
|
+
</div>
|
|
129
|
+
<div class="app-handoff__head">
|
|
130
|
+
<h2 class="app-handoff__title text-section-title" id="handoff-title">Plan it with Claude</h2>
|
|
131
|
+
<button type="button" class="app-btn app-state app-target">Use another agent</button>
|
|
132
|
+
</div>
|
|
133
|
+
<p class="text-supporting text-on-surface-variant">Needs a Claude account. The questions come back here.</p>
|
|
134
|
+
<ol class="app-handoff__steps" role="list">
|
|
135
|
+
<li class="app-handoff__step">
|
|
136
|
+
<span class="app-icon" aria-hidden="true">counter_1</span>
|
|
137
|
+
<div class="app-handoff__body">
|
|
138
|
+
<h3 class="app-handoff__label text-label">Copy the prompt</h3>
|
|
139
|
+
<p class="app-handoff__ask app-machine"><span class="app-handoff__caret" aria-hidden="true">❯ </span>Help me plan an interview about why onboarding takes three weeks.</p>
|
|
140
|
+
<p class="text-supporting text-on-surface-variant">With the goal, 3 documents and how to bring the questions back.</p>
|
|
141
|
+
<div class="app-handoff__context" id="handoff-context" role="region" aria-label="Full prompt" tabindex="0" hidden><!-- the context, as plain text --></div>
|
|
142
|
+
<div class="app-btn-row app-btn-row--start">
|
|
143
|
+
<button type="button" class="app-btn app-state app-target"><span class="app-icon" aria-hidden="true">content_copy</span>Copy prompt</button>
|
|
144
|
+
<button type="button" class="app-btn app-state app-target app-handoff__more" aria-expanded="false" aria-controls="handoff-context">Show full prompt</button>
|
|
145
|
+
</div>
|
|
146
|
+
</div>
|
|
147
|
+
</li>
|
|
148
|
+
<li class="app-handoff__step">
|
|
149
|
+
<span class="app-icon" aria-hidden="true">counter_2</span>
|
|
150
|
+
<div class="app-handoff__body">
|
|
151
|
+
<h3 class="app-handoff__label text-label">Use it in Claude</h3>
|
|
152
|
+
<div class="app-btn-row app-btn-row--start">
|
|
153
|
+
<a class="app-btn app-state app-target" href="https://claude.ai/new" target="_blank" rel="noopener" aria-label="Open Claude, opens in a new tab">Open Claude<span class="app-icon app-icon--trailing" aria-hidden="true">open_in_new</span></a>
|
|
154
|
+
</div>
|
|
155
|
+
</div>
|
|
156
|
+
</li>
|
|
157
|
+
<li class="app-handoff__step">
|
|
158
|
+
<span class="app-icon" aria-hidden="true">counter_3</span>
|
|
159
|
+
<div class="app-handoff__body">
|
|
160
|
+
<h3 class="app-handoff__label text-label">Bring the questions back</h3>
|
|
161
|
+
<div class="app-btn-row app-btn-row--start">
|
|
162
|
+
<button type="button" class="app-btn app-state app-target">Paste what Claude gave you</button>
|
|
163
|
+
</div>
|
|
164
|
+
</div>
|
|
165
|
+
</li>
|
|
166
|
+
</ol>
|
|
167
|
+
<span class="app-handoff__status" aria-live="polite"></span>
|
|
168
|
+
</section>
|
|
169
|
+
```
|
|
170
|
+
|
|
171
|
+
## Behaviour you must supply
|
|
172
|
+
|
|
173
|
+
- **Remember the doer** per person and per task (§ The doer), stored with the person, not the browser.
|
|
174
|
+
- **Copy prompt** writes the ask, a blank line and the context. Then its glyph turns to `check` and its label to "Copied", said in `.app-handoff__status`, both back after 2 seconds ([buttons.md](../rules/buttons.md)). **Copy as prompt** in a menu says "Copied" in a snackbar instead.
|
|
175
|
+
- **Show full prompt** removes `hidden` from the context and reads "Hide full prompt" with `aria-expanded="true"`.
|
|
176
|
+
- **Open the agent** in a new tab at its start page, with nothing filled in: the person pastes the prompt themselves.
|
|
177
|
+
- **Paste never reads the clipboard.** It opens the place the result belongs (Use your questions, a new artifact's editor) with its field focused, and the person pastes there. What lands is staged, never saved unseen. **Review the draft** opens the draft the agent saved.
|
|
178
|
+
- **Back** puts back what the steps replaced, as it was, with focus on the control that opened them. It is words alone: `arrow_back` belongs to the title bar's icon button. **Use another agent** shows the list led by Back to the steps, focus on its first row.
|
|
179
|
+
- **Alis's row and button** start a normal Alis chat with the whole prompt as the first message, sent.
|
|
180
|
+
|
|
181
|
+
## Classes
|
|
182
|
+
|
|
183
|
+
`.app-handoff` (the steps), `.app-handoff__choices` (the list), `.app-handoff__group` (the heading over each of the list's groups), `.app-handoff__back`, `.app-handoff__head`, `.app-handoff__title`, `.app-handoff__steps`, `.app-handoff__step`, `.app-handoff__body`, `.app-handoff__label`, `.app-handoff__ask` (with `.app-machine`), `.app-handoff__caret`, `.app-handoff__context`, `.app-handoff__status` (the visually hidden live region). `.app-handoff__more` is a hook for your script; it draws nothing. A `<p>` in the steps or a step takes no margin of its own; the gaps space it. Open's `open_in_new` takes `.app-icon--trailing` ([AppButton](AppButton.md)). The list's rows are `.app-row--divided` in `.app-list`s; the buttons are `.app-btn` in `.app-btn-row`. The Back row and a step's button rows are pulled to the text edge, as the detail title bar's is, so a leading glyph (Copy prompt's) hangs 8px into the margin. The glyphs `counter_1` to `counter_3`, `forward`, `content_copy` and `open_in_new` belong in your self-hosted Material Symbols subset.
|
package/components/README.md
CHANGED
|
@@ -42,6 +42,7 @@ Shared conventions: `app-state` gives anything pressable its hover, focus and pr
|
|
|
42
42
|
| AppVoiceView | A live call given the content area, or the screen on a phone | [AppVoiceView.md](AppVoiceView.md) |
|
|
43
43
|
| AppTurn | A turn in a conversation: your bubble, Alis's prose, anyone else under a who-line; Alis's work, actions, voice notes; people's states and requests | [AppTurn.md](AppTurn.md) |
|
|
44
44
|
| AppAsk | When Alis or a person needs a decision from you: an approval, a choice, a connection, docked on the composer | [AppAsk.md](AppAsk.md) |
|
|
45
|
+
| AppHandOff | A task done in the person's own agent (Claude, ChatGPT, Copilot…) or with Alis, and the way the result comes back | [AppHandOff.md](AppHandOff.md) |
|
|
45
46
|
| AppMenu | Acts or places that open from a control (floating) or from `/` and `@` (docked on the composer), and the token you chose | [AppMenu.md](AppMenu.md) |
|
|
46
47
|
| AppSelectTile | A card chosen among others | [AppSelectTile.md](AppSelectTile.md) |
|
|
47
48
|
| AppSegmented | 2 to 5 options that change content in place | [AppSegmented.md](AppSegmented.md) |
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@alis-build/design-system",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.38.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",
|
package/rules/buttons.md
CHANGED
|
@@ -143,8 +143,9 @@ click goes.
|
|
|
143
143
|
`arrow_forward` for it.
|
|
144
144
|
- **A third party's mark on a hand-off**: "Sign in with Google", "Connect
|
|
145
145
|
GitHub", "Open in VS Code". The button takes you to that party, so it leads
|
|
146
|
-
with their mark, at the glyph's size and never recoloured
|
|
147
|
-
|
|
146
|
+
with their mark, at the glyph's size and never recoloured (an agent's mark
|
|
147
|
+
in a hand-off is the exception: one colour, [icons.md](icons.md)). Only sign-in,
|
|
148
|
+
connect and open-in buttons (and an agent's row in a hand-off), and only marks from the system's list
|
|
148
149
|
([known-gaps.md](known-gaps.md) § Assets).
|
|
149
150
|
- **`stop_circle` on the control that stops a capture in flight**, in the red
|
|
150
151
|
of § Colour, filled or not, and alone on a phone.
|
|
@@ -166,8 +167,9 @@ The rest:
|
|
|
166
167
|
so filled on a recorder on its own it is the one filled button with a glyph. A lead takes its verb's landmark or none: "New environment" with `add`,
|
|
167
168
|
"Edit session" with `edit`.
|
|
168
169
|
- **One glyph.** It leads, except the two that say where the click goes (the
|
|
169
|
-
chevron, `open_in_new`), which trail
|
|
170
|
-
- **Alis's actions say so in words** ("Draft with Alis"
|
|
170
|
+
chevron, `open_in_new`), which trail and take `app-icon--trailing`.
|
|
171
|
+
- **Alis's actions say so in words** ("Draft it with Alis", the hand-off's shape:
|
|
172
|
+
[AppHandOff](../components/AppHandOff.md)). ✦ (`auto_awesome`)
|
|
171
173
|
marks what Alis wrote ([AppChip](../components/AppChip.md)), never a button.
|
|
172
174
|
|
|
173
175
|
## Rules
|
package/rules/icons.md
CHANGED
|
@@ -60,7 +60,9 @@ pane), never by drawing new glyphs.
|
|
|
60
60
|
## Brand marks are not icons
|
|
61
61
|
|
|
62
62
|
- **The Alis mark**: never recoloured, never rotated, never boxed.
|
|
63
|
-
- **Harness marks** (Claude, Copilot, Codex, Cursor, Antigravity,
|
|
64
|
-
colour, at text size, for nominative "works with" use only
|
|
65
|
-
|
|
63
|
+
- **Harness marks** (Claude, ChatGPT, Gemini, Copilot, Codex, Cursor, Antigravity,
|
|
64
|
+
OpenCode): one colour, at text size, for nominative "works with" use only, and
|
|
65
|
+
to lead an agent's row and its Open button in a hand-off
|
|
66
|
+
([AppHandOff](../components/AppHandOff.md)), in the ink of the text beside
|
|
67
|
+
them. Never in a vendor's brand colour.
|
|
66
68
|
- Product lockups are assets. Never reconstruct one by hand.
|
package/rules/known-gaps.md
CHANGED
|
@@ -29,7 +29,7 @@ What the system doesn't decide yet, in one place. When you hit one, take the qui
|
|
|
29
29
|
## Assets
|
|
30
30
|
|
|
31
31
|
- No font files are vendored. `fonts.css` loads Nunito Sans and Material Symbols from Google Fonts, for prototypes; in production, self-host them (Material Symbols as the subset you use).
|
|
32
|
-
- The coding-agent ("works with") marks are not in this package; alisx.com carries them.
|
|
32
|
+
- The coding-agent ("works with") marks are not in this package; alisx.com carries them. Until they are here, a hand-off's rows and its Open button are words alone ([AppHandOff](../components/AppHandOff.md)).
|
|
33
33
|
- **Third-party marks for hand-offs** ("Sign in with Google", "Connect GitHub", "Open in VS Code"; [buttons.md](buttons.md) § The form) have no list yet. Until a mark is added here with its owner's usage terms, the button is its words alone.
|
|
34
|
-
- **The email
|
|
34
|
+
- **The email images are served per release** under `alisx.com/assets/email/<version>/`: the wordmarks and, from 0.37.0, the glyphs. A release that changes an email PNG needs that folder added to alisx.com before an email that uses it is sent; the shell reads it from its `assets_url` slot ([email.md](email.md)).
|
|
35
35
|
- **The email button in Outlook for Windows** draws square: rounding it needs VML, which the shell leaves out.
|
package/rules/quick-start.md
CHANGED
|
@@ -43,6 +43,7 @@ AppShell
|
|
|
43
43
|
| Writing to Alis, an agent or a person | `AppComposer`, one per conversation; files in its tray as `AppAttachment`s; a call given room is `AppVoiceView` |
|
|
44
44
|
| The conversation above it | `AppTurn`s in an `.app-thread`: you in a bubble, Alis as prose, the mark at the top of Alis's latest turn |
|
|
45
45
|
| More actions behind `more_vert`, the composer's Add, `/` commands and `@` mentions | `AppMenu`: floating for actions, a band on the composer for suggestions; what you choose is an `.app-token` |
|
|
46
|
+
| A task the person can do in their own agent (Claude, ChatGPT, Copilot…), with a way back | `AppHandOff`, one per screen: a list at the start of a create flow, a text button before the affirmative ("Plan it with Claude"), or a ⋯ row; each opens the steps |
|
|
46
47
|
| Alis or a person needs an answer, an approval or a connection | `AppAsk`, docked on the composer of whoever decides; the conversation's row shows a `warning` "Needs you" chip and the rail an `.app-count` |
|
|
47
48
|
| A recording that runs while you keep writing (a screen, through an interview) | `AppComposer`'s capture bar, docked on top of the composer and led by a live thumbnail; Stop recording in `error` ink, unfilled beside Send |
|
|
48
49
|
| Content Alis wrote | a label `AppChip icon="auto_awesome"` "AI-generated", once, at its top |
|
package/words.json
CHANGED
|
@@ -280,6 +280,21 @@
|
|
|
280
280
|
"means": "A synthesis or an artifact that context has arrived since. Said in words, with what changed (\"3 new contributions since this was written\"), and Update beside it.",
|
|
281
281
|
"retired": [],
|
|
282
282
|
"avoid": ["Stale (Build may still say a cache is stale)"]
|
|
283
|
+
},
|
|
284
|
+
{
|
|
285
|
+
"name": "your agent",
|
|
286
|
+
"product": "all",
|
|
287
|
+
"means": "The AI tool a person already uses outside AlisX: Claude, ChatGPT, Copilot, Codex, Gemini and the rest. Named by its own name wherever it is known (\"Plan it with Claude\"); \"your agent\" only where it isn't, and \"another agent\" on the last row of a list. Never Alis, who is named. A hand-off's label is [verb] it with [who]: \"Plan it with Alis\", \"Plan it with your agent\". A flow's way in that offers Alis and outside agents together is \"[verb] it with an agent\" (\"Plan it with an agent\"), never \"with AI\" (AppHandOff).",
|
|
288
|
+
"retired": ["your AI tool"],
|
|
289
|
+
"avoid": ["AI tool", "your AI (Alis is an AI too)", "with AI (as a way in: \"with an agent\")", "your assistant"]
|
|
290
|
+
},
|
|
291
|
+
{
|
|
292
|
+
"name": "prompt",
|
|
293
|
+
"plural": "prompts",
|
|
294
|
+
"product": "all",
|
|
295
|
+
"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
|
+
"retired": [],
|
|
297
|
+
"avoid": ["brief (for a prompt: a project brief is an artifact, and the introduction was the participant brief)", "instructions"]
|
|
283
298
|
}
|
|
284
299
|
],
|
|
285
300
|
"verbs": [
|