@andorra-labs/code 0.1.8 → 0.1.10

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 (187) hide show
  1. package/THIRD_PARTY_NOTICES.md +2 -1
  2. package/dist/src/account-presentation.d.ts +11 -0
  3. package/dist/src/account-presentation.js +29 -2
  4. package/dist/src/agent-execution.js +57 -4
  5. package/dist/src/agent-mcp.d.ts +12 -0
  6. package/dist/src/agent-mcp.js +81 -2
  7. package/dist/src/app-server/protocol.d.ts +120 -1
  8. package/dist/src/app-server/protocol.js +8 -1
  9. package/dist/src/app-server/reasoning.d.ts +0 -8
  10. package/dist/src/app-server/reasoning.js +15 -28
  11. package/dist/src/app-server.d.ts +32 -0
  12. package/dist/src/app-server.js +214 -21
  13. package/dist/src/auth/AuthManager.d.ts +15 -0
  14. package/dist/src/auth/AuthManager.js +66 -7
  15. package/dist/src/auth/index.d.ts +1 -1
  16. package/dist/src/auth/index.js +1 -1
  17. package/dist/src/auth/store.d.ts +17 -1
  18. package/dist/src/auth/store.js +25 -2
  19. package/dist/src/browser-runner.js +1 -2
  20. package/dist/src/browser-server.js +10 -2
  21. package/dist/src/browser-session.js +6 -2
  22. package/dist/src/browser-stealth.d.ts +29 -0
  23. package/dist/src/browser-stealth.js +166 -0
  24. package/dist/src/browser-ui/app.js +123 -28
  25. package/dist/src/browser-ui/icons/chevron-right.svg +8 -0
  26. package/dist/src/browser-ui/index.html +8 -8
  27. package/dist/src/browser-ui/style.css +199 -171
  28. package/dist/src/browser-ui/tokens.css +198 -0
  29. package/dist/src/browser-view.d.ts +57 -9
  30. package/dist/src/browser-view.js +187 -36
  31. package/dist/src/cli.js +31 -9
  32. package/dist/src/coding-tools.js +9 -5
  33. package/dist/src/command-screens.js +4 -4
  34. package/dist/src/commands.d.ts +1 -1
  35. package/dist/src/commands.js +3 -2
  36. package/dist/src/completion-gates.d.ts +35 -0
  37. package/dist/src/completion-gates.js +25 -0
  38. package/dist/src/completion.d.ts +7 -1
  39. package/dist/src/completion.js +37 -4
  40. package/dist/src/config.d.ts +1 -1
  41. package/dist/src/config.js +2 -2
  42. package/dist/src/context-budget.d.ts +11 -0
  43. package/dist/src/context-budget.js +13 -0
  44. package/dist/src/decision/DecisionEngine.d.ts +5 -1
  45. package/dist/src/decision/DecisionManager.d.ts +1 -0
  46. package/dist/src/decision/DecisionManager.js +14 -3
  47. package/dist/src/decision/FactContinuations.d.ts +6 -0
  48. package/dist/src/decision/FactContinuations.js +9 -1
  49. package/dist/src/decision/FactServiceGate.js +1 -1
  50. package/dist/src/decision/checks.js +1 -1
  51. package/dist/src/decision/hostedSkills.d.ts +37 -0
  52. package/dist/src/decision/hostedSkills.js +64 -0
  53. package/dist/src/decision/providers/AndorraDecisionProvider.d.ts +10 -2
  54. package/dist/src/decision/providers/AndorraDecisionProvider.js +121 -10
  55. package/dist/src/default-graph.d.ts +11 -0
  56. package/dist/src/default-graph.js +20 -0
  57. package/dist/src/duration.d.ts +13 -2
  58. package/dist/src/duration.js +27 -3
  59. package/dist/src/file-diff.d.ts +105 -0
  60. package/dist/src/file-diff.js +244 -0
  61. package/dist/src/graph-manager-chat.d.ts +302 -0
  62. package/dist/src/graph-manager-chat.js +940 -0
  63. package/dist/src/graph-runner.js +6 -0
  64. package/dist/src/graph-server.d.ts +9 -0
  65. package/dist/src/graph-server.js +171 -20
  66. package/dist/src/graph-studio-features.js +2 -2
  67. package/dist/src/graph-sync.js +5 -2
  68. package/dist/src/graph-ui/app.js +369 -183
  69. package/dist/src/graph-ui/controls.css +55 -32
  70. package/dist/src/graph-ui/controls.js +85 -9
  71. package/dist/src/graph-ui/edge-router.js +114 -13
  72. package/dist/src/graph-ui/embed.js +32 -17
  73. package/dist/src/graph-ui/icons.js +1 -0
  74. package/dist/src/graph-ui/index.html +4 -4
  75. package/dist/src/graph-ui/library.css +4 -10
  76. package/dist/src/graph-ui/manager-markdown.js +155 -0
  77. package/dist/src/graph-ui/manager-state.js +191 -0
  78. package/dist/src/graph-ui/manager.css +161 -0
  79. package/dist/src/graph-ui/manager.js +700 -0
  80. package/dist/src/graph-ui/skill-picker.js +6 -6
  81. package/dist/src/graph-ui/studio-canvas.js +17 -15
  82. package/dist/src/graph-ui/studio.css +24 -23
  83. package/dist/src/graph-ui/studio.js +69 -48
  84. package/dist/src/graph-ui/style.css +128 -93
  85. package/dist/src/graph-ui/theme.js +2 -2
  86. package/dist/src/graph-ui/tokens.css +217 -151
  87. package/dist/src/graphs.d.ts +76 -2
  88. package/dist/src/graphs.js +172 -9
  89. package/dist/src/hardened-runtime.js +8 -2
  90. package/dist/src/mcp.d.ts +75 -0
  91. package/dist/src/mcp.js +240 -8
  92. package/dist/src/membership-errors.d.ts +14 -0
  93. package/dist/src/membership-errors.js +24 -1
  94. package/dist/src/membership.d.ts +20 -0
  95. package/dist/src/membership.js +45 -16
  96. package/dist/src/palette.d.ts +25 -8
  97. package/dist/src/palette.js +26 -8
  98. package/dist/src/provider-engine.d.ts +4 -4
  99. package/dist/src/provider-engine.js +39 -22
  100. package/dist/src/provider-keys.d.ts +5 -1
  101. package/dist/src/provider-keys.js +7 -3
  102. package/dist/src/provider-settings.d.ts +4 -1
  103. package/dist/src/provider-settings.js +46 -5
  104. package/dist/src/providers.d.ts +24 -0
  105. package/dist/src/providers.js +47 -2
  106. package/dist/src/qa/guidance.d.ts +26 -0
  107. package/dist/src/qa/guidance.js +46 -0
  108. package/dist/src/qa/index.d.ts +1 -8
  109. package/dist/src/qa/index.js +1 -16
  110. package/dist/src/qa/profile/QaProfile.d.ts +5 -1
  111. package/dist/src/qa/profile/QaProfile.js +6 -2
  112. package/dist/src/qa/runtime/ProcessManager.d.ts +20 -2
  113. package/dist/src/qa/runtime/ProcessManager.js +69 -13
  114. package/dist/src/qa/tools.d.ts +19 -1
  115. package/dist/src/qa/tools.js +20 -145
  116. package/dist/src/react-runtime.d.ts +11 -0
  117. package/dist/src/react-runtime.js +203 -53
  118. package/dist/src/remote/engine-pool.js +21 -6
  119. package/dist/src/run-progress.d.ts +6 -0
  120. package/dist/src/run-progress.js +7 -0
  121. package/dist/src/runtime.d.ts +8 -0
  122. package/dist/src/screen-selection.d.ts +38 -0
  123. package/dist/src/screen-selection.js +103 -0
  124. package/dist/src/session-changes.d.ts +117 -0
  125. package/dist/src/session-changes.js +796 -0
  126. package/dist/src/session-skills.d.ts +75 -0
  127. package/dist/src/session-skills.js +151 -0
  128. package/dist/src/side-panel.d.ts +1 -1
  129. package/dist/src/side-panel.js +6 -12
  130. package/dist/src/skill-commands.js +1 -1
  131. package/dist/src/skills/bundled/control-browser/SKILL.md +9 -1
  132. package/dist/src/skills/bundled/graph-manager/SKILL.md +8 -0
  133. package/dist/src/skills/bundled/provenance.json +3 -3
  134. package/dist/src/skills/bundled/web-gui-tester/SKILL.md +1 -1
  135. package/dist/src/stall-recovery.d.ts +33 -0
  136. package/dist/src/stall-recovery.js +83 -0
  137. package/dist/src/subagent-run.js +1 -2
  138. package/dist/src/telemetry/schema.d.ts +1 -1
  139. package/dist/src/telemetry/schema.js +1 -2
  140. package/dist/src/terminal-ui.d.ts +66 -22
  141. package/dist/src/terminal-ui.js +327 -92
  142. package/dist/src/tool-diff-stats.d.ts +9 -0
  143. package/dist/src/tool-diff-stats.js +20 -0
  144. package/dist/src/tool-names.d.ts +1 -1
  145. package/dist/src/tool-result-filter.js +1 -1
  146. package/dist/src/tools.js +26 -2
  147. package/dist/src/transcript.d.ts +11 -0
  148. package/dist/src/transcript.js +23 -3
  149. package/dist/src/types.d.ts +24 -4
  150. package/dist/src/usage-analytics.d.ts +7 -0
  151. package/dist/src/usage-analytics.js +55 -15
  152. package/docs/concepts/README.md +1 -1
  153. package/docs/concepts/limits.md +9 -0
  154. package/docs/guides/desktop-app.md +1 -1
  155. package/docs/guides/graph-builder.md +16 -1
  156. package/docs/guides/tui.md +9 -9
  157. package/docs/reference/slash-commands.md +2 -1
  158. package/docs/superpowers/plans/2026-11-13-graph-manager-chat.md +203 -0
  159. package/docs/superpowers/plans/2026-11-14-jev-fair-use-pricing.md +79 -0
  160. package/docs/superpowers/specs/2026-11-13-graph-manager-chat-design.md +182 -0
  161. package/docs/superpowers/specs/2026-11-14-jev-fair-use-pricing-design.md +156 -0
  162. package/package.json +1 -1
  163. package/tests/chat-side-panel-test-plan.md +1 -1
  164. package/dist/src/qa/api/http-runner.d.ts +0 -3
  165. package/dist/src/qa/api/http-runner.js +0 -47
  166. package/dist/src/qa/git/ChangeDetector.d.ts +0 -26
  167. package/dist/src/qa/git/ChangeDetector.js +0 -177
  168. package/dist/src/qa/git/DiffReviewer.d.ts +0 -28
  169. package/dist/src/qa/git/DiffReviewer.js +0 -115
  170. package/dist/src/qa/orchestrator/ChangeClassifier.d.ts +0 -14
  171. package/dist/src/qa/orchestrator/ChangeClassifier.js +0 -28
  172. package/dist/src/qa/orchestrator/MergeGate.d.ts +0 -14
  173. package/dist/src/qa/orchestrator/MergeGate.js +0 -40
  174. package/dist/src/qa/orchestrator/QaOrchestrator.d.ts +0 -79
  175. package/dist/src/qa/orchestrator/QaOrchestrator.js +0 -373
  176. package/dist/src/qa/runners/CommandRunner.d.ts +0 -22
  177. package/dist/src/qa/runners/CommandRunner.js +0 -96
  178. package/dist/src/qa/runners/TestRunner.d.ts +0 -21
  179. package/dist/src/qa/runners/TestRunner.js +0 -66
  180. package/dist/src/qa/runtime/RuntimeSmoke.d.ts +0 -11
  181. package/dist/src/qa/runtime/RuntimeSmoke.js +0 -78
  182. package/dist/src/qa/runtime-detect.d.ts +0 -10
  183. package/dist/src/qa/runtime-detect.js +0 -72
  184. package/dist/src/qa/security/DependencyScanner.d.ts +0 -19
  185. package/dist/src/qa/security/DependencyScanner.js +0 -167
  186. package/dist/src/qa/security/SecretScanner.d.ts +0 -3
  187. package/dist/src/qa/security/SecretScanner.js +0 -55
@@ -1,17 +1,220 @@
1
+ /*
2
+ * GENERATED FILE: do not edit. The build writes it from desktop/src/styles/tokens.css
3
+ * (verbatim) followed by src/graph-ui/editor-tokens.css (scripts/graph-ui-tokens.mjs).
4
+ */
5
+
6
+ /* Andorra Code desktop tokens. Two appearances: dark (the ground every first paint starts from) and
7
+ * light. Neutral surfaces carry the work, and every grey but the grounds is one ink at a fixed alpha
8
+ * (ADR 0022, 2026-11-14 amendment). One blue marks the primary action, keyboard focus, a switch that
9
+ * is on, links and progress; nothing else in the chrome carries a hue. Status hues mean state.
10
+ */
11
+
12
+ :root {
13
+ /* Measurements. The row is the Siderail row everywhere: 28px tall, 6px radius, 13px type. */
14
+ --rail-width: 232px; /* written live by RailResizeHandle while the edge is dragged */
15
+ --chrome-height: 36px; /* every title strip */
16
+ --reading-measure: 720px; /* the prose column */
17
+ --settings-measure: 880px; /* every settings page: one column, one left edge */
18
+ --row-height: 28px;
19
+ --row-radius: 6px;
20
+ --control-height: 28px; /* the pill: small labelled actions, composer controls, fields in rows */
21
+ --btn-height: 32px; /* the primary/soft button */
22
+ --btn-radius: 8px;
23
+ --card-radius: 12px;
24
+ --setting-row-height: 52px; /* a Settings row: a title over its one-line description */
25
+ /* The radius scale. Every corner takes one of these steps, and a corner inside another is the
26
+ outer step minus the padding between them, floored at the next step down: 4 for badges, menu
27
+ rows and inline code, 6 for rows, 28px buttons and icon buttons, 8 for 32px buttons, fields,
28
+ code blocks and menus, 12 for cards and dialogs, 20 for the composer (the one large rounded
29
+ object), and full for dots, avatars, switches and status pills. The --row/--btn/--input/--card
30
+ radii above are positions on it. */
31
+ --radius-xs: 4px; --radius-sm: 6px; --radius-md: 8px; --radius-lg: 12px; --radius-xl: 16px; --radius-full: 999px;
32
+ --radius-composer: 20px;
33
+
34
+ --font-ui: "Geist Sans", "Geist", -apple-system, "SF Pro Text", system-ui, sans-serif;
35
+ --font-mono: "Geist Mono", "SF Mono", Menlo, Consolas, ui-monospace, monospace;
36
+ /* The type scale: four sizes, two weights in the chrome. The --type-* role names restate steps on it. */
37
+ --type-xs: 12px; --type-sm: 13px; --type-md: 15px; --type-lg: 20px;
38
+ --type-row: 13px;
39
+ --type-label: 12px;
40
+ --type-section: 15px;
41
+ --type-hint: 12px;
42
+ --weight-regular: 400; --weight-strong: 500;
43
+ /* Leading and tracking, one value per size: 12px on 16, 13px on 18, prose 14px on 22. 13px type is
44
+ tracked in by a hair (−0.08px), the way the platform faces set their text size. */
45
+ --leading-xs: 16px; --leading-sm: 18px; --leading-prose: 22px; --leading-code: 1.55;
46
+ --tracking-sm: -0.08px; --tracking-title: -0.01em; --tracking-code: .06em;
47
+ /* A message is the one thing the window is read for at length, so its prose takes one step up
48
+ from the row size. The body is regular 400; a heading is 600 and a bold term 500. A bold term is
49
+ set apart by ink as well as weight: the body takes the ink a fifth of the way to the surface and
50
+ a bold term takes full ink. Declared once: the theme blocks redefine --text and --bg-surface on
51
+ this same element, so the mix follows the theme. */
52
+ --type-prose: 14px; --weight-prose: 400; --weight-prose-strong: 600; --weight-prose-bold: 500;
53
+ --text-prose: color-mix(in srgb, var(--text) 80%, var(--bg-surface));
54
+ /* The spacing scale. Padding, margins and gaps take these values and nothing between them. */
55
+ --space-1: 4px; --space-2: 8px; --space-3: 12px; --space-4: 16px; --space-5: 24px; --space-6: 32px;
56
+ --input-height: 32px; /* every text field, boxed select and popover search */
57
+ --input-radius: 8px;
58
+
59
+ /* Dark grounds: sidebar, chrome, pane, raised (menus, dialogs, the composer). Pure neutrals; these
60
+ are also the first paint, before the boot script or React has named an appearance. */
61
+ --bg-rail: #101010; --bg-app: #141414; --bg-surface: #191919; --bg-input: #1f1f1f;
62
+ /* Every other grey is the ink at a fixed alpha, so it reads the same on any ground: text 100 / 74 /
63
+ 60 / 36 %, hairline 8 %, field edge 12 %, card 6 %, control 8 % (14 % hovered), raised 16 %. */
64
+ --text: #f5f5f5; --text-2: rgba(245,245,245,.74); --text-3: rgba(245,245,245,.60);
65
+ /* A control that cannot be used. It is its own token, and a clear step below the muted inks: when
66
+ it shared --text-3's value a disabled pill read as live and a quiet live one read as disabled. */
67
+ --text-disabled: rgba(245,245,245,.36);
68
+ --border: rgba(245,245,245,.08); --border-strong: rgba(245,245,245,.12);
69
+ --bg-card: rgba(245,245,245,.06);
70
+ /* A control's own fill (the secondary button), and its hover. */
71
+ --bg-control: rgba(245,245,245,.08); --bg-control-hover: rgba(245,245,245,.14);
72
+ /* The raised chip: the selected segment of a segmented control. */
73
+ --bg-raised: rgba(245,245,245,.16);
74
+ /* A card's fill composited onto the pane, for what must hide what is under it (a donut's hole, a
75
+ ring punched around a dot that overlaps a logo). */
76
+ --bg-card-solid: color-mix(in srgb, var(--text) 6%, var(--bg-surface));
77
+ /* A switch that is off: a boundary of 3:1 on the pane in both themes. */
78
+ --switch-off: var(--text-disabled);
79
+ /* Pointed at, and chosen. One hover for every quiet control, row, menu item and pill, and one
80
+ selection a clear step stronger, so the open task never looks like the one under the pointer. */
81
+ --hover: color-mix(in srgb, var(--text) 7%, transparent);
82
+ --selected: color-mix(in srgb, var(--text) 12%, transparent);
83
+ --bg-hover: var(--hover);
84
+ /* The neutral accent: the send button, the caret, a checked checkbox, a field's focus halo. */
85
+ --accent: #ececec; --accent-soft: rgba(245,245,245,.16); --on-accent: #141414;
86
+ --accent-hover: #ffffff; --accent-ring: rgba(245,245,245,.22);
87
+ /* The one hue in the chrome: the primary button's fill, keyboard focus, a switch that is on, links
88
+ and progress. Everything else is neutral, so the blue stays rare and means "the action". */
89
+ --accent-fill: #1372da; --accent-fill-hover: #2a7fdd; --on-accent-fill: #f5f5f5;
90
+ --accent-text: #71aeff; --focus: #1f87fc;
91
+ /* 2026-11-12: the chrome keeps no amber. --warn is the attention ink, a bright neutral: a row or
92
+ a pill that needs its person is marked by contrast, weight and motion, never by a warning hue.
93
+ --err is one clean red, kept for what failed and for removed lines; it is never a button. */
94
+ --ok: #2f9e6a; --err: #e5484d; --warn: #c9c9c9; --you: #c9c9c9;
95
+ /* Merged: the violet GitHub gives a merged pull request, the one state the three status hues above
96
+ do not already name. */
97
+ --merged: #8e6ee0;
98
+ /* Text-safe status variants: --ok/--err/--warn are the dot and border colours the Siderail
99
+ language defines, and at small text sizes they fall short of 4.5:1 on these surfaces. Any use
100
+ of a status colour as foreground text takes the -text variant instead. */
101
+ --ok-text: #7cc79a; --err-text: #f47174; --warn-text: #ececec; --merged-text: #bba4f2;
102
+ /* A picked skill in the composer. It is content the person typed, not chrome, and it has to read as
103
+ recognised at a glance, so it carries the one hue outside status and the accent (see ADR 0022).
104
+ 4.5:1 or better on its wash over the input ground in both themes. */
105
+ --skill: #aab8ff; --skill-wash: rgba(120,140,255,.18);
106
+ /* A status pill's fill: a faint wash of its hue under the -text ink, light enough that the ink
107
+ keeps 4.5:1 on both the card and the pane ground. */
108
+ --ok-wash: rgba(47,158,106,.14); --err-wash: rgba(229,72,77,.14); --merged-wash: rgba(142,110,224,.14);
109
+ --warn-wash: rgba(245,245,245,.10);
110
+ --add-wash: rgba(47,158,106,.16); --del-wash: rgba(229,72,77,.16);
111
+ --overlay: rgba(0,0,0,.5);
112
+
113
+ /* Fenced code tokens, on the input surface the blocks shade. The register is a terminal's, not
114
+ the chrome's: hue only where code has meaning, at the contrast the small mono type needs. */
115
+ --code-keyword: #569cd6; --code-string: #ce9178; --code-number: #b5cea8; --code-comment: #6a9955;
116
+ --code-fn: #dcdcaa; --code-var: #9cdcfe; --code-type: #4ec9b0; --code-meta: #c586c0;
117
+
118
+ /* Rows on the rail fill with the shared hover and selection. */
119
+ --rail-wash: var(--hover);
120
+ /* 2026-11-12: the rail is a flat ground. The glow and grain are kept as tokens and switched off. */
121
+ --glow-1: transparent; --glow-2: transparent; --glow-size: 440px 380px; --grain: 0;
122
+ /* The waiting update row's halo: faint at rest and brighter at its peak. */
123
+ --update-glow-rest: rgba(245,245,245,.10); --update-glow-peak: rgba(245,245,245,.28);
124
+
125
+ /* Elevation: one shadow per step. lift-2 under a bordered card at rest, lift-3 for the composer
126
+ holding focus, menu for every menu and popover, panel for dialogs and toasts, raised for a chip
127
+ lifted out of its well, knob for a switch's thumb. On a dark ground the lift gains a highlight
128
+ inside its top edge. */
129
+ --lift-2: inset 0 1px 0 rgba(255,255,255,.05), 0 2px 4px rgba(0,0,0,.28), 0 14px 30px -10px rgba(0,0,0,.55);
130
+ --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);
131
+ --shadow-menu: 0 8px 28px rgba(0,0,0,.4);
132
+ --shadow-panel: var(--shadow-menu);
133
+ --shadow-lift: var(--shadow-menu); /* kept for the graph editor's copy; unused here */
134
+ --shadow-raised: 0 1px 2px rgba(0,0,0,.32);
135
+ --shadow-knob: 0 1px 2px rgba(0,0,0,.4);
136
+
137
+ /* Layers, lowest first. The window's own controls (chrome) sit under every menu and dialog. Menus
138
+ sit above dialogs on purpose: a picker opened inside a dialog owns the next click. */
139
+ --z-raised: 10; --z-chrome: 30; --z-rail-menu: 40; --z-dialog: 50; --z-menu: 60; --z-palette: 70; --z-toast: 80;
140
+ --z-lightbox: 90; --z-tooltip: 100;
141
+
142
+ /* Motion: five durations, four curves. Nothing UI-driven exceeds 240ms, and nothing loops while
143
+ the app is idle: the spinner turns only while work runs. */
144
+ /* 2026-11-12: quick and soft, with no overshoot. Row hover arrives and leaves at once; popovers
145
+ and rows take --dur-2, dialogs and view changes --dur-3, height --dur-4. */
146
+ --dur-0: 80ms; --dur-1: 120ms; --dur-2: 160ms; --dur-3: 200ms; --dur-4: 240ms; --stagger: 40ms;
147
+ --ease-standard: cubic-bezier(.2,.8,.2,1);
148
+ --ease-out: var(--ease-standard);
149
+ --ease-in-out: cubic-bezier(.65,0,.35,1);
150
+ --ease-exit: cubic-bezier(.4,0,1,1);
151
+ --ease-settle: var(--ease-standard); /* kept for the graph editor's copy; unused here */
152
+ --pop-distance: 4px; --pop-scale: .98;
153
+ --loop-spin: 1s; --loop-shimmer: 1.8s; --loop-breathe: 2.4s;
154
+
155
+ color-scheme: dark;
156
+ }
157
+
158
+ /* Light: white panes and fields on a #f5f5f5 rail, with the same ink-at-alpha greys as dark. The
159
+ muted ink is 66 % rather than 60 % so it keeps 5:1 on every light ground (the rail, a card, a
160
+ hovered row), the bar a live muted ink holds here so it never reads as disabled. A light block only states what it
161
+ changes; measurements, motion and the layers inherit from the dark root. */
162
+ :root[data-theme="light"] {
163
+ --bg-rail: #f5f5f5; --bg-app: #ffffff; --bg-surface: #ffffff; --bg-input: #ffffff;
164
+ --text: #1c1c1c; --text-2: rgba(28,28,28,.74); --text-3: rgba(28,28,28,.66); --text-disabled: rgba(28,28,28,.36);
165
+ --border: rgba(28,28,28,.08); --border-strong: rgba(28,28,28,.12);
166
+ --bg-card: rgba(28,28,28,.06);
167
+ --bg-control: rgba(28,28,28,.08); --bg-control-hover: rgba(28,28,28,.14);
168
+ /* The raised segment is white in light: it lifts out of its grey well by its fill and shadow. */
169
+ --bg-raised: #ffffff;
170
+ --switch-off: color-mix(in srgb, var(--text) 50%, transparent);
171
+ --accent: #1c1c1c; --accent-soft: rgba(28,28,28,.16); --on-accent: #ffffff;
172
+ --accent-hover: #333333; --accent-ring: rgba(28,28,28,.16);
173
+ --accent-fill: #1680f3; --accent-fill-hover: #1776dd; --on-accent-fill: #ffffff;
174
+ --accent-text: #0b6dd3; --focus: #1680f3;
175
+ --ok: #3d7a5c; --err: #d13438; --warn: #45464b; --you: #45464b;
176
+ /* No merged ink in the source palette; this violet is in the key of its pass and fail inks. */
177
+ --merged: #6a4fc4;
178
+ --ok-text: #3d7a5c; --err-text: #c4262e; --warn-text: #1c1c1c; --merged-text: #6a4fc4;
179
+ --skill: #3b4fc4; --skill-wash: rgba(59,79,196,.10);
180
+ /* Fainter than the dark washes: at .14 the pass ink on its own wash drops under 4.5:1. */
181
+ --ok-wash: rgba(61,122,92,.08); --err-wash: rgba(209,52,56,.08); --merged-wash: rgba(106,79,196,.08);
182
+ --warn-wash: rgba(28,28,28,.06);
183
+ /* A removed line has to be found beside an added one: at .08 it was all but white. At .13 the
184
+ fail ink still keeps 5:1 on it. */
185
+ --add-wash: rgba(61,122,92,.14); --del-wash: rgba(209,52,56,.13);
186
+ --overlay: rgba(22,23,26,.32);
187
+
188
+ --code-keyword: #0000ff; --code-string: #a31515; --code-number: #098658; --code-comment: #008000;
189
+ --code-fn: #795e26; --code-var: #001080; --code-type: #267f99; --code-meta: #af00db;
190
+
191
+ --glow-1: transparent; --glow-2: transparent; --glow-size: 480px 420px; --grain: 0;
192
+ --update-glow-rest: rgba(28,28,28,.08); --update-glow-peak: rgba(28,28,28,.20);
193
+
194
+ --lift-2: 0 1px 2px rgba(16,18,24,.04), 0 6px 24px rgba(16,18,24,.07);
195
+ --lift-3: 0 1px 2px rgba(16,18,24,.05), 0 6px 24px rgba(16,18,24,.085);
196
+ --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);
197
+ --shadow-panel: var(--shadow-menu);
198
+ --shadow-lift: var(--shadow-menu);
199
+ --shadow-raised: 0 1px 2px rgba(16,18,24,.12), 0 0 0 .5px rgba(16,18,24,.06);
200
+ --shadow-knob: 0 1px 2px rgba(16,18,24,.3);
201
+
202
+ color-scheme: light;
203
+ }
204
+
1
205
  /*
2
- * The Graph Studio's visual register.
206
+ * The Graph Studio's own additions to the desktop client's tokens.
3
207
  *
4
- * The editor is a surface of the same product as the desktop client, so it renders the same
5
- * register: the Siderail tokens the desktop client adopted, with no accent hue, hairline
6
- * borders, Geist type and the rail's glow-and-grain ground. The values below are the desktop
7
- * client's own tokens (`desktop/src/styles/tokens.css`), so the editor embedded in the desktop
8
- * window is the same surface, not a lookalike. `test/graph-ui-theme.test.ts` fails when the two
9
- * drift apart.
208
+ * The editor is a surface of the same product as the desktop client, so it does not keep a copy of
209
+ * the client's tokens: the build (`build-assets.mjs`, through `scripts/graph-ui-tokens.mjs`) writes
210
+ * the served `/tokens.css` as `desktop/src/styles/tokens.css` verbatim followed by this file. Every
211
+ * surface, ink, radius, duration and curve the editor reads is therefore the client's own, in both
212
+ * appearances, and a token the client adds reaches the editor on the next build.
213
+ * `test/graph-ui-theme.test.ts` compares every token of the generated file with the client's.
10
214
  *
11
- * Dark is the ground the editor paints before its script runs. The script then names the
12
- * appearance: the one the desktop client sends when the editor is framed in it, otherwise the one
13
- * the reader pinned in the status bar, otherwise the operating system's, as the client does by
14
- * default. The light appearance is the same register in daylight, the website's palette.
215
+ * This file only adds what the client has no use for: the editor's font faces, served from its own
216
+ * origin, the inspector's width and the canvas ground. It must never restate a client token; the
217
+ * test fails if it does, because a restated value is exactly the copy that drifted before.
15
218
  */
16
219
 
17
220
  /* The desktop client's face, served from this origin so the editor and the app agree. */
@@ -38,150 +241,13 @@
38
241
  }
39
242
 
40
243
  :root {
41
- /* Measurements. The desktop client's row is the canonical list row everywhere. */
42
- --row-height: 28px;
43
- --row-radius: 6px;
44
- --control-height: 28px;
45
- --btn-height: 32px;
46
- --btn-radius: 8px;
47
- --card-radius: 12px;
48
- --chrome-height: 36px;
49
244
  --panel: 380px; /* the node inspector's width; the edge drag keeps it between 360 and 720 */
50
245
 
51
- --font-ui: "Geist Sans", "Geist", -apple-system, "SF Pro Text", system-ui, sans-serif;
52
- --font-mono: "Geist Mono", "SF Mono", Menlo, Consolas, ui-monospace, monospace;
53
- --type-row: 13px;
54
- --type-label: 12px;
55
- --type-section: 15px;
56
- --type-hint: 12px;
57
- --type-xs: 12px;
58
- --type-sm: 13px;
59
- --type-md: 15px;
60
- --type-lg: 20px;
61
- --weight-regular: 400;
62
- --weight-strong: 500;
63
- --space-1: 4px;
64
- --space-2: 8px;
65
- --space-3: 12px;
66
- --space-4: 16px;
67
- --space-5: 24px;
68
- --space-6: 32px;
69
- --input-height: 32px;
70
- --input-radius: 8px;
71
-
72
- /* Motion: four durations, three curves, nothing longer than 320ms. */
73
- --dur-1: 120ms;
74
- --dur-2: 160ms;
75
- --dur-3: 200ms;
76
- --dur-4: 240ms;
77
- --ease-standard: cubic-bezier(.2, .8, .2, 1);
78
- --ease-exit: cubic-bezier(.4, 0, 1, 1);
79
- --ease-settle: cubic-bezier(.2, .8, .2, 1);
80
-
81
- /* Dark surfaces and ink. The desktop client's own values. */
82
- --bg-app: #151517;
83
- --bg-surface: #1b1b1e;
84
- --bg-card: #232327;
85
- --bg-input: #202024;
86
- --border: #2a2a30;
87
- --border-strong: #414149;
88
- --text: #ececee;
89
- --text-2: #b4b4bc;
90
- --text-3: #9a9aa4;
91
- --accent: #dedee3;
92
- --accent-soft: #36363d;
93
- --on-accent: #151517;
94
- --accent-hover: #ffffff;
95
- --accent-ring: rgba(222,222,227,.22);
96
- --ok: #2f9e6a;
97
- --err: #e5484d;
98
- --warn: #c9c9d1;
99
- --you: #bcbcc5;
100
- --ok-text: #7cc79a;
101
- --err-text: #f47174;
102
- --warn-text: #dedee3;
103
- --add-wash: rgba(47, 158, 106, .16);
104
- --del-wash: rgba(229,72,77,.16);
105
- --overlay: rgba(0, 0, 0, .5);
106
-
107
- /* The rail's own ground: two static luminance glows and a fine monochrome grain. */
108
- --bg-rail: #131315;
109
- --rail-wash: rgba(255, 255, 255, .075);
110
- --glow-1: transparent;
111
- --glow-2: transparent;
112
- --glow-size: 440px 380px;
113
- --grain: 0;
114
-
115
- /* Contact shadows: on a dark ground the lift gains a highlight inside its top edge. */
116
- --lift-2: inset 0 1px 0 rgba(255, 255, 255, .05), 0 2px 4px rgba(0, 0, 0, .28), 0 14px 30px -10px rgba(0, 0, 0, .55);
117
- --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);
118
- --shadow-menu: 0 8px 28px rgba(0, 0, 0, .4);
119
- --shadow-lift: 0 8px 24px rgba(0, 0, 0, .45);
120
- --shadow-panel: var(--shadow-menu);
121
-
122
- /* The canvas: its own ground, a fine dot grid, and the halo colour a crossing edge cuts. */
123
- --canvas-bg: #1b1b1e;
246
+ /* The canvas: the pane's own ground, and the dot of the grid that marks every snap point. */
247
+ --canvas-bg: var(--bg-surface);
124
248
  --canvas-dot: #2f2f36;
125
-
126
- /* Node types: the left stripe and icon of a card. Muted and desaturated so they mark kind, not
127
- state, and stay legible on the card in both appearances. Editor-only, so the desktop client
128
- does not carry them. */
129
- --node-agent: #8a9ab5;
130
- --node-control: #a394b8;
131
- --node-action: #b3a07a;
132
- --node-end: #86a893;
133
-
134
- color-scheme: dark;
135
249
  }
136
250
 
137
- /* The same register in daylight: the desktop client's light tokens, Andorra Labs Alpha's palette. */
138
251
  :root[data-theme='light'] {
139
- --bg-app: #ffffff;
140
- --bg-surface: #ffffff;
141
- --bg-card: #efeff1;
142
- --bg-input: #ffffff;
143
- --border: #e0e0e3;
144
- --border-strong: #c8c8ce;
145
- /* Darker than Alpha's --muted / --faint, which read as disabled on white (ADR 0022). */
146
- --text: #191a1c;
147
- --text-2: #45464b;
148
- --text-3: #5c5d63;
149
- --accent: #191a1c;
150
- --accent-soft: #e0e0e3;
151
- --on-accent: #ffffff;
152
- --accent-hover: #2c2e32;
153
- --accent-ring: rgba(25,26,28,.18);
154
- --ok: #3d7a5c;
155
- --err: #d13438;
156
- --warn: #45464b;
157
- --you: #007aff;
158
- --ok-text: #3d7a5c;
159
- --err-text: #c4262e;
160
- --warn-text: #191a1c;
161
- --add-wash: rgba(61,122,92,.14);
162
- --del-wash: rgba(209,52,56,.13);
163
- --overlay: rgba(22,23,26,.32);
164
-
165
- --bg-rail: #f0f0f1;
166
- --rail-wash: rgba(25,26,28,.06);
167
- --glow-1: transparent;
168
- --glow-2: transparent;
169
- --glow-size: 480px 420px;
170
- --grain: 0;
171
-
172
- --lift-2: 0 1px 2px rgba(16,18,24,.04), 0 6px 24px rgba(16,18,24,.07);
173
- --lift-3: 0 1px 2px rgba(16,18,24,.05), 0 6px 24px rgba(16,18,24,.085);
174
- --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);
175
- --shadow-lift: var(--shadow-menu);
176
- --shadow-panel: var(--shadow-menu);
177
-
178
- --canvas-bg: #ffffff;
179
252
  --canvas-dot: #e0e0e3;
180
-
181
- --node-agent: #55678a;
182
- --node-control: #6f6189;
183
- --node-action: #7d6a42;
184
- --node-end: #4f7a60;
185
-
186
- color-scheme: light;
187
- }
253
+ }
@@ -177,9 +177,15 @@ export interface Graph {
177
177
  [key: string]: unknown;
178
178
  };
179
179
  }
180
- export declare const GRAPH_TOOLS: readonly ["Read", "Write", "Edit", "Glob", "Grep", "Bash", "PowerShell", "NativeExec", "AsyncProcess", "PowerShellFast", "ShellMetrics", "read_file", "list_files", "search_files", "write_file", "edit_file", "read", "write", "edit", "find", "grep", "ls", "powershell", "bash", "shell", "git_read", "read_artifact", "write_artifact", "repo_explore", "memory_search", "set_timer", "pull_request", "graphs", "qa.inspect_project", "qa.status", "qa.fast", "qa.deep", "qa.test", "qa.terminal", "qa.security", "qa.browser", "qa.browser_session", "browser.solve_captcha", "web_search", "read_skill_resource", "browser.panel", "browser.incognito"];
180
+ export declare const GRAPH_TOOLS: readonly ["Read", "Write", "Edit", "Glob", "Grep", "Bash", "PowerShell", "NativeExec", "AsyncProcess", "PowerShellFast", "ShellMetrics", "read_file", "list_files", "search_files", "write_file", "edit_file", "read", "write", "edit", "find", "grep", "ls", "powershell", "bash", "shell", "git_read", "read_artifact", "write_artifact", "repo_explore", "memory_search", "set_timer", "pull_request", "graphs", "qa.terminal", "qa.browser", "qa.browser_session", "browser.solve_captcha", "web_search", "read_skill_resource", "browser.panel", "browser.incognito"];
181
181
  /** QA tool names are an explicit allowlist; gating keys off membership, never a name prefix. */
182
182
  export declare const QA_TOOL_NAMES: readonly string[];
183
+ /**
184
+ * The QA check pipeline, removed: these tools ran lint, tests and a merge gate that the agent's
185
+ * own shell commands already cover, at about two extra requests per run. A saved graph may still
186
+ * list them in a node's tools; they are dropped on load instead of failing the graph.
187
+ */
188
+ export declare const RETIRED_GRAPH_TOOLS: ReadonlySet<string>;
183
189
  export declare const isQaToolName: (name: string) => boolean;
184
190
  export declare const LEGACY_DEFAULT_HARNESS: Graph;
185
191
  /** The intake role is configuration for the shared executor, not a separate runtime. */
@@ -214,8 +220,47 @@ export declare const DEFAULT_HARNESS_REVISION_5: Graph;
214
220
  * tasks alongside coding. The agent still receives the confirmed task instruction through the same
215
221
  * intake handoff, and topology, capabilities and tooling are exactly revision 5's, so the change is
216
222
  * presentation and instruction only.
223
+ *
224
+ * Revision 6 is frozen and is no longer the latest `default`: it is the body of the paid Andorra
225
+ * preset (`getAndorraHarness`), the Orchestrator -> Andorra Agent -> Done workflow. The graph a
226
+ * Default run executes is {@link DEFAULT_GRAPH}.
217
227
  */
218
228
  export declare const DEFAULT_HARNESS: Graph;
229
+ /**
230
+ * Revision 7, the latest `default`: one Andorra Agent and no Orchestrator intake.
231
+ *
232
+ * Selecting Default runs a single agent that cannot delegate (`SOFTWARE_ENGINEER_HARNESS`, built from
233
+ * the same {@link DEFAULT_AGENT_GRAPH} as this revision), while revision 6 put an Orchestrator in front of it. Graph
234
+ * Studio and the graph tools read `default` from here, so they showed a workflow that Default never
235
+ * ran. This revision describes what Default runs; revision 6 remains loadable as history and as the
236
+ * Andorra preset. It is schema version 3 so the editor's migration leaves it as one agent rather than
237
+ * adding an Orchestrator in front of it.
238
+ */
239
+ export declare const DEFAULT_GRAPH: Graph;
240
+ /** The id of the bundled Graph Manager graph. Reserved: no saved, synced or deleted graph may use it. */
241
+ export declare const GRAPH_MANAGER_GRAPH_ID = "andorra-graph-manager";
242
+ /**
243
+ * The graph Graph Studio's Graph Manager chat runs: one top-level agent and no Orchestrator intake.
244
+ *
245
+ * It is built in rather than saved so every installation has it and no account can edit it, and it
246
+ * is hidden from graph lists because it is not a workflow a user selects for a task. The agent
247
+ * sets neither `capabilities` nor `tools`, exactly as the default graph's execution agent: the
248
+ * defaults allow the shell, which is what grants the `graphs` tool, and filesystem reads, which
249
+ * grant `read_skill_resource`. A delegated subagent never receives `graphs`, so the work stays on
250
+ * this node. Only an Orchestrator is given `ask_user`, so the agent asks in its reply and the user's
251
+ * next message is the answer; the node keeps session history so that message sees the question.
252
+ */
253
+ export declare const GRAPH_MANAGER_HARNESS: Graph;
254
+ /**
255
+ * The configured MCP servers a run of this graph connects at its start.
256
+ *
257
+ * Graph Manager works only through the `graphs` tool and its bundled skill, and its chat runs
258
+ * under Ask for approval, where every server raises a connection prompt before the first reply:
259
+ * its run connects none. Every other graph connects what the user configured.
260
+ */
261
+ export declare function graphMcpServers<T>(graphId: string, servers: Record<string, T>): Record<string, T>;
262
+ /** The refusal every path that would write, delete or tombstone the reserved id answers with. */
263
+ export declare const reservedGraphId: (id: string) => Error;
219
264
  /** Upgrade only in-memory copies. Stored snapshots remain unchanged. */
220
265
  /**
221
266
  * `addOrchestrator: false` upgrades a legacy graph without an Orchestrator to the current schema as it
@@ -267,6 +312,34 @@ export interface GraphValidationOptions {
267
312
  */
268
313
  export declare function maxNodeVisitsOf(graph: Pick<Graph, 'limits'>): number;
269
314
  export declare function validateGraph(value: unknown, options?: GraphValidationOptions): Graph;
315
+ /**
316
+ * The agent nodes a run can reach after this node, nearest first, without the node itself.
317
+ *
318
+ * Every outgoing edge counts whatever its outcome, so the list is what may run after the node,
319
+ * not what will: a node told what later nodes exist leaves their work to them rather than doing
320
+ * it early. A node a loop leads back to is still excluded, because it is this node.
321
+ */
322
+ export declare function laterAgentNodes(graph: Pick<Graph, 'nodes' | 'edges'>, nodeId: string): GraphNode[];
323
+ /**
324
+ * Whether a node's name says it tests the change: "QA Tester", "Test runner", "Verifier".
325
+ *
326
+ * Graphs declare no testing role, so the name is the evidence a graph author gives; a name that
327
+ * does not say so is treated as not testing, which leaves the node's predecessors told to verify
328
+ * their own work as before.
329
+ */
330
+ export declare function isTestingNode(node: Pick<GraphNode, 'name'>): boolean;
331
+ /**
332
+ * The testing node this node's work is sure to pass through: every outcome the node can complete
333
+ * with routes, along every path, through a testing node before the run can end. Absent when any
334
+ * route can finish untested — a delegating Orchestrator's `delivered` edge straight to Done, an
335
+ * outcome no edge handles (this node's or any node's on the way), or a branch that reaches an end
336
+ * first — because a node told to leave
337
+ * the running app to a tester must not be one whose work can ship without that tester.
338
+ *
339
+ * A path that leads back to the node itself is not an escape: the node runs again and its own
340
+ * routes are the ones being checked.
341
+ */
342
+ export declare function testerOnEveryRoute(graph: Pick<Graph, 'nodes' | 'edges'>, nodeId: string): string | undefined;
270
343
  /**
271
344
  * Whether a run of this graph can execute the session's own provider/model pair.
272
345
  *
@@ -318,7 +391,8 @@ export declare function saveGraph(input: unknown, expectedRevision: number | nul
318
391
  * race one into leaving a half-written folder behind. The folder leaves the live path in one
319
392
  * rename while the lock is held, so a save that lands during the removal writes into a fresh
320
393
  * folder and survives it. Deleting the bundled `default` is refused: it has no storage to remove,
321
- * and a hidden preset would only return on the next launch.
394
+ * and a hidden preset would only return on the next launch. The built-in Graph Manager graph is
395
+ * refused for the same reason, by name.
322
396
  */
323
397
  export declare function deleteGraph(id: string, directory?: string, options?: {
324
398
  onDetached?: () => Promise<void>;