@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.
package/NOTICE CHANGED
@@ -5,3 +5,9 @@ The Apache License covers the code, the stylesheet, the tokens and the documents
5
5
  in this package. It grants no right to use the Alis, Alis Exchange, AlisX, Alis
6
6
  Build or Alis Ideate names or marks, including the files in assets/Brand, except
7
7
  as needed to describe the origin of this package (Apache License 2.0, section 6).
8
+
9
+ The files in assets/Harness are the marks of other companies' products (Claude,
10
+ ChatGPT, Gemini, Codex, Copilot, GitHub Copilot, Cursor, Antigravity, OpenCode),
11
+ drawn in one colour from the lobe-icons set (MIT). They are their owners'
12
+ trademarks, included only to name the agent a screen refers to. The Apache
13
+ License does not cover them and grants no right to use them for anything else.
package/alisx.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;
@@ -745,6 +746,20 @@ span.app-account__avatar{display:flex;align-items:center;justify-content:center;
745
746
  .app-empty-field>div:last-child{position:relative;z-index:1;flex:1;display:flex;flex-direction:column}
746
747
  .app-shell__detail>.app-empty-field{margin:calc(var(--space-16) * -1) calc(var(--space-24) * -1)}
747
748
 
749
+ /* ── Sign-in · signing in, signing up, onboarding: one card on the plain ground. components/AppSignIn.md ── */
750
+ .app-signin{box-sizing:border-box;min-height:100dvh;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:var(--space-16);padding:var(--space-48) var(--space-16);background:var(--background);color:var(--on-surface)}
751
+ .app-signin__card{width:min(440px,100%);max-width:none;gap:var(--space-24)}
752
+ .app-signin__lead{display:flex;flex-direction:column;align-items:center;gap:var(--space-8);text-align:center}
753
+ .app-signin__lead>h1,.app-signin__lead>h2,.app-signin__lead>p{margin:0}
754
+ .app-signin__card--steps .app-signin__lead{align-items:flex-start;text-align:start}
755
+ .app-signin__logo{display:block;max-width:200px;max-height:40px;margin-bottom:var(--space-8)}
756
+ /* With nothing to fill in, the empty-state block sits at its own height so the foot stays under it */
757
+ .app-signin>.app-empty{flex:none;min-height:0;padding:0}
758
+ .app-signin__action{width:100%}
759
+ .app-signin__foot{display:flex;flex-wrap:wrap;justify-content:center;gap:var(--space-4) var(--space-8);margin:0;color:var(--on-surface-variant)}
760
+ .app-signin__foot a{color:inherit;text-decoration:none}
761
+ .app-signin__foot a:hover,.app-signin__foot a:focus-visible{text-decoration:underline;text-underline-offset:2px}
762
+
748
763
  /* ── Transcript · a question and its answer, in pairs ── */
749
764
  .app-qa{display:flex;flex-direction:column;gap:var(--space-24);margin:0}
750
765
  .app-qa__pair{display:flex;flex-direction:column;gap:var(--space-8)}
@@ -912,10 +927,16 @@ span.app-account__avatar{display:flex;align-items:center;justify-content:center;
912
927
  .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
928
  .app-handoff__group{margin:var(--space-24) 0 var(--space-4);color:var(--on-surface-variant)}
914
929
  .app-handoff__group:first-child{margin-top:0}
930
+ .app-handoff__no-mark{flex:none;width:20px;height:20px}
931
+ .app-btn .app-icon--mark{width:16px;height:16px}
915
932
 
916
933
  /* ── Composer · where you write to Alis, an agent or a person: tray, editor, row; one line below ── */
917
934
  .app-composer{position:relative;display:flex;flex-direction:column;gap:var(--space-8);width:100%;max-width:var(--measure-prose);margin-inline:auto}
918
935
  .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)}
936
+ /* Audience is a message property, kept above the draft even when its error line changes. */
937
+ .app-composer__audience{display:flex;flex-wrap:wrap;align-items:flex-end;gap:var(--space-12);padding:var(--space-8) var(--space-12) var(--space-12);border-bottom:1px solid var(--outline-variant)}
938
+ .app-composer__audience .app-field{flex:1 1 24ch;min-width:0;max-width:100%}
939
+ .app-composer__audience>.text-meta{margin:0;padding-block:var(--space-8);color:var(--on-surface-variant);overflow-wrap:anywhere}
919
940
  .app-composer__tray{display:flex;flex-wrap:wrap;gap:var(--space-8);padding:var(--space-4) var(--space-4) 0}
920
941
  .app-composer__editor{min-height:24px;max-height:208px;overflow-y:auto;padding:var(--space-12) var(--space-12) var(--space-4);color:var(--on-surface);font-family:var(--font-sans);font-size:16px;line-height:24px;font-weight:400;overflow-wrap:anywhere}
921
942
  .app-composer__input{display:block;width:100%;margin:0;padding:0;border:0;outline:0;resize:none;background:transparent;color:inherit;font:inherit}
@@ -987,18 +1008,20 @@ span.app-account__avatar{display:flex;align-items:center;justify-content:center;
987
1008
  @keyframes app-breathe{from{transform:scale(.96)}to{transform:scale(1.04)}}
988
1009
 
989
1010
  /* ── Attachment · a file, recording or queued message in the composer's tray, and in the sent message ── */
990
- .app-attachment{position:relative;display:flex;align-items:center;gap:var(--space-12);width:232px;max-width:100%;height:56px;padding:var(--space-8);border-radius:var(--radius-lg);background:var(--surface-container-low);overflow:hidden}
1011
+ .app-attachment{position:relative;display:flex;align-items:center;gap:var(--space-12);width:232px;max-width:100%;min-height:56px;height:auto;padding:var(--space-8);border-radius:var(--radius-lg);background:var(--surface-container-low)}
991
1012
  .app-attachment__glyph{display:flex;align-items:center;justify-content:center;flex:none;width:40px;height:40px;border-radius:var(--radius-sm);background:var(--surface);color:var(--on-surface-variant)}
992
1013
  .app-attachment__text{display:flex;flex-direction:column;flex:1;min-width:0}
993
1014
  .app-attachment__text>*{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
994
1015
  .app-attachment__text>.text-meta{color:var(--on-surface-variant)}
995
- .app-attachment .app-icon-btn{flex:none;width:24px;height:24px}
1016
+ /* Reserve actual hit boxes so adjacent Retry and Remove targets cannot overlap. */
1017
+ .app-attachment .app-icon-btn.app-state{flex:none;width:var(--touch-target);height:var(--touch-target)}
1018
+ .app-attachment:not(.app-attachment--message):has(.app-icon-btn~.app-icon-btn){width:320px}
996
1019
  .app-attachment .app-icon-btn .app-icon{font-size:16px}
997
- .app-attachment__bar{position:absolute;left:0;right:0;bottom:0;height:2px;background:color-mix(in srgb,var(--primary) 16%,transparent)}
998
- .app-attachment__bar>span{display:block;height:100%;background:var(--primary)}
1020
+ .app-attachment__bar{position:absolute;left:var(--space-12);right:var(--space-12);bottom:var(--space-4);height:2px;background:var(--surface-container-highest);border-radius:var(--radius-pill);overflow:hidden}
1021
+ .app-attachment__bar>span{display:block;height:100%;background:var(--on-surface)}
999
1022
  .app-attachment.is-error .app-attachment__glyph,.app-attachment.is-error .app-attachment__text>.text-meta{color:var(--error)}
1000
- .app-attachment--image{width:56px;padding:0}
1001
- .app-attachment--image>img,.app-attachment--image>svg{display:block;width:100%;height:100%;object-fit:cover}
1023
+ .app-attachment--image{width:var(--attachment-preview-size);height:var(--attachment-preview-size);padding:0}
1024
+ .app-attachment--image>img,.app-attachment--image>svg{display:block;width:100%;height:100%;object-fit:cover;border-radius:inherit}
1002
1025
  .app-attachment--image .app-icon-btn{position:absolute;top:var(--space-4);right:var(--space-4);background:var(--surface);color:var(--on-surface)}
1003
1026
  .app-attachment--message{width:100%;height:auto;min-height:56px}
1004
1027
  a.app-attachment{color:inherit;text-decoration:none}
@@ -1045,6 +1068,8 @@ button.app-attachment{border:0;color:inherit;font:inherit;text-align:left;cursor
1045
1068
  .app-turn .app-icon-btn{width:32px;height:32px}
1046
1069
  .app-turn__who{display:flex;flex-wrap:wrap;align-items:center;gap:var(--space-8);min-height:24px;color:var(--on-surface)}
1047
1070
  .app-turn__who .text-meta{color:var(--on-surface-variant)}
1071
+ .app-turn__audience{display:flex;align-items:center;gap:var(--space-4);margin:0;color:var(--on-surface-variant)}
1072
+ .app-turn__audience .app-icon{font-size:16px}
1048
1073
  .app-turn__avatar{display:inline-flex;align-items:center;justify-content:center;flex:none;width:24px;height:24px;border-radius:var(--radius-pill);background:var(--surface-container-highest);color:var(--on-surface);font-family:var(--font-sans);font-size:12px;line-height:16px;font-weight:600;overflow:hidden;object-fit:cover}
1049
1074
  .app-turn__avatar--alis{background:transparent}
1050
1075
  .app-turn__head{display:flex;align-items:center;gap:var(--space-12);min-height:32px}
@@ -0,0 +1,17 @@
1
+ # Harness
2
+
3
+ The marks of the agents AlisX works with, one colour, on a 24 grid, in
4
+ `currentColor`: `claude.svg` (Claude and Claude Code), `chatgpt.svg`,
5
+ `gemini.svg`, `codex.svg`, `copilot.svg`, `github-copilot.svg`, `cursor.svg`,
6
+ `antigravity.svg`, `opencode.svg`. Drawn from the lobe-icons set (MIT), as
7
+ the console already uses them. alisx.com's colour marks and wordmarks
8
+ (`lp/home/v1/public/assets/harness`) are the narrative's; these are the
9
+ product's.
10
+
11
+ - **Nominative use only**: to say which agent a row, a button or a line is
12
+ about ("works with"). Never decoration, never a product's own icon.
13
+ - **One colour**, the ink of the text beside them, at text size
14
+ ([icons.md](../../rules/icons.md)). Never in the vendor's brand colour.
15
+ - Never redraw, combine, rotate or box one.
16
+ - These are their owners' trademarks; see NOTICE.
17
+ - A new agent joins with its mark here and its name in icons.md, nothing else.
@@ -0,0 +1 @@
1
+ <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="currentColor" fill-rule="evenodd"><title>Antigravity</title><path d="M21.751 22.607c1.34 1.005 3.35.335 1.508-1.508C17.73 15.74 18.904 1 12.037 1 5.17 1 6.342 15.74.815 21.1c-2.01 2.009.167 2.511 1.507 1.506 5.192-3.517 4.857-9.714 9.715-9.714 4.857 0 4.522 6.197 9.714 9.715z"/></svg>
@@ -0,0 +1 @@
1
+ <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="currentColor" fill-rule="evenodd"><title>ChatGPT</title><path d="M9.205 8.658v-2.26c0-.19.072-.333.238-.428l4.543-2.616c.619-.357 1.356-.523 2.117-.523 2.854 0 4.662 2.212 4.662 4.566 0 .167 0 .357-.024.547l-4.71-2.759a.797.797 0 00-.856 0l-5.97 3.473zm10.609 8.8V12.06c0-.333-.143-.57-.429-.737l-5.97-3.473 1.95-1.118a.433.433 0 01.476 0l4.543 2.617c1.309.76 2.189 2.378 2.189 3.948 0 1.808-1.07 3.473-2.76 4.163zM7.802 12.703l-1.95-1.142c-.167-.095-.239-.238-.239-.428V5.899c0-2.545 1.95-4.472 4.591-4.472 1 0 1.927.333 2.712.928L8.23 5.067c-.285.166-.428.404-.428.737v6.898zM12 15.128l-2.795-1.57v-3.33L12 8.658l2.795 1.57v3.33L12 15.128zm1.796 7.23c-1 0-1.927-.332-2.712-.927l4.686-2.712c.285-.166.428-.404.428-.737v-6.898l1.974 1.142c.167.095.238.238.238.428v5.233c0 2.545-1.974 4.472-4.614 4.472zm-5.637-5.303l-4.544-2.617c-1.308-.761-2.188-2.378-2.188-3.948A4.482 4.482 0 014.21 6.327v5.423c0 .333.143.571.428.738l5.947 3.449-1.95 1.118a.432.432 0 01-.476 0zm-.262 3.9c-2.688 0-4.662-2.021-4.662-4.519 0-.19.024-.38.047-.57l4.686 2.71c.286.167.571.167.856 0l5.97-3.448v2.26c0 .19-.07.333-.237.428l-4.543 2.616c-.619.357-1.356.523-2.117.523zm5.899 2.83a5.947 5.947 0 005.827-4.756C22.287 18.339 24 15.84 24 13.296c0-1.665-.713-3.282-1.998-4.448.119-.5.19-.999.19-1.498 0-3.401-2.759-5.947-5.946-5.947-.642 0-1.26.095-1.88.31A5.962 5.962 0 0010.205 0a5.947 5.947 0 00-5.827 4.757C1.713 5.447 0 7.945 0 10.49c0 1.666.713 3.283 1.998 4.448-.119.5-.19 1-.19 1.499 0 3.401 2.759 5.946 5.946 5.946.642 0 1.26-.095 1.88-.309a5.96 5.96 0 004.162 1.713z"/></svg>
@@ -0,0 +1 @@
1
+ <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="currentColor" fill-rule="evenodd"><title>Claude</title><path d="M4.709 15.955l4.72-2.647.08-.23-.08-.128H9.2l-.79-.048-2.698-.073-2.339-.097-2.266-.122-.571-.121L0 11.784l.055-.352.48-.321.686.06 1.52.103 2.278.158 1.652.097 2.449.255h.389l.055-.157-.134-.098-.103-.097-2.358-1.596-2.552-1.688-1.336-.972-.724-.491-.364-.462-.158-1.008.656-.722.881.06.225.061.893.686 1.908 1.476 2.491 1.833.365.304.145-.103.019-.073-.164-.274-1.355-2.446-1.446-2.49-.644-1.032-.17-.619a2.97 2.97 0 01-.104-.729L6.283.134 6.696 0l.996.134.42.364.62 1.414 1.002 2.229 1.555 3.03.456.898.243.832.091.255h.158V9.01l.128-1.706.237-2.095.23-2.695.08-.76.376-.91.747-.492.584.28.48.685-.067.444-.286 1.851-.559 2.903-.364 1.942h.212l.243-.242.985-1.306 1.652-2.064.73-.82.85-.904.547-.431h1.033l.76 1.129-.34 1.166-1.064 1.347-.881 1.142-1.264 1.7-.79 1.36.073.11.188-.02 2.856-.606 1.543-.28 1.841-.315.833.388.091.395-.328.807-1.969.486-2.309.462-3.439.813-.042.03.049.061 1.549.146.662.036h1.622l3.02.225.79.522.474.638-.079.485-1.215.62-1.64-.389-3.829-.91-1.312-.329h-.182v.11l1.093 1.068 2.006 1.81 2.509 2.33.127.578-.322.455-.34-.049-2.205-1.657-.851-.747-1.926-1.62h-.128v.17l.444.649 2.345 3.521.122 1.08-.17.353-.608.213-.668-.122-1.374-1.925-1.415-2.167-1.143-1.943-.14.08-.674 7.254-.316.37-.729.28-.607-.461-.322-.747.322-1.476.389-1.924.315-1.53.286-1.9.17-.632-.012-.042-.14.018-1.434 1.967-2.18 2.945-1.726 1.845-.414.164-.717-.37.067-.662.401-.589 2.388-3.036 1.44-1.882.93-1.086-.006-.158h-.055L4.132 18.56l-1.13.146-.487-.456.061-.746.231-.243 1.908-1.312-.006.006z"/></svg>
@@ -0,0 +1 @@
1
+ <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="currentColor" fill-rule="evenodd"><title>Codex</title><path d="M8.086.457a6.105 6.105 0 013.046-.415c1.333.153 2.521.72 3.564 1.7a.117.117 0 00.107.029c1.408-.346 2.762-.224 4.061.366l.063.03.154.076c1.357.703 2.33 1.77 2.918 3.198.278.679.418 1.388.421 2.126a5.655 5.655 0 01-.18 1.631.167.167 0 00.04.155 5.982 5.982 0 011.578 2.891c.385 1.901-.01 3.615-1.183 5.14l-.182.22a6.063 6.063 0 01-2.934 1.851.162.162 0 00-.108.102c-.255.736-.511 1.364-.987 1.992-1.199 1.582-2.962 2.462-4.948 2.451-1.583-.008-2.986-.587-4.21-1.736a.145.145 0 00-.14-.032c-.518.167-1.04.191-1.604.185a5.924 5.924 0 01-2.595-.622 6.058 6.058 0 01-2.146-1.781c-.203-.269-.404-.522-.551-.821a7.74 7.74 0 01-.495-1.283 6.11 6.11 0 01-.017-3.064.166.166 0 00.008-.074.115.115 0 00-.037-.064 5.958 5.958 0 01-1.38-2.202 5.196 5.196 0 01-.333-1.589 6.915 6.915 0 01.188-2.132c.45-1.484 1.309-2.648 2.577-3.493.282-.188.55-.334.802-.438.286-.12.573-.22.861-.304a.129.129 0 00.087-.087A6.016 6.016 0 015.635 2.31C6.315 1.464 7.132.846 8.086.457zm-.804 7.85a.848.848 0 00-1.473.842l1.694 2.965-1.688 2.848a.849.849 0 001.46.864l1.94-3.272a.849.849 0 00.007-.854l-1.94-3.393zm5.446 6.24a.849.849 0 000 1.695h4.848a.849.849 0 000-1.696h-4.848z"/></svg>
@@ -0,0 +1 @@
1
+ <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="currentColor" fill-rule="evenodd"><title>Copilot</title><path d="M9 23l.073-.001a2.53 2.53 0 01-2.347-1.838l-.697-2.433a2.529 2.529 0 00-2.426-1.839h-.497l-.104-.002c-4.485 0-2.935-5.278-1.75-9.225l.162-.525C2.412 3.99 3.883 1 6.25 1h8.86c1.12 0 2.106.745 2.422 1.829l.715 2.453a2.53 2.53 0 002.247 1.823l.147.005.534.001c3.557.115 3.088 3.745 2.156 7.206l-.113.413c-.154.548-.315 1.089-.47 1.607l-.163.525C21.588 20.01 20.116 23 17.75 23h-8.75zm8.22-15.89l-3.856.001a2.526 2.526 0 00-2.35 1.615L9.21 15.04a2.529 2.529 0 01-2.43 1.847l3.853.002c1.056 0 1.992-.661 2.361-1.644l1.796-6.287a2.529 2.529 0 012.43-1.848z"/></svg>
@@ -0,0 +1 @@
1
+ <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="currentColor" fill-rule="evenodd"><title>Cursor</title><path d="M22.106 5.68L12.5.135a.998.998 0 00-.998 0L1.893 5.68a.84.84 0 00-.419.726v11.186c0 .3.16.577.42.727l9.607 5.547a.999.999 0 00.998 0l9.608-5.547a.84.84 0 00.42-.727V6.407a.84.84 0 00-.42-.726zm-.603 1.176L12.228 22.92c-.063.108-.228.064-.228-.061V12.34a.59.59 0 00-.295-.51l-9.11-5.26c-.107-.062-.063-.228.062-.228h18.55c.264 0 .428.286.296.514z"/></svg>
@@ -0,0 +1 @@
1
+ <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="currentColor" fill-rule="evenodd"><title>Gemini</title><path d="M20.616 10.835a14.147 14.147 0 01-4.45-3.001 14.111 14.111 0 01-3.678-6.452.503.503 0 00-.975 0 14.134 14.134 0 01-3.679 6.452 14.155 14.155 0 01-4.45 3.001c-.65.28-1.318.505-2.002.678a.502.502 0 000 .975c.684.172 1.35.397 2.002.677a14.147 14.147 0 014.45 3.001 14.112 14.112 0 013.679 6.453.502.502 0 00.975 0c.172-.685.397-1.351.677-2.003a14.145 14.145 0 013.001-4.45 14.113 14.113 0 016.453-3.678.503.503 0 000-.975 13.245 13.245 0 01-2.003-.678z"/></svg>
@@ -0,0 +1 @@
1
+ <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="currentColor" fill-rule="evenodd"><title>GitHub Copilot</title><path d="M19.245 5.364c1.322 1.36 1.877 3.216 2.11 5.817.622 0 1.2.135 1.592.654l.73.964c.21.278.323.61.323.955v2.62c0 .339-.173.669-.453.868C20.239 19.602 16.157 21.5 12 21.5c-4.6 0-9.205-2.583-11.547-4.258-.28-.2-.452-.53-.453-.868v-2.62c0-.345.113-.679.321-.956l.73-.963c.392-.517.974-.654 1.593-.654l.029-.297c.25-2.446.81-4.213 2.082-5.52 2.461-2.54 5.71-2.851 7.146-2.864h.198c1.436.013 4.685.323 7.146 2.864zm-7.244 4.328c-.284 0-.613.016-.962.05-.123.447-.305.85-.57 1.108-1.05 1.023-2.316 1.18-2.994 1.18-.638 0-1.306-.13-1.851-.464-.516.165-1.012.403-1.044.996a65.882 65.882 0 00-.063 2.884l-.002.48c-.002.563-.005 1.126-.013 1.69.002.326.204.63.51.765 2.482 1.102 4.83 1.657 6.99 1.657 2.156 0 4.504-.555 6.985-1.657a.854.854 0 00.51-.766c.03-1.682.006-3.372-.076-5.053-.031-.596-.528-.83-1.046-.996-.546.333-1.212.464-1.85.464-.677 0-1.942-.157-2.993-1.18-.266-.258-.447-.661-.57-1.108-.32-.032-.64-.049-.96-.05zm-2.525 4.013c.539 0 .976.426.976.95v1.753c0 .525-.437.95-.976.95a.964.964 0 01-.976-.95v-1.752c0-.525.437-.951.976-.951zm5 0c.539 0 .976.426.976.95v1.753c0 .525-.437.95-.976.95a.964.964 0 01-.976-.95v-1.752c0-.525.437-.951.976-.951zM7.635 5.087c-1.05.102-1.935.438-2.385.906-.975 1.037-.765 3.668-.21 4.224.405.394 1.17.657 1.995.657h.09c.649-.013 1.785-.176 2.73-1.11.435-.41.705-1.433.675-2.47-.03-.834-.27-1.52-.63-1.813-.39-.336-1.275-.482-2.265-.394zm6.465.394c-.36.292-.6.98-.63 1.813-.03 1.037.24 2.06.675 2.47.968.957 2.136 1.104 2.776 1.11h.044c.825 0 1.59-.263 1.995-.657.555-.556.765-3.187-.21-4.224-.45-.468-1.335-.804-2.385-.906-.99-.088-1.875.058-2.265.394zM12 7.615c-.24 0-.525.015-.84.044.03.16.045.336.06.526l-.001.159a2.94 2.94 0 01-.014.25c.225-.022.425-.027.612-.028h.366c.187 0 .387.006.612.028-.015-.146-.015-.277-.015-.409.015-.19.03-.365.06-.526a9.29 9.29 0 00-.84-.044z"/></svg>
@@ -0,0 +1 @@
1
+ <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="currentColor" fill-rule="evenodd"><title>OpenCode</title><path d="M16 6H8v12h8V6zm4 16H4V2h16v20z"/></svg>
package/classes.json CHANGED
@@ -111,6 +111,7 @@
111
111
  "app-combo__value",
112
112
  "app-compact-only",
113
113
  "app-composer",
114
+ "app-composer__audience",
114
115
  "app-composer__box",
115
116
  "app-composer__capture",
116
117
  "app-composer__capture-label",
@@ -191,6 +192,7 @@
191
192
  "app-handoff__group",
192
193
  "app-handoff__head",
193
194
  "app-handoff__label",
195
+ "app-handoff__no-mark",
194
196
  "app-handoff__status",
195
197
  "app-handoff__step",
196
198
  "app-handoff__steps",
@@ -273,6 +275,13 @@
273
275
  "app-shortcuts__heading",
274
276
  "app-shortcuts__note",
275
277
  "app-shortcuts__row",
278
+ "app-signin",
279
+ "app-signin__action",
280
+ "app-signin__card",
281
+ "app-signin__card--steps",
282
+ "app-signin__foot",
283
+ "app-signin__lead",
284
+ "app-signin__logo",
276
285
  "app-skel",
277
286
  "app-skel__bar",
278
287
  "app-skel__bar--block",
@@ -331,6 +340,7 @@
331
340
  "app-turn--them",
332
341
  "app-turn--you",
333
342
  "app-turn__about",
343
+ "app-turn__audience",
334
344
  "app-turn__avatar",
335
345
  "app-turn__avatar--alis",
336
346
  "app-turn__bubble",
@@ -440,6 +450,7 @@
440
450
  "--alis-red",
441
451
  "--amber-100",
442
452
  "--amber-700",
453
+ "--attachment-preview-size",
443
454
  "--background",
444
455
  "--band-bottom",
445
456
  "--band-fg",
@@ -4,11 +4,12 @@ A file, recording or queued message waiting in the composer's tray, and the same
4
4
 
5
5
  ## Use / don't use
6
6
 
7
- - **In [AppComposer](AppComposer.md)'s tray**, and in a sent message, where it opens the file. 232px wide, 56 high, `radius-lg` (16: concentric with the composer's corner, 28 − 12), on `surface-container-low`.
7
+ - **In [AppComposer](AppComposer.md)'s tray**, and in a sent message, where it opens the file. 232px wide, at least 56 high (growing for touch controls), `radius-lg` (16: concentric with the composer's corner, 28 − 12), on `surface-container-low`.
8
8
  - **A tile, not a chip.** A file needs a type, a size, progress, an error and a retry, and a chip can't hold them. Chips stay for the composer's context, so the two never read alike.
9
9
  - **No colour for types.** The glyph sits in ink on white: a PDF isn't red and an image isn't blue. Glyphs: `description` (a document), `slideshow`, `table` (a sheet), `graphic_eq` (audio), `movie`, `screen_record` (a screen capture), `draft` (anything else).
10
- - **An image shows itself**: 56 square, the picture, remove on top.
11
- - **States**: ready (type · size on the meta line); uploading (a 2px `primary` bar along the bottom edge); failed ("Didn't upload" in `error`, with retry); not accepted ("Can't be read here" in `error`, no retry, and the composer's line lists what works).
10
+ - **An image shows itself**: `attachment-preview-size` square, the picture, remove on top. Its image clips to the tile; the control and its focus ring stay inside it.
11
+ - **States** follow § Upload lifecycle. Transfer progress is a 2px `on-surface` bar, like [AppProgress](AppProgress.md); it is not an action, so never `primary`.
12
+ - **Controls have real space**: retry, cancel, edit and remove use `touch-target` for both dimensions (32px, 48 on touch). A tile with two controls grows wider; the tile grows taller for touch. Do not shrink controls, overlap their hit areas or let the tile clip a target or focus ring. An ellipsised name keeps its full text in the accessible name and `title`.
12
13
  - **A thing** opens what it names: the whole tile is the link, with no button in it. Its glyph names the kind, in ink, always a Material Symbol (a capability mark names a tool, not an object): `videocam` a meeting, `edit_note` its notes, `record_voice_over` an interview, `monitor_heart` diagnostics, `extension` a skill, `assignment` an issue, `terminal` an agent session. Its name is the label; the meta line is where it lives and its state: "Google Meet · recording", "Linear · BUI-29", "Diagnostics · 2 min ago". A provider's logo never replaces the glyph.
13
14
  - **Inside the product it opens in place; outside, in a new tab, and says so**: a 16px `open_in_new` at the tile's end (`.app-attachment__external`), and "opens in a new tab" in its accessible name.
14
15
  - **A file Alis made** stands in the reply where Alis put it, 320 wide (the full column on a phone), and opens [AppFilePane](AppFilePane.md) beside the conversation: the whole tile is a `<button>` with `aria-expanded`, nothing inside it, and no Download (that's in the pane). The label is Alis's description of the file, or else its name; the meta line its kind and size ("HTML page · 6 KB"). Glyphs: `web` an HTML page, `article` Markdown, `code` code, `text_snippet` plain text, `shapes` an SVG; a PDF, a CSV and anything else as above. An image Alis made shows itself, as any image does, and opens in the pane. No thumbnail of a page: it would mean running the page in every tile.
@@ -17,42 +18,93 @@ A file, recording or queued message waiting in the composer's tray, and the same
17
18
  - **Gone** (`is-gone`, deleted since): a `div`, not pressable and with no state layer; the meta line says "Deleted", in ink, and the glyph sits on an outline. Not red: nothing failed.
18
19
  - **A queued message** (`app-attachment--message`) takes the tray's full width: `schedule`, the text, "Sends when Alis finishes", edit and remove.
19
20
 
21
+ ## Upload lifecycle
22
+
23
+ The product supplies allowed file kinds, size/count limits and concurrency. State
24
+ belongs to a file in one conversation's draft, never to a global attachment tray.
25
+
26
+ | State | What it says | Available action |
27
+ | --- | --- | --- |
28
+ | Queued | **Waiting to upload**, with the file's name and size; no percentage | Remove |
29
+ | Uploading | **Uploading · 48%** when byte progress is known, plus a labelled determinate bar; otherwise **Uploading** without a made-up percentage | Cancel upload |
30
+ | Processing | **Processing** after all bytes transfer, until the service confirms the file is usable; no completed progress bar | Cancel upload |
31
+ | Ready | Type · size; a local thumbnail for an image | Remove |
32
+ | Failed | **Didn't upload**, or **Couldn't process** when transfer succeeded | Retry and Remove |
33
+ | Cancelled | **Upload cancelled**; no progress or error colour | Retry and Remove |
34
+ | Not accepted | The actionable reason, such as **Larger than 10 MiB** or **This file type isn't supported** | Remove; no retry until the input changes |
35
+
36
+ - **100% is not Ready.** Enable Send only after every retained file is Ready and there is text or at least one file. A failed or cancelled tile blocks Send until retried or removed. The composer stays writable.
37
+ - **Partial failure** stays on the affected tile; ready files and text are kept. Retry only that file, using a new attempt identity under its stable draft-file identity. Never upload the entire tray again.
38
+ - **Cancel stops the attempt and keeps its tile. Remove drops the tile.** Abort the request if possible; ignore late progress/completion from either an aborted attempt or a removed tile. Release local previews when removed, sent, discarded or signed out. Cleanup of remote temporary files belongs to the service.
39
+ - **Switching conversations** restores that conversation's draft, files and audience. Completion may update its own draft in the background, never whichever conversation is now open. Signing out clears local previews and work belonging to that session.
40
+ - **Picker, paste and drop** enter the same queue and validation path. Handle file paste without swallowing an ordinary text paste; prevent a file drop from navigating away. Reject unsupported or oversized files with the reason on their tile. Do not silently send, discard or truncate the other files.
41
+ - **Announce transitions, not every byte.** Use one persistent status region for the tray; announce queued, failed and ready counts. A determinate bar has an accessible name and `aria-valuenow`; Processing has words, not a fake percentage. Keep each control's accessible name specific to its file.
42
+
20
43
  ## Markup
21
44
 
22
45
  ```html
23
46
  <!-- Ready -->
24
47
  <div class="app-attachment">
25
48
  <span class="app-attachment__glyph"><span class="app-icon" aria-hidden="true">description</span></span>
26
- <span class="app-attachment__text"><span class="text-label">Q3 pricing interviews.pdf</span><span class="text-meta">PDF · 2.4 MB</span></span>
27
- <button type="button" class="app-icon-btn app-state" aria-label="Remove Q3 pricing interviews.pdf" title="Remove"><span class="app-icon" aria-hidden="true">close</span></button>
49
+ <span class="app-attachment__text"><span class="text-label" title="Q3 pricing interviews.pdf">Q3 pricing interviews.pdf</span><span class="text-meta">PDF · 2.4 MB</span></span>
50
+ <button type="button" class="app-icon-btn app-state app-target" aria-label="Remove Q3 pricing interviews.pdf" title="Remove"><span class="app-icon" aria-hidden="true">close</span></button>
28
51
  </div>
29
52
 
30
53
  <!-- Uploading -->
31
54
  <div class="app-attachment">
32
55
  <span class="app-attachment__glyph"><span class="app-icon" aria-hidden="true">slideshow</span></span>
33
- <span class="app-attachment__text"><span class="text-label">Board deck v7.pptx</span><span class="text-meta">PowerPoint · 18 MB</span></span>
34
- <button type="button" class="app-icon-btn app-state" aria-label="Remove Board deck v7.pptx" title="Remove"><span class="app-icon" aria-hidden="true">close</span></button>
56
+ <span class="app-attachment__text"><span class="text-label" title="Board deck v7.pptx">Board deck v7.pptx</span><span class="text-meta">Uploading · 62%</span></span>
57
+ <button type="button" class="app-icon-btn app-state app-target" aria-label="Cancel upload of Board deck v7.pptx" title="Cancel upload"><span class="app-icon" aria-hidden="true">close</span></button>
35
58
  <span class="app-attachment__bar" role="progressbar" aria-label="Uploading Board deck v7.pptx" aria-valuemin="0" aria-valuemax="100" aria-valuenow="62"><span style="width:62%"></span></span>
36
59
  </div>
37
60
 
38
61
  <!-- Failed -->
39
62
  <div class="app-attachment is-error">
40
63
  <span class="app-attachment__glyph"><span class="app-icon" aria-hidden="true">error</span></span>
41
- <span class="app-attachment__text"><span class="text-label">Customer list.xlsx</span><span class="text-meta">Didn't upload</span></span>
42
- <button type="button" class="app-icon-btn app-state" aria-label="Retry Customer list.xlsx" title="Retry"><span class="app-icon" aria-hidden="true">refresh</span></button>
43
- <button type="button" class="app-icon-btn app-state" aria-label="Remove Customer list.xlsx" title="Remove"><span class="app-icon" aria-hidden="true">close</span></button>
64
+ <span class="app-attachment__text"><span class="text-label" title="Customer list.xlsx">Customer list.xlsx</span><span class="text-meta">Didn't upload</span></span>
65
+ <button type="button" class="app-icon-btn app-state app-target" aria-label="Retry Customer list.xlsx" title="Retry"><span class="app-icon" aria-hidden="true">refresh</span></button>
66
+ <button type="button" class="app-icon-btn app-state app-target" aria-label="Remove Customer list.xlsx" title="Remove"><span class="app-icon" aria-hidden="true">close</span></button>
67
+ </div>
68
+
69
+ <!-- Queued upload -->
70
+ <div class="app-attachment" role="group" aria-label="Browser screenshot.png, waiting to upload">
71
+ <span class="app-attachment__glyph"><span class="app-icon" aria-hidden="true">image</span></span>
72
+ <span class="app-attachment__text"><span class="text-label" title="Browser screenshot.png">Browser screenshot.png</span><span class="text-meta">Waiting to upload</span></span>
73
+ <button type="button" class="app-icon-btn app-state app-target" aria-label="Remove Browser screenshot.png" title="Remove"><span class="app-icon" aria-hidden="true">close</span></button>
74
+ </div>
75
+
76
+ <!-- Processing upload -->
77
+ <div class="app-attachment" role="group" aria-label="Browser screenshot.png, processing">
78
+ <span class="app-attachment__glyph"><span class="app-icon" aria-hidden="true">image</span></span>
79
+ <span class="app-attachment__text"><span class="text-label" title="Browser screenshot.png">Browser screenshot.png</span><span class="text-meta">Processing</span></span>
80
+ <button type="button" class="app-icon-btn app-state app-target" aria-label="Cancel upload of Browser screenshot.png" title="Cancel upload"><span class="app-icon" aria-hidden="true">close</span></button>
81
+ </div>
82
+
83
+ <!-- Cancelled upload -->
84
+ <div class="app-attachment" role="group" aria-label="Browser screenshot.png, upload cancelled">
85
+ <span class="app-attachment__glyph"><span class="app-icon" aria-hidden="true">image</span></span>
86
+ <span class="app-attachment__text"><span class="text-label" title="Browser screenshot.png">Browser screenshot.png</span><span class="text-meta">Upload cancelled</span></span>
87
+ <button type="button" class="app-icon-btn app-state app-target" aria-label="Retry Browser screenshot.png" title="Retry"><span class="app-icon" aria-hidden="true">refresh</span></button>
88
+ <button type="button" class="app-icon-btn app-state app-target" aria-label="Remove Browser screenshot.png" title="Remove"><span class="app-icon" aria-hidden="true">close</span></button>
89
+ </div>
90
+
91
+ <!-- File not accepted -->
92
+ <div class="app-attachment is-error" role="group" aria-label="Browser screenshot.png, larger than 10 mib">
93
+ <span class="app-attachment__glyph"><span class="app-icon" aria-hidden="true">image</span></span>
94
+ <span class="app-attachment__text"><span class="text-label" title="Browser screenshot.png">Browser screenshot.png</span><span class="text-meta">Larger than 10 MiB</span></span>
95
+ <button type="button" class="app-icon-btn app-state app-target" aria-label="Remove Browser screenshot.png" title="Remove"><span class="app-icon" aria-hidden="true">close</span></button>
44
96
  </div>
45
97
 
46
98
  <!-- An image -->
47
99
  <div class="app-attachment app-attachment--image" role="group" aria-label="Churn chart.png">
48
100
  <img src="…" alt="">
49
- <button type="button" class="app-icon-btn app-state" aria-label="Remove Churn chart.png" title="Remove"><span class="app-icon" aria-hidden="true">close</span></button>
101
+ <button type="button" class="app-icon-btn app-state app-target" aria-label="Remove Churn chart.png" title="Remove"><span class="app-icon" aria-hidden="true">close</span></button>
50
102
  </div>
51
103
 
52
104
  <!-- A thing: the whole tile opens it -->
53
105
  <a class="app-attachment app-state" href="…" target="_blank" rel="noopener noreferrer" aria-label="Call with Jan, Google Meet, opens in a new tab">
54
106
  <span class="app-attachment__glyph"><span class="app-icon" aria-hidden="true">videocam</span></span>
55
- <span class="app-attachment__text"><span class="text-label">Call with Jan</span><span class="text-meta">Google Meet · recording</span></span>
107
+ <span class="app-attachment__text"><span class="text-label" title="Call with Jan">Call with Jan</span><span class="text-meta">Google Meet · recording</span></span>
56
108
  <span class="app-icon app-attachment__external" aria-hidden="true">open_in_new</span>
57
109
  </a>
58
110
  <!-- Inside the product: no target, no open_in_new -->
@@ -60,38 +112,38 @@ A file, recording or queued message waiting in the composer's tray, and the same
60
112
  <!-- A file Alis made, in Alis's prose; is-selected while it is open in the pane -->
61
113
  <button type="button" class="app-attachment app-state" aria-expanded="false" aria-controls="file-pane">
62
114
  <span class="app-attachment__glyph"><span class="app-icon" aria-hidden="true">web</span></span>
63
- <span class="app-attachment__text"><span class="text-label">Pricing page</span><span class="text-meta">HTML page · 6 KB</span></span>
115
+ <span class="app-attachment__text"><span class="text-label" title="Pricing page">Pricing page</span><span class="text-meta">HTML page · 6 KB</span></span>
64
116
  </button>
65
117
 
66
118
  <!-- One that can't be shown: it downloads -->
67
119
  <a class="app-attachment app-state" href="…" download aria-label="Interview recordings, ZIP archive, 412 MB, downloads">
68
120
  <span class="app-attachment__glyph"><span class="app-icon" aria-hidden="true">folder_zip</span></span>
69
- <span class="app-attachment__text"><span class="text-label">Interview recordings</span><span class="text-meta">ZIP archive · 412 MB</span></span>
121
+ <span class="app-attachment__text"><span class="text-label" title="Interview recordings">Interview recordings</span><span class="text-meta">ZIP archive · 412 MB</span></span>
70
122
  <span class="app-icon app-attachment__external" aria-hidden="true">download</span>
71
123
  </a>
72
124
 
73
125
  <!-- Gone since -->
74
126
  <div class="app-attachment is-gone" role="group" aria-label="Pricing page, deleted">
75
127
  <span class="app-attachment__glyph"><span class="app-icon" aria-hidden="true">web</span></span>
76
- <span class="app-attachment__text"><span class="text-label">Pricing page</span><span class="text-meta">Deleted</span></span>
128
+ <span class="app-attachment__text"><span class="text-label" title="Pricing page">Pricing page</span><span class="text-meta">Deleted</span></span>
77
129
  </div>
78
130
 
79
131
  <!-- A queued message -->
80
132
  <div class="app-attachment app-attachment--message">
81
133
  <span class="app-attachment__glyph"><span class="app-icon" aria-hidden="true">schedule</span></span>
82
- <span class="app-attachment__text"><span class="text-label">Also check the EU accounts.</span><span class="text-meta">Sends when Alis finishes</span></span>
83
- <button type="button" class="app-icon-btn app-state" aria-label="Edit" title="Edit"><span class="app-icon" aria-hidden="true">edit</span></button>
84
- <button type="button" class="app-icon-btn app-state" aria-label="Remove" title="Remove"><span class="app-icon" aria-hidden="true">close</span></button>
134
+ <span class="app-attachment__text"><span class="text-label" title="Also check the EU accounts.">Also check the EU accounts.</span><span class="text-meta">Sends when Alis finishes</span></span>
135
+ <button type="button" class="app-icon-btn app-state app-target" aria-label="Edit" title="Edit"><span class="app-icon" aria-hidden="true">edit</span></button>
136
+ <button type="button" class="app-icon-btn app-state app-target" aria-label="Remove" title="Remove"><span class="app-icon" aria-hidden="true">close</span></button>
85
137
  </div>
86
138
  ```
87
139
 
88
140
  ## Behaviour you must supply
89
141
 
90
- - Update the bar's width and `aria-valuenow` as the upload runs; remove the bar when it's done.
91
- - Retry restarts the upload; remove drops the tile and returns focus to the editor.
142
+ - Drive § Upload lifecycle, including transfer versus processing; change the label, bar and actions together. Keep the full file name available when it is truncated.
143
+ - Cancel invalidates the current attempt; retry starts only that file; remove drops it. Keep keyboard focus on the next available tile control, or return it to the editor when the tile leaves.
92
144
  - Edit on a queued message moves its text back into the editor and drops the tile.
93
145
  - In a sent message, the tile opens the file (wrap the glyph and text in the link or button); no remove. Sent tiles stack right above your bubble ([AppTurn](AppTurn.md)).
94
146
 
95
147
  ## Classes
96
148
 
97
- `.app-attachment`, `.app-attachment--image`, `.app-attachment--message`, `.is-error`, `.is-selected`, `.is-gone`, `.app-attachment__glyph`, `.app-attachment__text`, `.app-attachment__bar`, with `.app-icon-btn` and `.app-state` on its buttons.
149
+ `.app-attachment`, `.app-attachment--image`, `.app-attachment--message`, `.is-error`, `.is-selected`, `.is-gone`, `.app-attachment__glyph`, `.app-attachment__text`, `.app-attachment__bar`, with `.app-icon-btn`, `.app-state` and `.app-target` on its buttons.
@@ -14,6 +14,7 @@ Where you write to Alis, an agent or a person. One floating surface with three b
14
14
  |---|---|---|
15
15
  | **Capture** (top, only while a capture runs beside the conversation) | The capture bar: a thumbnail of what's captured, the red dot and *Recording*, the time, Pause, ⋯ and Stop recording, divided by a hairline (§ A capture beside the conversation). Above an ask | The product decides what it captures and what ⋯ holds |
16
16
  | **Ask** (top, only while Alis or a person is waiting on you) | The decision they need: an [AppAsk](AppAsk.md), above the tray, divided by a hairline | The product writes it |
17
+ | **Audience** (only when a responder can write internally or to a customer) | A labelled choice and its recipient, always visible while composing (§ Message audience). Below an ask, above the tray | The product supplies the permitted audiences and recipient |
17
18
  | **Tray** (top, only when something's in it) | What goes with *this message*: [AppAttachment](AppAttachment.md)s (files, screen captures), a queued message, the drop target | The product decides which files and sizes |
18
19
  | **Editor** | Body type, 16/24. Grows to eight lines, then scrolls inside itself. The placeholder says what to write | The product writes the placeholder |
19
20
  | **Suggestions** (only while you type `/` or `@`) | An [AppMenu](AppMenu.md) band right above the editor, divided by a hairline: commands, or people and things to mention. Below an open ask | The product supplies the commands and what can be mentioned |
@@ -33,7 +34,7 @@ Where you write to Alis, an agent or a person. One floating surface with three b
33
34
  | Empty, mic only | `mic` "Dictate" or "Record a voice note" | none | Placeholder |
34
35
  | Empty, no voice | `arrow_upward` "Send", disabled | none | Placeholder |
35
36
  | Something to send (text or a staged file) | `arrow_upward` "Send" | none: the voice controls leave | Live |
36
- | Uploading, or a tile failed | "Send", disabled; the line says why | none | Live |
37
+ | Queued, uploading, processing, or a tile failed | "Send", disabled; the line says why | none | Live |
37
38
  | Alis is working | `stop` (filled glyph) "Stop" | none | Stays writable; the draft is kept |
38
39
  | Working, queue on, with text | `arrow_upward` "Send when Alis finishes" | `stop_circle` "Stop" | Live |
39
40
  | Dictating | `check` "Done, keep the text" | the row is the recording bar | Words arrive as you speak |
@@ -47,6 +48,32 @@ Where you write to Alis, an agent or a person. One floating surface with three b
47
48
 
48
49
  **Two jobs, one slot:** the commit stays in the slot and the other steps aside as a plain icon button (Stop beside a queued Send, End beside a Send typed into a call). Send is `arrow_upward`, never the paper plane ([icons.md](../rules/icons.md)). Ending a call is cyan like every commit, never red.
49
50
 
51
+ ## Message audience
52
+
53
+ For responders in a conversation with both team-only and customer messages:
54
+
55
+ - **A new draft starts as Internal note.** Choosing **Note to customer** is deliberate and applies to this message only. Keep the choice and recipient visible in `.app-composer__audience`, above the tray and editor; it is never a context chip, a colour alone or a setting hidden in Add.
56
+ - Use a labelled [AppSelect](AppSelect.md): **Message visibility**, with Internal note and Note to customer. This is a choice attached to a message, not a filter on the thread. Beside it, say **Only your team** or **To Thandi Mokoena** (the actual recipient, or **To the customer** when unnamed). The editor's accessible name and placeholder, and Send's accessible name, repeat the chosen action: **Internal note** / **Note to customer**, **Send internal note** / **Send note to customer**.
57
+ - **Keep the audience while editing, uploading, validating or retrying.** Capture it with the message, its recipient and attachments when submitting. A new draft resets to Internal note; retrying an earlier message uses that message's captured audience, even if the current draft is different. Never carry the customer choice into another conversation or another person's session.
58
+ - With only one permitted audience, show its words and recipient without a selector. A customer portal only composes customer-visible messages: no internal option or internal metadata. Enforce audience and access on the server; hiding controls is not authorisation.
59
+ - Ordinary internal conversations with no customer audience need no extra band. A terminal uses the same words and defaults in its composing status; its visibility shortcut changes the draft, never existing messages.
60
+
61
+ ## Delivery and retry
62
+
63
+ The draft and a submitted message have different owners. Use this lifecycle in every conversation, including attachment-only messages:
64
+
65
+ | Stage | What stays on screen | Where recovery lives |
66
+ | --- | --- | --- |
67
+ | Draft validation or an upload fails, before submission | Text, files, audience and recipient stay in the composer; no bubble is created | A field/composer validation line, or the failed attachment's retry/remove controls |
68
+ | Submission starts | Capture an immutable message with a stable submission identity. Move it into the thread immediately; start a fresh draft | The submitted turn owns its delivery state from now on |
69
+ | Delivery fails, or the response is lost | The submitted turn and its files stay; the current draft is untouched | **Didn't send · Try again** beneath that turn ([AppTurn](AppTurn.md)) |
70
+ | Delivery is confirmed | Reconcile the existing turn with the server result, including a result arriving through live updates | Remove its failure line; never append a duplicate |
71
+
72
+ - **One message, one retry location.** Never restore a submitted message to the editor and leave a failed copy in the thread. Upload failures stay on their tiles; the composer's line may explain why Send is disabled, but does not repeat the error or its retry.
73
+ - Retry the same captured payload and submission identity; prevent concurrent retries. When a timeout leaves delivery uncertain, reconcile with the service before resubmitting, or use its deduplication contract. A UI alone cannot make retries idempotent.
74
+ - Keep the captured payload until acknowledged or explicitly discarded. If local persistence fails before submission, keep the draft and explain on the line; do not clear it. If the service cannot support safe retries, say how to check delivery instead of presenting an unsafe Try again.
75
+ - A failure notice is persistent and announced once through the thread's status region. A later successful retry removes it without stealing focus from a new draft.
76
+
50
77
  ## Voice
51
78
 
52
79
  - **Two mic modes; a composer has one**, chosen by the product. **Dictate**: words land in the editor as you speak, the ones still settling in `on-surface-variant`; ✓ ends it and leaves the text to edit, never sends. **Record a voice note**: the editor hides; Send sends the note, with its transcript, as the message.
@@ -95,6 +122,56 @@ Where you write to Alis, an agent or a person. One floating surface with three b
95
122
  <p class="app-composer__line text-meta">What you put here stays in your organisation.</p>
96
123
  </div>
97
124
 
125
+ <!-- Internal note: the recipient remains visible while writing -->
126
+ <div class="app-composer">
127
+ <div class="app-composer__box">
128
+ <div class="app-composer__audience">
129
+ <div class="app-field">
130
+ <label for="audience-internal" class="app-field__label text-label">Message visibility</label>
131
+ <div class="app-field__box app-field__box--select">
132
+ <select id="audience-internal" class="app-field__select" aria-describedby="recipient-internal">
133
+ <option value="internal" selected>Internal note</option>
134
+ <option value="customer">Note to customer</option>
135
+ </select>
136
+ <span class="app-icon" aria-hidden="true">expand_more</span>
137
+ </div>
138
+ </div>
139
+ <p id="recipient-internal" class="text-meta">Only your team</p>
140
+ </div>
141
+ <div class="app-composer__editor"><textarea class="app-composer__input" rows="2" aria-label="Internal note" aria-describedby="recipient-internal" placeholder="Internal note">Check the failed request before replying.</textarea></div>
142
+ <div class="app-composer__row">
143
+ <button type="button" class="app-icon-btn app-state app-target" aria-label="Add files and more" title="Add files and more"><span class="app-icon" aria-hidden="true">add</span></button>
144
+ <span class="app-composer__spacer"></span>
145
+ <button type="button" class="app-composer__go app-state app-target" aria-label="Send internal note" title="Send internal note"><span class="app-icon" aria-hidden="true">arrow_upward</span></button>
146
+ </div>
147
+ </div>
148
+ </div>
149
+
150
+ <!-- Note to customer: the recipient remains visible while writing -->
151
+ <div class="app-composer">
152
+ <div class="app-composer__box">
153
+ <div class="app-composer__audience">
154
+ <div class="app-field">
155
+ <label for="audience-customer" class="app-field__label text-label">Message visibility</label>
156
+ <div class="app-field__box app-field__box--select">
157
+ <select id="audience-customer" class="app-field__select" aria-describedby="recipient-customer">
158
+ <option value="internal">Internal note</option>
159
+ <option value="customer" selected>Note to customer</option>
160
+ </select>
161
+ <span class="app-icon" aria-hidden="true">expand_more</span>
162
+ </div>
163
+ </div>
164
+ <p id="recipient-customer" class="text-meta">To Thandi Mokoena</p>
165
+ </div>
166
+ <div class="app-composer__editor"><textarea class="app-composer__input" rows="2" aria-label="Note to customer" aria-describedby="recipient-customer" placeholder="Note to customer">The fix is ready for you to try.</textarea></div>
167
+ <div class="app-composer__row">
168
+ <button type="button" class="app-icon-btn app-state app-target" aria-label="Add files and more" title="Add files and more"><span class="app-icon" aria-hidden="true">add</span></button>
169
+ <span class="app-composer__spacer"></span>
170
+ <button type="button" class="app-composer__go app-state app-target" aria-label="Send note to customer" title="Send note to customer"><span class="app-icon" aria-hidden="true">arrow_upward</span></button>
171
+ </div>
172
+ </div>
173
+ </div>
174
+
98
175
  <!-- Something to send: a staged file and text; Send -->
99
176
  <div class="app-composer">
100
177
  <div class="app-composer__box">
@@ -196,8 +273,8 @@ Where you write to Alis, an agent or a person. One floating surface with three b
196
273
  <!-- Dragging a file over: the tray opens as the drop target -->
197
274
  <div class="app-composer__tray"><div class="app-composer__drop drop-target text-label">Drop to add to your message</div></div>
198
275
 
199
- <!-- The line: an error with its action -->
200
- <p class="app-composer__line text-meta is-error"><span class="app-icon" aria-hidden="true">error</span>Couldn't send. Your message is still here. <button type="button" class="app-composer__line-action">Try again</button></p>
276
+ <!-- Before submission: the draft stays in the editor -->
277
+ <p class="app-composer__line text-meta is-error"><span class="app-icon" aria-hidden="true">error</span>This message is too long. Shorten it before sending.</p>
201
278
 
202
279
  <!-- Locked -->
203
280
  <div class="app-composer is-locked"><!-- box with the editor only; the line says why --></div>
@@ -212,9 +289,9 @@ Where you write to Alis, an agent or a person. One floating surface with three b
212
289
  - **Live**: toggle `is-alis` on `.app-composer` while Alis speaks and `is-muted` while muted (and `aria-pressed` on the mute toggle); update the status word, which is a live region.
213
290
  - **A capture beside the conversation**: show `.app-composer__capture` while it runs and remove it when it stops; tick the timer each second (`role="timer"` is not announced every tick); feed the thumbnail the live capture (a muted `<video>` on the stream), and under `prefers-reduced-motion` a still (`<img>` or `<canvas>`) refreshed every couple of seconds; the thumbnail toggles the larger view (`aria-expanded`), which closes on ✕, Esc or a click outside and returns focus to the thumbnail; Pause toggles `is-paused` on the bar, freezes the picture, and swaps the words and Pause's label and glyph; when frames stop arriving, set `is-empty` on the thumbnail with its glyph and put the error on the line, and clear both when they return; Stop ends the capture and stages what it captured as a tile in the thread. Its buttons take an [AppTooltip](AppTooltip.md) on a phone, where they show a glyph alone. Discard asks first ([AppDialog](AppDialog.md)). The bar never takes focus by itself, and after Stop or Discard focus returns to the editor.
214
291
  - **Drop**: show `.app-composer__drop` in the tray while a file is dragged over the composer; on drop, stage an [AppAttachment](AppAttachment.md).
215
- - **A send that fails** keeps the draft in the editor and says so on the line with Try again.
292
+ - **Delivery** follows § Delivery and retry: before submission the draft stays; after submission, the turn owns any failure and retry. A new draft never changes the audience or files of a retry.
216
293
  - Return focus to the editor after sending, after dictation and after a call.
217
294
 
218
295
  ## Classes
219
296
 
220
- `.app-composer`, `.is-locked`, `.app-composer__go--plain`, `.is-alis`, `.is-muted`, `.app-composer__light`, `.app-composer__box`, `.app-composer__tray`, `.app-composer__drop`, `.app-composer__editor`, `.app-composer__input`, `.app-composer__interim`, `.app-composer__row`, `.app-composer__spacer`, `.app-composer__go`, `.app-composer__rec`, `.app-composer__meter`, `.app-composer__timer`, `.app-composer__capture`, `.is-paused`, `.app-composer__capture-label`, `.app-capture-thumb`, `.is-empty`, `.app-capture-peek`, `.app-capture-peek__head`, `.app-capture-peek__title`, `.app-capture-peek__frame`, `.app-capture-peek__note`, `.app-composer__status`, `.app-composer__line`, `.is-error`, `.app-composer__line-action`, with `.drop-target` on the drop, `.app-state` on every button, `.app-target` on the icon buttons and the capture bar's buttons, `.app-btn--error` on Stop recording, and `.app-compact-only` on Pause's glyph.
297
+ `.app-composer`, `.app-composer__audience`, `.is-locked`, `.app-composer__go--plain`, `.is-alis`, `.is-muted`, `.app-composer__light`, `.app-composer__box`, `.app-composer__tray`, `.app-composer__drop`, `.app-composer__editor`, `.app-composer__input`, `.app-composer__interim`, `.app-composer__row`, `.app-composer__spacer`, `.app-composer__go`, `.app-composer__rec`, `.app-composer__meter`, `.app-composer__timer`, `.app-composer__capture`, `.is-paused`, `.app-composer__capture-label`, `.app-capture-thumb`, `.is-empty`, `.app-capture-peek`, `.app-capture-peek__head`, `.app-capture-peek__title`, `.app-capture-peek__frame`, `.app-capture-peek__note`, `.app-composer__status`, `.app-composer__line`, `.is-error`, `.app-composer__line-action`, with `.drop-target` on the drop, `.app-state` on every button, `.app-target` on the icon buttons and the capture bar's buttons, `.app-btn--error` on Stop recording, and `.app-compact-only` on Pause's glyph.
@@ -58,7 +58,9 @@ Under the steps of an agent that runs commands, when the way back needs the Alis
58
58
  - **None yet**: "[Verb] it with your agent" opens the list, in the place the steps would open.
59
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
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.
61
+ - **Each agent's mark** is its file in `assets/Harness`, inline, in `currentColor`: one colour, the ink any leading icon takes where it sits (a row's `on-surface-variant`, a button's own), at the row's icon size ([icons.md](../rules/icons.md)). Claude Code takes Claude's mark. 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.
62
+ - **Alis's row leads with the Alis mark**, in its own red ([AlisMark](AlisMark.md)): never recoloured to match the others.
63
+ - **"Another agent" has no mark.** Its lead stays empty at the mark's width (`.app-handoff__no-mark`), so every row's words start on one line.
62
64
 
63
65
  ## The prompt
64
66
 
@@ -79,12 +81,14 @@ Under the steps of an agent that runs commands, when the way back needs the Alis
79
81
  <h3 class="app-handoff__group text-label" id="g-saves">Saves the draft to this project</h3>
80
82
  <div class="app-list" role="list" aria-labelledby="g-saves">
81
83
  <div class="app-row app-state app-row--divided" role="listitem">
84
+ <span class="app-icon app-icon--mark app-row__icon" aria-hidden="true"><!-- assets/Brand/alis.svg, its own red --></span>
82
85
  <span class="app-row__text">
83
86
  <button type="button" class="app-row__hit text-object-title">Plan it with Alis</button>
84
87
  <span class="text-supporting">Opens a chat · Nothing to set up</span>
85
88
  </span>
86
89
  </div>
87
90
  <div class="app-row app-state app-row--divided" role="listitem">
91
+ <span class="app-icon app-icon--mark app-row__icon" aria-hidden="true"><!-- assets/Harness/claude.svg --></span>
88
92
  <span class="app-row__text">
89
93
  <button type="button" class="app-row__hit text-object-title">Plan it with Claude Code</button>
90
94
  <span class="text-supporting">Needs the Alis CLI</span>
@@ -95,6 +99,7 @@ Under the steps of an agent that runs commands, when the way back needs the Alis
95
99
  <h3 class="app-handoff__group text-label" id="g-paste">You paste the questions back here</h3>
96
100
  <div class="app-list" role="list" aria-labelledby="g-paste">
97
101
  <div class="app-row app-state app-row--divided" role="listitem">
102
+ <span class="app-icon app-icon--mark app-row__icon" aria-hidden="true"><!-- assets/Harness/claude.svg --></span>
98
103
  <span class="app-row__text">
99
104
  <button type="button" class="app-row__hit text-object-title">Plan it with Claude</button>
100
105
  <span class="text-supporting">Needs a Claude account</span>
@@ -102,6 +107,7 @@ Under the steps of an agent that runs commands, when the way back needs the Alis
102
107
  <span class="app-row__trailing"><span class="app-icon" aria-hidden="true">chevron_right</span></span>
103
108
  </div>
104
109
  <div class="app-row app-state app-row--divided" role="listitem">
110
+ <span class="app-handoff__no-mark" aria-hidden="true"></span>
105
111
  <span class="app-row__text">
106
112
  <button type="button" class="app-row__hit text-object-title">Plan it with another agent</button>
107
113
  <span class="text-supporting">Any agent that takes a prompt</span>
@@ -150,7 +156,7 @@ Under the steps of an agent that runs commands, when the way back needs the Alis
150
156
  <div class="app-handoff__body">
151
157
  <h3 class="app-handoff__label text-label">Use it in Claude</h3>
152
158
  <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>
159
+ <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"><span class="app-icon app-icon--mark" aria-hidden="true"><!-- assets/Harness/claude.svg --></span>Open Claude<span class="app-icon app-icon--trailing" aria-hidden="true">open_in_new</span></a>
154
160
  </div>
155
161
  </div>
156
162
  </li>
@@ -180,4 +186,4 @@ Under the steps of an agent that runs commands, when the way back needs the Alis
180
186
 
181
187
  ## Classes
182
188
 
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.
189
+ `.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__no-mark` (the empty lead of the row with no mark). A mark is `.app-icon--mark` holding the inline SVG. `.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.