@andorra-labs/code 0.1.10 → 0.1.11

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.
Files changed (155) hide show
  1. package/README.md +28 -208
  2. package/THIRD_PARTY_NOTICES.md +15 -0
  3. package/dist/src/agent-execution.js +36 -0
  4. package/dist/src/app-server/protocol.d.ts +1 -0
  5. package/dist/src/app-server.d.ts +34 -1
  6. package/dist/src/app-server.js +264 -54
  7. package/dist/src/automation-service.js +1 -1
  8. package/dist/src/browser-session.d.ts +8 -0
  9. package/dist/src/browser-session.js +27 -1
  10. package/dist/src/browser-ui/app.js +237 -15
  11. package/dist/src/browser-ui/index.html +5 -5
  12. package/dist/src/browser-ui/style.css +110 -65
  13. package/dist/src/browser-ui/tokens.css +27 -26
  14. package/dist/src/coding-tools.d.ts +24 -0
  15. package/dist/src/coding-tools.js +71 -8
  16. package/dist/src/command-screens.js +1 -1
  17. package/dist/src/commands.js +1 -1
  18. package/dist/src/completion-gates.d.ts +42 -7
  19. package/dist/src/completion-gates.js +55 -9
  20. package/dist/src/completion.d.ts +8 -0
  21. package/dist/src/completion.js +19 -1
  22. package/dist/src/dashboard-view.js +2 -2
  23. package/dist/src/deadline.js +4 -0
  24. package/dist/src/graph-manager-chat.js +13 -13
  25. package/dist/src/graph-runner.js +39 -2
  26. package/dist/src/graph-server.js +9 -9
  27. package/dist/src/graph-sync.d.ts +8 -0
  28. package/dist/src/graph-sync.js +54 -3
  29. package/dist/src/graph-tool.js +1 -1
  30. package/dist/src/graph-ui/app.js +262 -93
  31. package/dist/src/graph-ui/controls.css +43 -22
  32. package/dist/src/graph-ui/controls.js +31 -1
  33. package/dist/src/graph-ui/embed.js +62 -13
  34. package/dist/src/graph-ui/icons.js +4 -0
  35. package/dist/src/graph-ui/index.html +3 -3
  36. package/dist/src/graph-ui/manager-state.js +2 -2
  37. package/dist/src/graph-ui/manager.css +19 -18
  38. package/dist/src/graph-ui/manager.js +11 -11
  39. package/dist/src/graph-ui/skill-picker.js +1 -1
  40. package/dist/src/graph-ui/studio-canvas.js +8 -8
  41. package/dist/src/graph-ui/studio.css +18 -15
  42. package/dist/src/graph-ui/studio.js +92 -35
  43. package/dist/src/graph-ui/style.css +122 -79
  44. package/dist/src/graph-ui/theme.js +2 -2
  45. package/dist/src/graph-ui/tokens.css +33 -29
  46. package/dist/src/graphs.d.ts +3 -2
  47. package/dist/src/graphs.js +3 -2
  48. package/dist/src/membership-errors.d.ts +7 -1
  49. package/dist/src/membership-errors.js +9 -3
  50. package/dist/src/pull-requests.d.ts +42 -6
  51. package/dist/src/pull-requests.js +11 -3
  52. package/dist/src/react-runtime.js +121 -14
  53. package/dist/src/read-document-doc.d.ts +20 -0
  54. package/dist/src/read-document-doc.js +524 -0
  55. package/dist/src/read-document-docx.d.ts +21 -0
  56. package/dist/src/read-document-docx.js +584 -0
  57. package/dist/src/read-document-text.d.ts +29 -0
  58. package/dist/src/read-document-text.js +67 -0
  59. package/dist/src/read-document-tool.d.ts +48 -0
  60. package/dist/src/read-document-tool.js +162 -0
  61. package/dist/src/read-document.d.ts +78 -0
  62. package/dist/src/read-document.js +353 -0
  63. package/dist/src/read-image.d.ts +29 -2
  64. package/dist/src/read-image.js +42 -17
  65. package/dist/src/runtime.d.ts +19 -0
  66. package/dist/src/runtime.js +10 -1
  67. package/dist/src/session-changes.d.ts +6 -1
  68. package/dist/src/session-changes.js +13 -5
  69. package/dist/src/side-panel.d.ts +6 -1
  70. package/dist/src/side-panel.js +12 -10
  71. package/dist/src/skills/bundled/create-skill/SKILL.md +1 -1
  72. package/dist/src/skills/bundled/diagram/SKILL.md +1 -1
  73. package/dist/src/skills/bundled/graph-manager/SKILL.md +37 -3
  74. package/dist/src/skills/bundled/graph-manager/patterns.md +27 -0
  75. package/dist/src/skills/bundled/provenance.json +4 -4
  76. package/dist/src/skills/runtime-skills.js +3 -3
  77. package/dist/src/stall-recovery.d.ts +6 -2
  78. package/dist/src/stall-recovery.js +7 -2
  79. package/dist/src/terminal-ui.js +2 -2
  80. package/dist/src/time-limit.d.ts +53 -0
  81. package/dist/src/time-limit.js +79 -0
  82. package/dist/src/tools.js +92 -7
  83. package/dist/src/transcript.js +1 -1
  84. package/dist/src/types.d.ts +6 -0
  85. package/dist/src/usage-analytics.d.ts +3 -1
  86. package/dist/src/usage-analytics.js +16 -2
  87. package/package.json +6 -26
  88. package/docs/README.md +0 -36
  89. package/docs/agents/README.md +0 -62
  90. package/docs/agents/install-for-agents.md +0 -56
  91. package/docs/agents/mcp-server.md +0 -212
  92. package/docs/agents/subagent-mode.md +0 -149
  93. package/docs/concepts/README.md +0 -47
  94. package/docs/concepts/jev-actionable-routing.md +0 -113
  95. package/docs/concepts/jev-decision-thresholds.md +0 -412
  96. package/docs/concepts/jev-efficiency.md +0 -217
  97. package/docs/concepts/jev-eval-2026-11-01.md +0 -78
  98. package/docs/concepts/limits.md +0 -52
  99. package/docs/concepts/memory.md +0 -10
  100. package/docs/concepts/security.md +0 -50
  101. package/docs/concepts/workspace-instructions.md +0 -29
  102. package/docs/getting-started/README.md +0 -82
  103. package/docs/getting-started/accounts.md +0 -78
  104. package/docs/getting-started/configure-providers.md +0 -132
  105. package/docs/guides/README.md +0 -13
  106. package/docs/guides/browser.md +0 -39
  107. package/docs/guides/desktop-app.md +0 -414
  108. package/docs/guides/extensions.md +0 -102
  109. package/docs/guides/graph-builder.md +0 -116
  110. package/docs/guides/headless.md +0 -46
  111. package/docs/guides/tui.md +0 -75
  112. package/docs/guides/update.md +0 -70
  113. package/docs/guides/web-search.md +0 -51
  114. package/docs/guides/windows-code-signing.md +0 -319
  115. package/docs/llms.txt +0 -45
  116. package/docs/reference/README.md +0 -7
  117. package/docs/reference/cli.md +0 -76
  118. package/docs/reference/config.md +0 -91
  119. package/docs/reference/slash-commands.md +0 -59
  120. package/docs/superpowers/plans/2026-11-01-claude-console-sign-in.md +0 -111
  121. package/docs/superpowers/plans/2026-11-01-jev-node-opt-in.md +0 -910
  122. package/docs/superpowers/plans/2026-11-02-workflow-pane.md +0 -398
  123. package/docs/superpowers/plans/2026-11-06-graph-soft-delete.md +0 -125
  124. package/docs/superpowers/plans/2026-11-09-orchestrator-delegation.md +0 -295
  125. package/docs/superpowers/plans/2026-11-13-graph-manager-chat.md +0 -203
  126. package/docs/superpowers/plans/2026-11-14-jev-fair-use-pricing.md +0 -79
  127. package/docs/superpowers/specs/2026-10-31-work-line-summary-design.md +0 -50
  128. package/docs/superpowers/specs/2026-11-01-claude-console-sign-in-design.md +0 -176
  129. package/docs/superpowers/specs/2026-11-01-jev-node-opt-in-design.md +0 -164
  130. package/docs/superpowers/specs/2026-11-01-pr-section-design.md +0 -111
  131. package/docs/superpowers/specs/2026-11-02-workflow-pane-design.md +0 -130
  132. package/docs/superpowers/specs/2026-11-06-bundled-skills-design.md +0 -206
  133. package/docs/superpowers/specs/2026-11-09-orchestrator-delegation-design.md +0 -291
  134. package/docs/superpowers/specs/2026-11-13-graph-manager-chat-design.md +0 -182
  135. package/docs/superpowers/specs/2026-11-14-jev-fair-use-pricing-design.md +0 -156
  136. package/scripts/jev-efficiency-eval.mjs +0 -187
  137. package/scripts/jev-efficiency-live.mjs +0 -193
  138. package/scripts/zcode-engine-replay.mjs +0 -223
  139. package/tests/agent-centric-mcp-test-plan.md +0 -208
  140. package/tests/analytics-settings-test-plan.md +0 -165
  141. package/tests/browser-cli-smoke.mjs +0 -276
  142. package/tests/browser-test-plan.md +0 -280
  143. package/tests/chat-side-panel-test-plan.md +0 -309
  144. package/tests/decision-engine-test-plan.md +0 -163
  145. package/tests/default-active-jev-test-plan.md +0 -85
  146. package/tests/harness-extensions-test-plan.md +0 -113
  147. package/tests/jev-all-decisions-test-plan.md +0 -156
  148. package/tests/jev-efficiency/criteria.json +0 -158
  149. package/tests/jev-efficiency/workloads.mjs +0 -242
  150. package/tests/jev-efficiency-test-plan.md +0 -198
  151. package/tests/permissions-sandbox-probe.mjs +0 -74
  152. package/tests/permissions-test-plan.md +0 -191
  153. package/tests/product-telemetry-test-plan.md +0 -536
  154. package/tests/thinking-stream-preview-test-plan.md +0 -136
  155. package/tests/zcode-react-engine-test-plan.md +0 -396
@@ -1,9 +1,8 @@
1
1
  /* The browser workspace is a surface of the desktop product, so it draws on the desktop's own design
2
2
  tokens: /tokens.css is desktop/src/styles/tokens.css, copied into the build by build-assets.mjs, and
3
3
  this sheet holds no palette, measurement or motion value of its own. Dark is the first paint, as on
4
- the desktop; app.js names the appearance on the root before the page shows. Tokens the desktop is
5
- still adding (--accent-fill, --focus, --hover, --selected and their partners) are read with a
6
- fallback to the token they refine, so the page is whole before and after they land. */
4
+ the desktop; app.js names the appearance on the root before the page shows. Every token it reads
5
+ is one the desktop file defines, so none carries a fallback of its own. */
7
6
 
8
7
  /* The desktop client's face, served from this origin (the page's CSP admits no other). */
9
8
  @font-face{font-family:'Geist Sans';font-style:normal;font-weight:400;font-display:swap;src:url('/fonts/geist-sans-latin-400-normal.woff2') format('woff2')}
@@ -11,7 +10,7 @@
11
10
  @font-face{font-family:'Geist Mono';font-style:normal;font-weight:400;font-display:swap;src:url('/fonts/geist-mono-latin-400-normal.woff2') format('woff2')}
12
11
 
13
12
  *{box-sizing:border-box}
14
- body{margin:0;background:var(--bg-surface);color:var(--text);font-family:var(--font-ui);font-size:var(--type-sm);line-height:1.45;-webkit-font-smoothing:antialiased;text-rendering:optimizeLegibility;height:100dvh;display:flex;overflow:hidden}
13
+ body{margin:0;background:var(--bg-surface);color:var(--text);font-family:var(--font-ui);font-size:var(--type-sm);line-height:var(--leading-sm);-webkit-font-smoothing:antialiased;text-rendering:optimizeLegibility;height:100dvh;display:flex;overflow:hidden}
15
14
  button,input,textarea,select{font:inherit;color:inherit}
16
15
  input,textarea{caret-color:var(--text)}
17
16
  ::selection{background:var(--accent-soft)}
@@ -25,43 +24,48 @@ svg.icon{flex:none;display:block}
25
24
 
26
25
  /* Keyboard focus is one blue ring, 2px at a 2px offset. Rows in menus and lists take the highlight
27
26
  fill instead (below), the way a pointer would light them. */
28
- :focus-visible{outline:2px solid var(--focus,var(--accent));outline-offset:2px}
27
+ :focus-visible{outline:2px solid var(--focus);outline-offset:2px}
29
28
 
30
29
  /* Buttons are the desktop's: one rounded rectangle, the kind carried by the fill. Secondary is the
31
30
  control fill, primary the blue accent fill, ghost text alone. 32px takes the 8px corner, 28px the
32
- 6px one. A disabled button keeps its shape and takes the disabled ink, never a fade on top. */
31
+ 6px one. A disabled button keeps its shape and takes the disabled ink, never a fade on top: the
32
+ control fill under the disabled ink, whatever its kind. */
33
33
  button{height:var(--btn-height);padding:0 var(--space-3);border:1px solid transparent;border-radius:var(--btn-radius);background:var(--bg-control);color:var(--text);font-size:var(--type-sm);font-weight:var(--weight-strong);display:inline-flex;align-items:center;justify-content:center;gap:var(--space-2);white-space:nowrap;cursor:pointer;transition:background-color var(--dur-1) var(--ease-standard),color var(--dur-1) var(--ease-standard),transform var(--dur-1) var(--ease-standard)}
34
34
  button:hover{background:var(--bg-control-hover)}
35
35
  button:active:not(:disabled){transform:scale(.99)}
36
36
  button:disabled{color:var(--text-disabled);cursor:default}
37
37
  button:disabled:hover{background:var(--bg-control)}
38
- .primary{background:var(--accent-fill,var(--accent));color:var(--on-accent-fill,var(--on-accent))}
39
- .primary:hover{background:var(--accent-fill-hover,var(--accent-hover))}
40
- /* A disabled primary keeps its fill, faded, so the screen's commit action still reads as the action. */
41
- .primary:disabled,.primary:disabled:hover{background:var(--accent-fill,var(--accent));color:var(--on-accent-fill,var(--on-accent));opacity:.4}
38
+ .primary{background:var(--accent-fill);color:var(--on-accent-fill)}
39
+ .primary:hover{background:var(--accent-fill-hover)}
40
+ .primary:disabled,.primary:disabled:hover{background:var(--bg-control);color:var(--text-disabled)}
42
41
  .icon-button{width:var(--control-height);height:var(--control-height);padding:0;border-radius:var(--radius-sm);background:transparent;color:var(--text-2)}
43
- .icon-button:hover{background:var(--hover,var(--bg-hover));color:var(--text)}
42
+ .icon-button:hover{background:var(--hover);color:var(--text)}
44
43
  /* A button drawn on the ground it sits on stays on that ground when it cannot be used. */
45
44
  .icon-button:disabled,.icon-button:disabled:hover,.new-session:disabled:hover,.sidebar-footer button:disabled:hover,.topbar button:disabled:hover{background:transparent}
46
45
 
47
- /* Fields: a bordered box that answers focus with the focus ink on its edge. */
48
- input,textarea,select{width:100%;min-width:0;min-height:var(--input-height);padding:var(--space-1) var(--space-3);border:1px solid var(--border-strong);border-radius:var(--input-radius);background:var(--bg-input);transition:border-color var(--dur-1) var(--ease-standard)}
46
+ /* Fields are the desktop's: a bordered box on the field edge that answers focus with a neutral halo
47
+ outside that edge, never the blue (the blue is the keyboard ring on everything else). */
48
+ input,textarea,select{width:100%;min-width:0;min-height:var(--input-height);padding:var(--space-1) var(--space-3);border:1px solid var(--border-strong);border-radius:var(--input-radius);background:var(--bg-input);transition:border-color var(--dur-1) var(--ease-standard),box-shadow var(--dur-1) var(--ease-standard)}
49
49
  input:hover,select:hover{border-color:var(--text-3)}
50
- input:focus,textarea:focus,select:focus{outline:none;border-color:var(--focus,var(--text-3))}
51
- textarea{resize:none;line-height:1.6}
50
+ input:focus,textarea:focus,select:focus{outline:none;border-color:var(--border-strong);box-shadow:0 0 0 2px var(--accent-ring)}
51
+ textarea{resize:none;line-height:var(--leading-sm)}
52
52
 
53
53
  /* The rail: a flat ground (the desktop switched its glow and grain off), 28px rows on a 6px corner. */
54
54
  .sidebar{width:var(--rail-width);flex-shrink:0;background:var(--bg-rail);border-right:1px solid var(--border);display:flex;flex-direction:column;user-select:none;-webkit-user-select:none}
55
55
  .brand{height:var(--chrome-height);flex:none;display:flex;gap:var(--space-2);align-items:center;padding:0 var(--space-4);font-size:var(--type-xs);font-weight:var(--weight-strong);color:var(--text-2)}
56
56
  .brand-mark{width:18px;height:18px;object-fit:contain}
57
+ /* The name holds one line on any rail width: it gives up its tail, never a second line. */
58
+ .brand>div{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
57
59
  .brand small{font-size:var(--type-xs);font-weight:var(--weight-regular);color:var(--text-3);margin-left:6px}
58
60
  .new-session{margin:var(--space-2) var(--space-2) var(--space-1);height:var(--row-height);padding:0 var(--space-2);justify-content:flex-start;border-radius:var(--row-radius);background:transparent;color:var(--text);font-weight:var(--weight-regular)}
59
61
  .new-session svg{color:var(--text-2)}
60
- .new-session:hover{background:var(--hover,var(--rail-wash))}
62
+ .new-session:hover{background:var(--hover)}
61
63
  .search{margin:0 var(--space-2) var(--space-3)}
62
64
  .search input{min-height:var(--control-height);padding:2px 10px;font-size:var(--type-xs);border-color:var(--border);border-radius:var(--radius-sm)}
65
+ /* The quieter edge at rest must not outrank the field's focus: focused, it takes the field edge and halo. */
66
+ .search input:focus{border-color:var(--border-strong)}
63
67
  /* Labels are sentence case, 12px at 500 in the muted ink; never capitals or tracking. */
64
- .section-label{padding:0 20px var(--space-1);color:var(--text-3);font-size:var(--type-label);font-weight:var(--weight-strong);line-height:16px;display:flex;justify-content:space-between}
68
+ .section-label{padding:0 20px var(--space-1);color:var(--text-3);font-size:var(--type-label);font-weight:var(--weight-strong);line-height:var(--leading-xs);display:flex;justify-content:space-between}
65
69
  #projects{overflow:auto;flex:1;padding:var(--space-1) var(--space-2) var(--space-4)}
66
70
  .project{margin-bottom:var(--space-3);position:relative}
67
71
  /* The grip takes the rows' 16px mark column, so the folder and the session names share one edge. */
@@ -70,7 +74,7 @@ textarea{resize:none;line-height:1.6}
70
74
  .project-name svg{color:var(--text-3)}
71
75
  .project-label{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
72
76
  .project-header button{height:22px;width:22px;padding:0;background:transparent;color:var(--text-3);border-radius:var(--radius-xs)}
73
- .project-header button:hover{background:var(--hover,var(--rail-wash));color:var(--text)}
77
+ .project-header button:hover{background:var(--hover);color:var(--text)}
74
78
  /* Reordering: the grip is the group's own control — drag it, or hold it and use the arrow keys. It
75
79
  keeps the header's quietness until the header is pointed at or the grip itself takes the focus. */
76
80
  .project-header button.project-grip{width:16px;cursor:grab;opacity:.45}
@@ -80,7 +84,7 @@ textarea{resize:none;line-height:1.6}
80
84
  land: the edge itself — above or below the group under the pointer — is the exact position the
81
85
  drop takes, so the marker never promises a place the drop does not deliver. */
82
86
  .project[data-dragging] .project-header{opacity:.55}
83
- .project::before,.project::after{content:'';position:absolute;left:4px;right:4px;height:2px;border-radius:1px;background:var(--accent);opacity:0;pointer-events:none;z-index:1}
87
+ .project::before,.project::after{content:'';position:absolute;left:4px;right:4px;height:2px;border-radius:var(--radius-full);background:var(--accent);opacity:0;pointer-events:none;z-index:var(--z-raised)}
84
88
  .project::before{top:-7px}
85
89
  .project::after{bottom:-7px}
86
90
  .project[data-drop="before"]::before{opacity:1}
@@ -89,8 +93,8 @@ textarea{resize:none;line-height:1.6}
89
93
  selected fill and full ink, and never a change of weight. A list row shows keyboard focus with the
90
94
  hover fill rather than a ring. */
91
95
  .session-row{width:100%;min-height:var(--row-height);height:auto;padding:0 var(--space-2) 0 var(--space-1);margin:1px 0;border-radius:var(--row-radius);background:transparent;color:var(--text-2);justify-content:flex-start;gap:6px;text-align:left;font-size:var(--type-row);font-weight:var(--weight-regular)}
92
- .session-row:hover,.session-row:focus-visible{background:var(--hover,var(--rail-wash));color:var(--text);outline:none}
93
- .session-row.active{background:var(--selected,var(--accent-soft));color:var(--text)}
96
+ .session-row:hover,.session-row:focus-visible{background:var(--hover);color:var(--text);outline:none}
97
+ .session-row.active{background:var(--selected);color:var(--text)}
94
98
  .session-row .name{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;flex:1}
95
99
  .session-row.row-waiting,.session-row.row-unread{color:var(--text)}
96
100
  .session-row time{color:var(--text-3);font-size:var(--type-xs);flex-shrink:0;min-width:4ch;text-align:right;font-variant-numeric:tabular-nums}
@@ -99,45 +103,71 @@ textarea{resize:none;line-height:1.6}
99
103
  a run that failed, and a stopped run is a hollow ring. */
100
104
  .mark{width:16px;height:16px;flex:none;display:inline-grid;place-items:center}
101
105
  .mark::before{content:'';display:block;box-sizing:border-box;border-radius:var(--radius-full)}
102
- .mark.running::before{width:12px;height:12px;border:1.5px solid var(--border-strong);border-top-color:var(--text-2);animation:spin 1s linear infinite}
106
+ .mark.running::before{width:12px;height:12px;border:1.5px solid var(--border-strong);border-top-color:var(--text-2);animation:spin var(--loop-spin) linear infinite}
103
107
  .mark.waiting::before{width:8px;height:8px;background:var(--text)}
104
108
  .mark.failed::before{width:8px;height:8px;background:var(--err)}
105
109
  .mark.stopped::before{width:8px;height:8px;border:1.5px solid var(--text-3)}
106
110
  .mark.unread::before{width:6px;height:6px;background:var(--text-3)}
107
111
  @keyframes spin{to{transform:rotate(360deg)}}
108
- .empty-projects{padding:var(--space-2) var(--space-3);color:var(--text-3);font-size:var(--type-xs);line-height:1.6}
112
+ .empty-projects{padding:var(--space-2) var(--space-3);color:var(--text-3);font-size:var(--type-xs);line-height:var(--leading-xs)}
109
113
  .sidebar-footer{border-top:1px solid var(--border);padding:3px var(--space-2) 3px var(--space-3);min-height:var(--chrome-height);display:flex;justify-content:space-between;align-items:center;gap:var(--space-2);font-size:var(--type-xs);color:var(--text-3)}
110
114
  .sidebar-footer button{height:var(--control-height);padding:0 var(--space-2);border-radius:var(--radius-sm);background:transparent;color:var(--text-2);font-size:var(--type-xs);gap:6px}
111
- .sidebar-footer button:hover{background:var(--hover,var(--rail-wash));color:var(--text)}
112
- #connection{display:inline-flex;align-items:center;gap:6px}
113
- #connection::before{content:'';width:6px;height:6px;border-radius:var(--radius-full);background:var(--text-3)}
115
+ .sidebar-footer button:hover{background:var(--hover);color:var(--text)}
116
+ /* The connection line keeps one line: on a narrow rail it gives up its tail, and its dot stays whole. */
117
+ #connection{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
118
+ #connection::before{content:'';display:inline-block;width:6px;height:6px;margin-right:6px;vertical-align:1px;border-radius:var(--radius-full);background:var(--text-3)}
114
119
  #connection.disconnected::before{background:var(--err)}
115
120
 
116
- /* The title strip over the work area: the desktop's 36px chrome, grown only by the title's meta line. */
121
+ /* The title strip over the work area: the desktop's 36px chrome. The 13/500 title and its 12px path
122
+ line (18 + 16) fit inside it, so it has no vertical padding and never grows. */
117
123
  main{flex:1;min-width:0;display:flex;flex-direction:column;background:var(--bg-surface)}
118
- .topbar{min-height:var(--chrome-height);flex-shrink:0;border-bottom:1px solid var(--border);display:flex;gap:var(--space-2);align-items:center;padding:var(--space-1) var(--space-4)}
124
+ .topbar{height:var(--chrome-height);flex-shrink:0;border-bottom:1px solid var(--border);display:flex;gap:var(--space-2);align-items:center;padding:0 var(--space-4)}
119
125
  .session-heading{flex:1;min-width:0}
120
- .session-heading strong{font-size:var(--type-section);font-weight:var(--weight-strong);line-height:20px;display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
121
- .session-heading span{display:block;font-size:var(--type-xs);line-height:16px;color:var(--text-3);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
126
+ .session-heading strong{font-size:var(--type-sm);font-weight:var(--weight-strong);line-height:var(--leading-sm);display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
127
+ .session-heading span{display:block;font-size:var(--type-xs);line-height:var(--leading-xs);color:var(--text-3);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
122
128
  .session-heading span:empty{display:none}
123
129
  .topbar button{height:var(--control-height);padding:0 var(--space-3);border-radius:var(--radius-sm);font-size:var(--type-xs);background:transparent;color:var(--text-2)}
124
- .topbar button:hover{background:var(--hover,var(--bg-hover));color:var(--text)}
125
- .topbar button[aria-expanded=true]{background:var(--selected,var(--accent-soft));color:var(--text)}
130
+ .topbar button:hover{background:var(--hover);color:var(--text)}
131
+ .topbar button[aria-expanded=true]{background:var(--selected);color:var(--text)}
126
132
  .topbar .icon-button{padding:0}
127
- /* The status pill reads in sentence case: the server's status words take a capital first letter only. */
128
- .badge{height:22px;padding:0 var(--space-2);border-radius:var(--radius-full);background:var(--bg-card);color:var(--text-2);font-size:var(--type-xs);line-height:22px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
129
- .badge::first-letter{text-transform:uppercase}
133
+ /* The run's status is the desktop Badge: 18px on a 4px corner, 12/500 in the secondary ink on the
134
+ control wash. Its words come from app.js's one status table, never the engine's own status. */
135
+ .badge{flex:none;display:inline-block;box-sizing:border-box;height:18px;padding:0 6px;border:0;border-radius:var(--radius-xs);background:var(--bg-control);color:var(--text-2);font-size:var(--type-xs);font-weight:var(--weight-strong);line-height:18px;letter-spacing:0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
130
136
 
131
137
  /* The transcript and its composer share one reading measure. */
132
138
  .work-area{display:flex;flex:1;min-height:0}
133
139
  .chat{flex:1;min-width:0;display:flex;flex-direction:column}
134
140
  .conversation{flex:1;overflow:auto;padding:var(--space-5) max(var(--space-5),calc((100% - var(--reading-measure))/2))}
135
141
  .welcome{height:100%;display:flex;justify-content:center;align-items:center;flex-direction:column;text-align:center;color:var(--text-2)}
136
- .welcome h1{font-size:var(--type-lg);font-weight:var(--weight-strong);color:var(--text);margin:var(--space-4) 0 var(--space-1)}
137
- .welcome p{color:var(--text-3);margin:0;line-height:1.6}
142
+ .welcome h1{font-size:var(--type-lg);line-height:var(--leading-lg);font-weight:var(--weight-strong);color:var(--text);margin:var(--space-4) 0 var(--space-1)}
143
+ .welcome p{color:var(--text-3);margin:0;line-height:var(--leading-sm)}
138
144
  .welcome-mark{width:40px;height:40px;object-fit:contain}
139
- .message{line-height:1.65;margin-bottom:var(--space-5);overflow-wrap:anywhere}
145
+ .message{line-height:var(--leading-prose);margin-bottom:var(--space-5);overflow-wrap:anywhere}
140
146
  .message .body{white-space:pre-wrap}
147
+ /* Andorra's answer in its Markdown subset (app.js markdown()), on the desktop transcript's rhythm: blocks a
148
+ paragraph gap apart, headings told apart by size, lists indented under the text. This page ships the
149
+ 400 and 500 faces only, so headings take 500 rather than a synthesized 600, and bold is the desktop's
150
+ prose bold (--weight-prose-bold, 500). */
151
+ .message .body.markdown{white-space:normal}
152
+ .markdown>*{margin:0 0 var(--space-3)}
153
+ .markdown>*:last-child{margin-bottom:0}
154
+ .markdown p,.markdown li{white-space:pre-wrap}
155
+ .markdown-heading{font-weight:var(--weight-strong);color:var(--text);line-height:var(--leading-md);margin-top:var(--space-5)}
156
+ .markdown-heading:first-child{margin-top:0}
157
+ .markdown-heading[data-level="1"]{font-size:var(--type-h1);line-height:var(--leading-lg)}
158
+ .markdown-heading[data-level="2"]{font-size:var(--type-md);line-height:var(--leading-prose)}
159
+ .markdown-heading[data-level="3"],.markdown-heading[data-level="4"]{font-size:var(--type-prose)}
160
+ .markdown ul,.markdown ol{padding-left:var(--space-5)}
161
+ .markdown li+li{margin-top:var(--space-1)}
162
+ /* A block inside an item (a code card, a nested list, a heading) sits a small step from the item's text. */
163
+ .markdown li>pre,.markdown li>ul,.markdown li>ol{margin:var(--space-1) 0}
164
+ .markdown li>.markdown-heading{margin-top:var(--space-2)}
165
+ .markdown li>.markdown-heading:first-child{margin-top:0}
166
+ .markdown strong{font-weight:var(--weight-prose-bold)}
167
+ .markdown pre{padding:var(--space-2) var(--space-3);border:1px solid var(--border);border-radius:var(--radius-md);background:var(--bg-input);overflow:auto;font-family:var(--font-mono);font-size:var(--type-xs);line-height:var(--leading-code);white-space:pre}
168
+ .message .body.markdown pre code{background:none;padding:0;font-size:inherit}
169
+ /* Inline code is the desktop's code span: the code face on a faint wash of the ink, with no edge. */
170
+ .message .body code,.pending-card p code{font-family:var(--font-mono);font-size:.92em;padding:0 2px;border-radius:var(--radius-xs);color:var(--text);background:var(--bg-card);box-decoration-break:clone;-webkit-box-decoration-break:clone}
141
171
  /* The request is a full-column card on the card corner, flat on the page. */
142
172
  .message.user{background:var(--bg-input);border:1px solid var(--border);border-radius:var(--card-radius);padding:var(--space-2) var(--space-3)}
143
173
  .message-label{font-size:var(--type-xs);color:var(--text-3);margin-bottom:var(--space-1)}
@@ -148,7 +178,7 @@ main{flex:1;min-width:0;display:flex;flex-direction:column;background:var(--bg-s
148
178
  .tool-event summary::before,.run-activity>summary::before,.archived-group>summary::before{content:'';flex:none;width:14px;height:14px;background:currentColor;color:var(--text-3);-webkit-mask:url('/icons/chevron-right.svg') center/14px 14px no-repeat;mask:url('/icons/chevron-right.svg') center/14px 14px no-repeat;transition:transform var(--dur-2) var(--ease-standard)}
149
179
  .tool-event[open]>summary::before,.run-activity[open]>summary::before,.archived-group[open]>summary::before{transform:rotate(90deg)}
150
180
  .tool-event summary:hover,.run-activity>summary:hover{color:var(--text)}
151
- .tool-event pre{margin:var(--space-1) 0 var(--space-2) 14px;padding:var(--space-2) var(--space-3);background:var(--bg-card);border-radius:var(--radius-md);white-space:pre-wrap;overflow-wrap:anywhere;max-height:320px;overflow:auto;color:var(--text-2);font:12px/1.55 var(--font-mono)}
181
+ .tool-event pre{margin:var(--space-1) 0 var(--space-2) 14px;padding:var(--space-2) var(--space-3);background:var(--bg-card);border-radius:var(--radius-md);white-space:pre-wrap;overflow-wrap:anywhere;max-height:320px;overflow:auto;color:var(--text-2);font-family:var(--font-mono);font-size:var(--type-xs);line-height:var(--leading-code)}
152
182
  .tool-event.failed,.tool-event.failed summary{color:var(--err-text)}
153
183
  .event-note{font-size:var(--type-xs);color:var(--text-3);margin:var(--space-3) 0;white-space:pre-wrap}
154
184
  .run-activity{margin:var(--space-4) 0}
@@ -157,16 +187,24 @@ main{flex:1;min-width:0;display:flex;flex-direction:column;background:var(--bg-s
157
187
  .activity-body .message{margin:var(--space-3) 0}
158
188
  .activity-body .message-label{display:none}
159
189
  .composer-wrap{padding:var(--space-3) max(var(--space-5),calc((100% - var(--reading-measure))/2)) var(--space-4)}
160
- .composer{background:var(--bg-input);border:1px solid var(--border);border-radius:var(--card-radius);box-shadow:var(--lift-2);transition:border-color var(--dur-1) var(--ease-standard),box-shadow var(--dur-1) var(--ease-standard)}
161
- .composer:focus-within{border-color:var(--border-strong);box-shadow:var(--lift-3)}
190
+ /* The composer is the one large rounded object: the 20px corner, flat on the page with no shadow, its
191
+ hairline taking the field edge under the pointer and while it holds the focus. */
192
+ .composer{background:var(--bg-input);border:1px solid var(--border);border-radius:var(--radius-composer);transition:border-color var(--dur-1) var(--ease-standard)}
193
+ .composer:hover,.composer:focus-within{border-color:var(--border-strong)}
162
194
  .composer textarea{border:0;background:transparent;padding:var(--space-3) 14px var(--space-1);min-height:72px;max-height:220px;cursor:text}
163
- .composer textarea:focus{outline:none}
195
+ .composer textarea:focus{outline:none;box-shadow:none}
164
196
  .composer-footer{display:flex;justify-content:space-between;gap:var(--space-2);align-items:center;padding:var(--space-1) var(--space-2) var(--space-2) 14px}
165
- /* The hint is the footer's one piece of text; the Send/Steer label inside the primary button keeps
166
- the button's own ink, so these rules name the hint rather than every span in the footer. */
167
- #composer-hint{color:var(--text-3);font-size:var(--type-xs)}
168
- .composer-footer>div{display:flex;gap:var(--space-1)}
197
+ /* The hint is the footer's one piece of text; the Send/Steer label inside the send button keeps the
198
+ button's own ink, so these rules name the hint rather than every span in the footer. The hint holds
199
+ one line and gives up its tail first. */
200
+ #composer-hint{color:var(--text-3);font-size:var(--type-xs);min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
201
+ .composer-footer>div{flex:none;display:flex;gap:var(--space-1)}
169
202
  .composer-footer button{height:var(--control-height);border-radius:var(--radius-sm);font-size:var(--type-xs);gap:6px}
203
+ /* Send/Steer is the desktop's send button: the neutral ink accent, never the blue, and the control fill
204
+ under the disabled ink when there is nothing to send. */
205
+ #send{background:var(--accent);color:var(--on-accent)}
206
+ #send:hover:not(:disabled){background:var(--accent-hover)}
207
+ #send:disabled,#send:disabled:hover{background:var(--bg-control);color:var(--text-disabled)}
170
208
  /* Stop is named by its label; red stays for what failed. */
171
209
  #cancel{background:transparent;color:var(--text-2)}
172
210
  #cancel:hover{background:var(--bg-control);color:var(--text)}
@@ -189,17 +227,18 @@ main{flex:1;min-width:0;display:flex;flex-direction:column;background:var(--bg-s
189
227
  .todo-marker{flex:none;width:14px;height:18px;display:inline-grid;place-items:center;color:var(--text-3)}
190
228
  #todos li.in_progress .todo-marker{color:var(--text)}
191
229
  .todo-text{min-width:0;overflow-wrap:anywhere}
192
- .muted{color:var(--text-3);font-size:var(--type-xs);line-height:1.6}
193
- .run-details{border-top:1px solid var(--border);padding-top:var(--space-3);margin-top:var(--space-4);color:var(--text-3);font-size:var(--type-xs);line-height:1.7;overflow-wrap:anywhere}
230
+ .muted{color:var(--text-3);font-size:var(--type-xs);line-height:var(--leading-xs)}
231
+ .run-details{border-top:1px solid var(--border);padding-top:var(--space-3);margin-top:var(--space-4);color:var(--text-3);font-size:var(--type-xs);line-height:var(--leading-xs);overflow-wrap:anywhere;white-space:pre-line}
194
232
  .run-details:empty{display:none}
195
233
 
196
234
  /* A question or approval the run stopped on: the one card that rises above the composer. */
197
235
  .pending-card{margin:0 max(var(--space-5),calc((100% - var(--reading-measure))/2));padding:var(--space-3) var(--space-4);background:var(--bg-input);border:1px solid var(--border-strong);border-radius:var(--card-radius);box-shadow:var(--lift-2)}
198
236
  .pending-card h3{font-size:var(--type-sm);font-weight:var(--weight-strong);margin:0 0 var(--space-2)}
199
- .pending-card p{white-space:pre-wrap;line-height:1.6;color:var(--text-2)}
200
- .pending-card form{display:flex;gap:var(--space-2);flex-wrap:wrap}
237
+ .pending-card p{white-space:pre-wrap;line-height:var(--leading-sm);color:var(--text-2)}
238
+ /* The card's actions sit at its right edge, the primary last, as in every desktop dialog. */
239
+ .pending-card form{display:flex;justify-content:flex-end;gap:var(--space-2);flex-wrap:wrap}
201
240
  .pending-card form input{flex:1;min-width:150px}
202
- .approval-details{white-space:pre-wrap;overflow-wrap:anywhere;max-height:280px;overflow:auto;font:12px/1.55 var(--font-mono);padding:var(--space-2) var(--space-3);background:var(--bg-card);border-radius:var(--radius-md);color:var(--text-2)}
241
+ .approval-details{white-space:pre-wrap;overflow-wrap:anywhere;max-height:280px;overflow:auto;font-family:var(--font-mono);font-size:var(--type-xs);line-height:var(--leading-code);padding:var(--space-2) var(--space-3);background:var(--bg-card);border-radius:var(--radius-md);color:var(--text-2)}
203
242
  .error{font-size:var(--type-xs);color:var(--err-text);padding:var(--space-2) var(--space-1);white-space:pre-wrap}
204
243
 
205
244
  /* Dialogs: a 12px card on the menu shadow, over a plain overlay. */
@@ -208,8 +247,8 @@ dialog[open]{animation:dialog-in var(--dur-3) var(--ease-standard)}
208
247
  dialog::backdrop{background:var(--overlay)}
209
248
  @keyframes dialog-in{from{opacity:0;transform:translateY(var(--pop-distance)) scale(var(--pop-scale))}}
210
249
  dialog header{display:flex;justify-content:space-between;align-items:center;gap:var(--space-4)}
211
- dialog h2{font-weight:var(--weight-strong);font-size:var(--type-section);margin:0}
212
- dialog p{font-size:var(--type-xs);color:var(--text-3);line-height:1.6}
250
+ dialog h2{font-weight:var(--weight-strong);font-size:var(--type-section);line-height:var(--leading-md);margin:0}
251
+ dialog p{font-size:var(--type-xs);color:var(--text-3);line-height:var(--leading-xs)}
213
252
  dialog label{display:block;margin-top:var(--space-4);font-size:var(--type-sm);color:var(--text-2)}
214
253
  dialog input,dialog select{margin:var(--space-2) 0 var(--space-1)}
215
254
  dialog footer{display:flex;justify-content:flex-end;gap:var(--space-2);margin-top:var(--space-4)}
@@ -217,18 +256,21 @@ dialog footer{display:flex;justify-content:flex-end;gap:var(--space-2);margin-to
217
256
  /* Session actions: the right-click menu, the archived group, and the confirmations they open. A
218
257
  destructive item is named by its label and set apart by a rule; red is never an action's ink. The
219
258
  menu is the desktop's: an 8px surface with 4px of padding and 4px rows. */
220
- .context-menu{position:fixed;z-index:20;min-width:184px;padding:var(--space-1);background:var(--bg-input);border:1px solid var(--border);border-radius:var(--radius-md);box-shadow:var(--shadow-menu);display:flex;flex-direction:column;animation:menu-in var(--dur-2) var(--ease-standard)}
259
+ .context-menu{position:fixed;z-index:var(--z-menu);min-width:184px;padding:var(--space-1);background:var(--bg-input);border:1px solid var(--border);border-radius:var(--radius-md);box-shadow:var(--shadow-menu);display:flex;flex-direction:column;animation:menu-in var(--dur-2) var(--ease-standard)}
221
260
  @keyframes menu-in{from{opacity:0;transform:translateY(-2px)}}
222
261
  .menu-item{height:var(--row-height);padding:0 var(--space-2);justify-content:flex-start;border-radius:var(--radius-xs);background:transparent;color:var(--text);font-size:var(--type-sm);font-weight:var(--weight-regular)}
223
- .menu-item:hover,.menu-item:focus-visible{background:var(--hover,var(--bg-hover));outline:none}
262
+ .menu-item:hover,.menu-item:focus-visible{background:var(--hover);outline:none}
224
263
  .menu-item:disabled:hover{background:transparent}
225
264
  .menu-separator{height:1px;margin:var(--space-1) 0;background:var(--border)}
226
265
  .archived-group{margin-top:2px}
227
266
  .archived-group>summary{list-style:none;cursor:pointer;min-height:var(--row-height);display:flex;align-items:center;gap:6px;padding:0 var(--space-2) 0 var(--space-1);border-radius:var(--row-radius);color:var(--text-3);font-size:var(--type-xs)}
228
267
  .archived-group>summary::-webkit-details-marker{display:none}
229
- .archived-group>summary:hover{background:var(--hover,var(--rail-wash));color:var(--text-2)}
268
+ .archived-group>summary:hover{background:var(--hover);color:var(--text-2)}
230
269
  .archived-group .session-row .name{color:var(--text-2);font-style:italic}
231
- .toast{position:fixed;left:50%;bottom:var(--space-5);transform:translateX(-50%);z-index:30;padding:var(--space-2) 14px;border:1px solid var(--border);border-radius:var(--radius-md);background:var(--bg-input);color:var(--text);font-size:var(--type-xs);box-shadow:var(--shadow-menu);animation:toast-in var(--dur-2) var(--ease-standard)}
270
+ /* The toast is the desktop's: its text, then its own close button; Escape dismisses it too (app.js). */
271
+ .toast{position:fixed;left:50%;bottom:var(--space-5);transform:translateX(-50%);z-index:var(--z-toast);display:flex;align-items:center;gap:var(--space-2);max-width:min(480px,calc(100vw - 2 * var(--space-5)));padding:var(--space-1) var(--space-1) var(--space-1) var(--space-3);border:1px solid var(--border-strong);border-radius:var(--radius-md);background:var(--bg-input);color:var(--text);font-size:var(--type-xs);line-height:var(--leading-xs);box-shadow:var(--shadow-menu);animation:toast-in var(--dur-2) var(--ease-standard)}
272
+ #toast-text{flex:1;min-width:0;overflow-wrap:anywhere}
273
+ .toast .icon-button{width:24px;height:24px;color:var(--text-3)}
232
274
  @keyframes toast-in{from{opacity:0;transform:translate(-50%,var(--pop-distance))}}
233
275
  .trajectory-dialog{width:min(920px,94vw);height:min(80vh,760px);padding:0;flex-direction:column}
234
276
  .trajectory-dialog[open]{display:flex}
@@ -239,25 +281,28 @@ dialog footer{display:flex;justify-content:flex-end;gap:var(--space-2);margin-to
239
281
  .trajectory-actions{display:flex;align-items:center;gap:6px;flex-wrap:wrap}
240
282
  #trajectory-sources{display:flex;gap:2px;padding:2px;background:var(--bg-card);border-radius:var(--radius-md)}
241
283
  #trajectory-sources button{height:24px;padding:0 var(--space-2);font-size:var(--type-xs);background:transparent;color:var(--text-2);border-radius:var(--radius-sm)}
242
- #trajectory-sources button[aria-pressed=true]{background:var(--bg-raised);color:var(--text);box-shadow:0 1px 2px rgba(0,0,0,.12)}
284
+ #trajectory-sources button[aria-pressed=true]{background:var(--bg-raised);color:var(--text);box-shadow:var(--shadow-raised)}
243
285
  #trajectory-download{width:auto;height:var(--control-height);padding:0 10px;border-radius:var(--radius-sm);font-size:var(--type-xs)}
244
286
  .trajectory-records{flex:1;min-height:0;overflow:auto;margin:0;padding:var(--space-2) var(--space-2) var(--space-2) var(--space-3);list-style:none;font-size:var(--type-xs)}
245
287
  .trajectory-records summary{list-style:none;cursor:pointer;display:flex;gap:10px;align-items:baseline;min-height:26px;padding:3px 6px;border-radius:var(--row-radius)}
246
288
  .trajectory-records summary::-webkit-details-marker{display:none}
247
- .trajectory-records summary:hover,.trajectory-records summary:focus-visible{background:var(--hover,var(--bg-hover));outline:none}
289
+ .trajectory-records summary:hover,.trajectory-records summary:focus-visible{background:var(--hover);outline:none}
248
290
  .trajectory-records time{flex:none;width:84px;color:var(--text-3);font-family:var(--font-mono);font-variant-numeric:tabular-nums}
249
- .record-kind{flex:none;max-width:240px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-family:var(--font-mono);color:var(--text)}
291
+ /* An entry's kind is named in words (app.js), so it takes the interface face, not the code one. */
292
+ .record-kind{flex:none;max-width:240px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:var(--text)}
250
293
  .record-detail{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:var(--text-2)}
251
- .trajectory-records pre{margin:2px 0 var(--space-2) 100px;padding:var(--space-2) var(--space-3);background:var(--bg-card);border-radius:var(--radius-md);white-space:pre-wrap;overflow-wrap:anywhere;max-height:360px;overflow:auto;color:var(--text-2);font:12px/1.55 var(--font-mono)}
294
+ .trajectory-records pre{margin:2px 0 var(--space-2) 100px;padding:var(--space-2) var(--space-3);background:var(--bg-card);border-radius:var(--radius-md);white-space:pre-wrap;overflow-wrap:anywhere;max-height:360px;overflow:auto;color:var(--text-2);font-family:var(--font-mono);font-size:var(--type-xs);line-height:var(--leading-code)}
252
295
  .trajectory-dialog>p,.trajectory-dialog>.error{margin:0;padding:var(--space-3) var(--space-4)}
253
296
  .trajectory-dialog>footer{margin:0;padding:var(--space-2) var(--space-4) var(--space-3);justify-content:center}
254
297
  .trajectory-dialog>footer:has(#trajectory-more[hidden]){display:none}
255
298
  @media(max-width:1150px){.progress-panel{width:220px}
256
299
  .sidebar{width:220px}}
257
300
  @media(max-width:900px){.work-area{position:relative}
258
- .progress-panel{position:absolute;right:0;top:0;bottom:0;z-index:1;box-shadow:var(--shadow-panel)}
301
+ .progress-panel{position:absolute;right:0;top:0;bottom:0;z-index:var(--z-raised);box-shadow:var(--shadow-panel)}
259
302
  .sidebar{width:200px}
260
- #composer-hint{max-width:160px}}
303
+ /* The 200px rail keeps every line whole: the brand drops its subtitle, and Settings becomes its icon
304
+ (the button keeps its name, "Open settings"), so the connection line has its room. */
305
+ .brand small,.sidebar-footer .button-label{display:none}}
261
306
  @media(max-width:600px){.sidebar{width:160px}
262
307
  .brand{padding:0 var(--space-3)}
263
308
  .brand small{display:none}
@@ -267,7 +312,7 @@ dialog footer{display:flex;justify-content:flex-end;gap:var(--space-2);margin-to
267
312
  .section-label{padding:0 14px var(--space-1)}
268
313
  .session-row{font-size:var(--type-xs)}
269
314
  .session-row time{display:none}
270
- .topbar{gap:6px;padding:var(--space-1) var(--space-3)}
315
+ .topbar{gap:6px;padding:0 var(--space-3)}
271
316
  .topbar #toggle-progress{display:none}
272
317
  .conversation{padding:20px 14px}
273
318
  .composer-wrap{padding:var(--space-3)}
@@ -280,6 +325,6 @@ dialog footer{display:flex;justify-content:flex-end;gap:var(--space-2);margin-to
280
325
  .trajectory-records pre{margin-left:0}
281
326
  .record-kind{max-width:140px}}
282
327
  /* Reduced motion: movement becomes a fade, and the one loop — a running row's spinner — slows. */
283
- @media(prefers-reduced-motion:reduce){.mark.running::before{animation-duration:2.4s}
328
+ @media(prefers-reduced-motion:reduce){.mark.running::before{animation-duration:var(--loop-breathe)}
284
329
  dialog[open],.context-menu,.toast{animation:none}
285
330
  button,.tool-event summary::before,.run-activity>summary::before,.archived-group>summary::before{transition:none}}
@@ -8,7 +8,7 @@
8
8
  /* Measurements. The row is the Siderail row everywhere: 28px tall, 6px radius, 13px type. */
9
9
  --rail-width: 232px; /* written live by RailResizeHandle while the edge is dragged */
10
10
  --chrome-height: 36px; /* every title strip */
11
- --reading-measure: 720px; /* the prose column */
11
+ --reading-measure: 792px; /* the prose column */
12
12
  --settings-measure: 880px; /* every settings page: one column, one left edge */
13
13
  --row-height: 28px;
14
14
  --row-radius: 6px;
@@ -16,14 +16,13 @@
16
16
  --btn-height: 32px; /* the primary/soft button */
17
17
  --btn-radius: 8px;
18
18
  --card-radius: 12px;
19
- --setting-row-height: 52px; /* a Settings row: a title over its one-line description */
20
19
  /* The radius scale. Every corner takes one of these steps, and a corner inside another is the
21
20
  outer step minus the padding between them, floored at the next step down: 4 for badges, menu
22
21
  rows and inline code, 6 for rows, 28px buttons and icon buttons, 8 for 32px buttons, fields,
23
22
  code blocks and menus, 12 for cards and dialogs, 20 for the composer (the one large rounded
24
23
  object), and full for dots, avatars, switches and status pills. The --row/--btn/--input/--card
25
24
  radii above are positions on it. */
26
- --radius-xs: 4px; --radius-sm: 6px; --radius-md: 8px; --radius-lg: 12px; --radius-xl: 16px; --radius-full: 999px;
25
+ --radius-xs: 4px; --radius-sm: 6px; --radius-md: 8px; --radius-lg: 12px; --radius-full: 999px;
27
26
  --radius-composer: 20px;
28
27
 
29
28
  --font-ui: "Geist Sans", "Geist", -apple-system, "SF Pro Text", system-ui, sans-serif;
@@ -34,10 +33,15 @@
34
33
  --type-label: 12px;
35
34
  --type-section: 15px;
36
35
  --type-hint: 12px;
36
+ --type-h1: 17px; /* a message's top heading (D2): one step between the prose and the page title */
37
37
  --weight-regular: 400; --weight-strong: 500;
38
- /* Leading and tracking, one value per size: 12px on 16, 13px on 18, prose 14px on 22. 13px type is
39
- tracked in by a hair (−0.08px), the way the platform faces set their text size. */
40
- --leading-xs: 16px; --leading-sm: 18px; --leading-prose: 22px; --leading-code: 1.55;
38
+ /* Leading and tracking, one value per size, every line on the 2px grid: 12px on 16, 13px on 18,
39
+ 14–15px headings and titles on 20, prose 14px on 22, the 17px heading and 20px titles on 24, and
40
+ 12px code on 18. 13px type is tracked in by a hair (−0.08px), the way the platform faces set their
41
+ text size; a title is tracked in by a hundredth of its size, and a code meant to be read out (a
42
+ sign-in code) is spaced out. */
43
+ --leading-xs: 16px; --leading-sm: 18px; --leading-md: 20px; --leading-prose: 22px; --leading-lg: 24px;
44
+ --leading-code: 18px;
41
45
  --tracking-sm: -0.08px; --tracking-title: -0.01em; --tracking-code: .06em;
42
46
  /* A message is the one thing the window is read for at length, so its prose takes one step up
43
47
  from the row size. The body is regular 400; a heading is 600 and a bold term 500. A bold term is
@@ -76,9 +80,11 @@
76
80
  --hover: color-mix(in srgb, var(--text) 7%, transparent);
77
81
  --selected: color-mix(in srgb, var(--text) 12%, transparent);
78
82
  --bg-hover: var(--hover);
79
- /* The neutral accent: the send button, the caret, a checked checkbox, a field's focus halo. */
83
+ /* The neutral accent: the send button, the caret, a checked checkbox, a field's focus halo. The halo
84
+ is a focus indicator, so it keeps 3:1 against the ground it sits on (WCAG 1.4.11): the ink at 36%
85
+ here, 48% in light (P-IXD-16). */
80
86
  --accent: #ececec; --accent-soft: rgba(245,245,245,.16); --on-accent: #141414;
81
- --accent-hover: #ffffff; --accent-ring: rgba(245,245,245,.22);
87
+ --accent-hover: #ffffff; --accent-ring: rgba(245,245,245,.36);
82
88
  /* The one hue in the chrome: the primary button's fill, keyboard focus, a switch that is on, links
83
89
  and progress. Everything else is neutral, so the blue stays rare and means "the action". */
84
90
  --accent-fill: #1372da; --accent-fill-hover: #2a7fdd; --on-accent-fill: #f5f5f5;
@@ -86,13 +92,12 @@
86
92
  /* 2026-11-12: the chrome keeps no amber. --warn is the attention ink, a bright neutral: a row or
87
93
  a pill that needs its person is marked by contrast, weight and motion, never by a warning hue.
88
94
  --err is one clean red, kept for what failed and for removed lines; it is never a button. */
89
- --ok: #2f9e6a; --err: #e5484d; --warn: #c9c9c9; --you: #c9c9c9;
90
- /* Merged: the violet GitHub gives a merged pull request, the one state the three status hues above
91
- do not already name. */
92
- --merged: #8e6ee0;
95
+ --ok: #2f9e6a; --err: #e5484d; --warn: #c9c9c9;
93
96
  /* Text-safe status variants: --ok/--err/--warn are the dot and border colours the Siderail
94
97
  language defines, and at small text sizes they fall short of 4.5:1 on these surfaces. Any use
95
98
  of a status colour as foreground text takes the -text variant instead. */
99
+ /* Merged is the violet GitHub gives a merged pull request, the one state the hues above do not
100
+ already name; it only ever shows as a pill's word on its wash, so it has no dot ink. */
96
101
  --ok-text: #7cc79a; --err-text: #f47174; --warn-text: #ececec; --merged-text: #bba4f2;
97
102
  /* A picked skill in the composer. It is content the person typed, not chrome, and it has to read as
98
103
  recognised at a glance, so it carries the one hue outside status and the accent (see ADR 0022).
@@ -101,7 +106,6 @@
101
106
  /* A status pill's fill: a faint wash of its hue under the -text ink, light enough that the ink
102
107
  keeps 4.5:1 on both the card and the pane ground. */
103
108
  --ok-wash: rgba(47,158,106,.14); --err-wash: rgba(229,72,77,.14); --merged-wash: rgba(142,110,224,.14);
104
- --warn-wash: rgba(245,245,245,.10);
105
109
  --add-wash: rgba(47,158,106,.16); --del-wash: rgba(229,72,77,.16);
106
110
  --overlay: rgba(0,0,0,.5);
107
111
 
@@ -114,8 +118,6 @@
114
118
  --rail-wash: var(--hover);
115
119
  /* 2026-11-12: the rail is a flat ground. The glow and grain are kept as tokens and switched off. */
116
120
  --glow-1: transparent; --glow-2: transparent; --glow-size: 440px 380px; --grain: 0;
117
- /* The waiting update row's halo: faint at rest and brighter at its peak. */
118
- --update-glow-rest: rgba(245,245,245,.10); --update-glow-peak: rgba(245,245,245,.28);
119
121
 
120
122
  /* Elevation: one shadow per step. lift-2 under a bordered card at rest, lift-3 for the composer
121
123
  holding focus, menu for every menu and popover, panel for dialogs and toasts, raised for a chip
@@ -125,7 +127,6 @@
125
127
  --lift-3: inset 0 1px 0 rgba(255,255,255,.07), 0 2px 4px rgba(0,0,0,.3), 0 18px 38px -10px rgba(0,0,0,.7);
126
128
  --shadow-menu: 0 8px 28px rgba(0,0,0,.4);
127
129
  --shadow-panel: var(--shadow-menu);
128
- --shadow-lift: var(--shadow-menu); /* kept for the graph editor's copy; unused here */
129
130
  --shadow-raised: 0 1px 2px rgba(0,0,0,.32);
130
131
  --shadow-knob: 0 1px 2px rgba(0,0,0,.4);
131
132
 
@@ -138,14 +139,16 @@
138
139
  the app is idle: the spinner turns only while work runs. */
139
140
  /* 2026-11-12: quick and soft, with no overshoot. Row hover arrives and leaves at once; popovers
140
141
  and rows take --dur-2, dialogs and view changes --dur-3, height --dur-4. */
141
- --dur-0: 80ms; --dur-1: 120ms; --dur-2: 160ms; --dur-3: 200ms; --dur-4: 240ms; --stagger: 40ms;
142
+ --dur-0: 80ms; --dur-1: 120ms; --dur-2: 160ms; --dur-3: 200ms; --dur-4: 240ms;
142
143
  --ease-standard: cubic-bezier(.2,.8,.2,1);
143
144
  --ease-out: var(--ease-standard);
144
145
  --ease-in-out: cubic-bezier(.65,0,.35,1);
145
146
  --ease-exit: cubic-bezier(.4,0,1,1);
146
- --ease-settle: var(--ease-standard); /* kept for the graph editor's copy; unused here */
147
147
  --pop-distance: 4px; --pop-scale: .98;
148
148
  --loop-spin: 1s; --loop-shimmer: 1.8s; --loop-breathe: 2.4s;
149
+ /* How long the pointer rests on a quiet affordance (the sidebar's sash) before it lights, so a pointer
150
+ only crossing it lights nothing. */
151
+ --delay-hover-intent: 150ms;
149
152
 
150
153
  color-scheme: dark;
151
154
  }
@@ -164,17 +167,17 @@
164
167
  --bg-raised: #ffffff;
165
168
  --switch-off: color-mix(in srgb, var(--text) 50%, transparent);
166
169
  --accent: #1c1c1c; --accent-soft: rgba(28,28,28,.16); --on-accent: #ffffff;
167
- --accent-hover: #333333; --accent-ring: rgba(28,28,28,.16);
170
+ --accent-hover: #333333; --accent-ring: rgba(28,28,28,.48);
168
171
  --accent-fill: #1680f3; --accent-fill-hover: #1776dd; --on-accent-fill: #ffffff;
169
172
  --accent-text: #0b6dd3; --focus: #1680f3;
170
- --ok: #3d7a5c; --err: #d13438; --warn: #45464b; --you: #45464b;
171
- /* No merged ink in the source palette; this violet is in the key of its pass and fail inks. */
172
- --merged: #6a4fc4;
173
- --ok-text: #3d7a5c; --err-text: #c4262e; --warn-text: #1c1c1c; --merged-text: #6a4fc4;
173
+ --ok: #3d7a5c; --err: #d13438; --warn: #45464b;
174
+ /* The pass word is a step darker than its dot: on the add wash an added line's "+" needs 4.5:1
175
+ (4.88:1 here, P-IXD-15). No merged ink in the source palette; this violet is in the key of the
176
+ pass and fail inks. */
177
+ --ok-text: #36704f; --err-text: #c4262e; --warn-text: #1c1c1c; --merged-text: #6a4fc4;
174
178
  --skill: #3b4fc4; --skill-wash: rgba(59,79,196,.10);
175
179
  /* Fainter than the dark washes: at .14 the pass ink on its own wash drops under 4.5:1. */
176
180
  --ok-wash: rgba(61,122,92,.08); --err-wash: rgba(209,52,56,.08); --merged-wash: rgba(106,79,196,.08);
177
- --warn-wash: rgba(28,28,28,.06);
178
181
  /* A removed line has to be found beside an added one: at .08 it was all but white. At .13 the
179
182
  fail ink still keeps 5:1 on it. */
180
183
  --add-wash: rgba(61,122,92,.14); --del-wash: rgba(209,52,56,.13);
@@ -184,13 +187,11 @@
184
187
  --code-fn: #795e26; --code-var: #001080; --code-type: #267f99; --code-meta: #af00db;
185
188
 
186
189
  --glow-1: transparent; --glow-2: transparent; --glow-size: 480px 420px; --grain: 0;
187
- --update-glow-rest: rgba(28,28,28,.08); --update-glow-peak: rgba(28,28,28,.20);
188
190
 
189
191
  --lift-2: 0 1px 2px rgba(16,18,24,.04), 0 6px 24px rgba(16,18,24,.07);
190
192
  --lift-3: 0 1px 2px rgba(16,18,24,.05), 0 6px 24px rgba(16,18,24,.085);
191
193
  --shadow-menu: 0 2px 4px rgba(16,18,24,.05), 0 8px 20px rgba(16,18,24,.07), 0 24px 48px rgba(16,18,24,.07);
192
194
  --shadow-panel: var(--shadow-menu);
193
- --shadow-lift: var(--shadow-menu);
194
195
  --shadow-raised: 0 1px 2px rgba(16,18,24,.12), 0 0 0 .5px rgba(16,18,24,.06);
195
196
  --shadow-knob: 0 1px 2px rgba(16,18,24,.3);
196
197
 
@@ -8,11 +8,35 @@ export interface CodingToolPolicy {
8
8
  mimeType: string;
9
9
  bytes: Buffer;
10
10
  } | undefined>;
11
+ /** The bytes of a file that opens like a PDF or a Word container; undefined for anything else. */
12
+ readDocument?(context: ToolContext, name: string): Promise<Buffer | undefined>;
13
+ /** A text file in an encoding other than UTF-8, decoded; undefined when it is not text. */
14
+ readLegacyText?(context: ToolContext, name: string): Promise<{
15
+ text: string;
16
+ encoding: string;
17
+ } | undefined>;
11
18
  atomicWrite(context: ToolContext, name: string, content: string, expected?: string): Promise<void>;
12
19
  authorize(name: string, args: Record<string, unknown>, context: ToolContext): Promise<void>;
13
20
  files(context: ToolContext, directory: string): AsyncIterable<string>;
14
21
  fileLimit: number;
15
22
  }
23
+ /**
24
+ * How long a foreground shell command may run when the call names no timeout.
25
+ *
26
+ * Thirty seconds, the earlier default, is shorter than an ordinary package install, compile or
27
+ * test run: the command was killed and the model had to notice, raise the timeout and start it
28
+ * again from nothing. Two minutes covers those without leaving a hung command unnoticed for long.
29
+ */
30
+ export declare const SHELL_DEFAULT_TIMEOUT_MS = 120000;
31
+ export declare const SHELL_MAX_TIMEOUT_MS = 600000;
32
+ /**
33
+ * What a timed-out command's error tells the model to do next.
34
+ *
35
+ * The bare "timed out after N ms" says the command was stopped but not that the work is lost, nor
36
+ * which of the two ways forward fits: a longer timeout while one is left to ask for, or a
37
+ * background job once the ceiling is reached.
38
+ */
39
+ export declare function shellTimeoutGuidance(message: string, timeout: number): string;
16
40
  /**
17
41
  * Key for the per-context file-read state.
18
42
  *