@andorra-labs/code 0.1.8 → 0.1.9
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/THIRD_PARTY_NOTICES.md +2 -1
- package/dist/src/account-presentation.d.ts +11 -0
- package/dist/src/account-presentation.js +29 -2
- package/dist/src/agent-execution.js +37 -4
- package/dist/src/agent-mcp.d.ts +12 -0
- package/dist/src/agent-mcp.js +81 -2
- package/dist/src/app-server/protocol.d.ts +12 -0
- package/dist/src/app-server/reasoning.d.ts +0 -8
- package/dist/src/app-server/reasoning.js +15 -28
- package/dist/src/app-server.d.ts +7 -0
- package/dist/src/app-server.js +59 -11
- package/dist/src/auth/AuthManager.d.ts +15 -0
- package/dist/src/auth/AuthManager.js +66 -7
- package/dist/src/browser-runner.js +1 -2
- package/dist/src/browser-server.js +10 -2
- package/dist/src/browser-session.js +6 -2
- package/dist/src/browser-stealth.d.ts +29 -0
- package/dist/src/browser-stealth.js +166 -0
- package/dist/src/browser-ui/app.js +108 -13
- package/dist/src/browser-ui/icons/chevron-right.svg +8 -0
- package/dist/src/browser-ui/index.html +8 -8
- package/dist/src/browser-ui/style.css +199 -171
- package/dist/src/browser-ui/tokens.css +198 -0
- package/dist/src/browser-view.d.ts +57 -9
- package/dist/src/browser-view.js +187 -36
- package/dist/src/cli.js +21 -4
- package/dist/src/coding-tools.js +9 -5
- package/dist/src/command-screens.js +4 -4
- package/dist/src/commands.d.ts +1 -1
- package/dist/src/commands.js +2 -1
- package/dist/src/completion-gates.d.ts +35 -0
- package/dist/src/completion-gates.js +25 -0
- package/dist/src/completion.d.ts +6 -0
- package/dist/src/completion.js +36 -3
- package/dist/src/config.d.ts +1 -1
- package/dist/src/config.js +2 -2
- package/dist/src/context-budget.d.ts +11 -0
- package/dist/src/context-budget.js +13 -0
- package/dist/src/decision/DecisionEngine.d.ts +5 -1
- package/dist/src/decision/DecisionManager.d.ts +1 -0
- package/dist/src/decision/DecisionManager.js +14 -3
- package/dist/src/decision/FactContinuations.d.ts +6 -0
- package/dist/src/decision/FactContinuations.js +9 -1
- package/dist/src/decision/FactServiceGate.js +1 -1
- package/dist/src/decision/hostedSkills.d.ts +37 -0
- package/dist/src/decision/hostedSkills.js +64 -0
- package/dist/src/decision/providers/AndorraDecisionProvider.d.ts +10 -2
- package/dist/src/decision/providers/AndorraDecisionProvider.js +121 -10
- package/dist/src/default-graph.d.ts +11 -0
- package/dist/src/default-graph.js +20 -0
- package/dist/src/duration.d.ts +13 -2
- package/dist/src/duration.js +27 -3
- package/dist/src/graph-manager-chat.d.ts +302 -0
- package/dist/src/graph-manager-chat.js +940 -0
- package/dist/src/graph-runner.js +6 -0
- package/dist/src/graph-server.d.ts +9 -0
- package/dist/src/graph-server.js +167 -16
- package/dist/src/graph-studio-features.js +2 -2
- package/dist/src/graph-sync.js +5 -2
- package/dist/src/graph-ui/app.js +252 -71
- package/dist/src/graph-ui/controls.css +55 -32
- package/dist/src/graph-ui/controls.js +85 -9
- package/dist/src/graph-ui/edge-router.js +114 -13
- package/dist/src/graph-ui/embed.js +23 -8
- package/dist/src/graph-ui/index.html +3 -3
- package/dist/src/graph-ui/library.css +4 -10
- package/dist/src/graph-ui/manager-markdown.js +155 -0
- package/dist/src/graph-ui/manager-state.js +191 -0
- package/dist/src/graph-ui/manager.css +161 -0
- package/dist/src/graph-ui/manager.js +700 -0
- package/dist/src/graph-ui/studio-canvas.js +2 -0
- package/dist/src/graph-ui/studio.css +24 -23
- package/dist/src/graph-ui/studio.js +29 -8
- package/dist/src/graph-ui/style.css +125 -92
- package/dist/src/graph-ui/tokens.css +217 -151
- package/dist/src/graphs.d.ts +69 -1
- package/dist/src/graphs.js +160 -7
- package/dist/src/hardened-runtime.js +8 -2
- package/dist/src/membership-errors.d.ts +14 -0
- package/dist/src/membership-errors.js +24 -1
- package/dist/src/membership.d.ts +20 -0
- package/dist/src/membership.js +45 -16
- package/dist/src/palette.d.ts +25 -8
- package/dist/src/palette.js +26 -8
- package/dist/src/provider-engine.d.ts +4 -4
- package/dist/src/provider-engine.js +39 -22
- package/dist/src/providers.d.ts +24 -0
- package/dist/src/providers.js +47 -2
- package/dist/src/qa/guidance.d.ts +26 -0
- package/dist/src/qa/guidance.js +59 -0
- package/dist/src/qa/index.d.ts +1 -6
- package/dist/src/qa/index.js +1 -14
- package/dist/src/qa/runtime/ProcessManager.d.ts +20 -2
- package/dist/src/qa/runtime/ProcessManager.js +69 -13
- package/dist/src/react-runtime.d.ts +11 -0
- package/dist/src/react-runtime.js +190 -51
- package/dist/src/remote/engine-pool.js +4 -1
- package/dist/src/run-progress.d.ts +6 -0
- package/dist/src/run-progress.js +7 -0
- package/dist/src/runtime.d.ts +8 -0
- package/dist/src/session-skills.d.ts +75 -0
- package/dist/src/session-skills.js +151 -0
- package/dist/src/side-panel.d.ts +1 -1
- package/dist/src/side-panel.js +6 -12
- package/dist/src/skill-commands.js +1 -1
- package/dist/src/skills/bundled/control-browser/SKILL.md +9 -1
- package/dist/src/skills/bundled/graph-manager/SKILL.md +8 -0
- package/dist/src/skills/bundled/provenance.json +3 -3
- package/dist/src/skills/bundled/web-gui-tester/SKILL.md +1 -1
- package/dist/src/stall-recovery.d.ts +22 -0
- package/dist/src/stall-recovery.js +71 -0
- package/dist/src/subagent-run.js +1 -2
- package/dist/src/terminal-ui.d.ts +2 -2
- package/dist/src/terminal-ui.js +18 -13
- package/dist/src/transcript.js +9 -1
- package/dist/src/types.d.ts +18 -4
- package/dist/src/usage-analytics.d.ts +7 -0
- package/dist/src/usage-analytics.js +55 -15
- package/docs/concepts/README.md +1 -1
- package/docs/concepts/limits.md +9 -0
- package/docs/guides/desktop-app.md +1 -1
- package/docs/guides/graph-builder.md +16 -1
- package/docs/reference/slash-commands.md +2 -1
- package/docs/superpowers/plans/2026-11-13-graph-manager-chat.md +203 -0
- package/docs/superpowers/plans/2026-11-14-jev-fair-use-pricing.md +79 -0
- package/docs/superpowers/specs/2026-11-13-graph-manager-chat-design.md +182 -0
- package/docs/superpowers/specs/2026-11-14-jev-fair-use-pricing-design.md +156 -0
- package/package.json +1 -1
- package/tests/chat-side-panel-test-plan.md +1 -1
|
@@ -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
|
|
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
|
|
5
|
-
*
|
|
6
|
-
*
|
|
7
|
-
*
|
|
8
|
-
*
|
|
9
|
-
*
|
|
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
|
-
*
|
|
12
|
-
*
|
|
13
|
-
*
|
|
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
|
-
|
|
52
|
-
--
|
|
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
|
+
}
|
package/dist/src/graphs.d.ts
CHANGED
|
@@ -214,8 +214,47 @@ export declare const DEFAULT_HARNESS_REVISION_5: Graph;
|
|
|
214
214
|
* tasks alongside coding. The agent still receives the confirmed task instruction through the same
|
|
215
215
|
* intake handoff, and topology, capabilities and tooling are exactly revision 5's, so the change is
|
|
216
216
|
* presentation and instruction only.
|
|
217
|
+
*
|
|
218
|
+
* Revision 6 is frozen and is no longer the latest `default`: it is the body of the paid Andorra
|
|
219
|
+
* preset (`getAndorraHarness`), the Orchestrator -> Andorra Agent -> Done workflow. The graph a
|
|
220
|
+
* Default run executes is {@link DEFAULT_GRAPH}.
|
|
217
221
|
*/
|
|
218
222
|
export declare const DEFAULT_HARNESS: Graph;
|
|
223
|
+
/**
|
|
224
|
+
* Revision 7, the latest `default`: one Andorra Agent and no Orchestrator intake.
|
|
225
|
+
*
|
|
226
|
+
* Selecting Default runs a single agent that cannot delegate (`SOFTWARE_ENGINEER_HARNESS`, built from
|
|
227
|
+
* the same {@link DEFAULT_AGENT_GRAPH} as this revision), while revision 6 put an Orchestrator in front of it. Graph
|
|
228
|
+
* Studio and the graph tools read `default` from here, so they showed a workflow that Default never
|
|
229
|
+
* ran. This revision describes what Default runs; revision 6 remains loadable as history and as the
|
|
230
|
+
* Andorra preset. It is schema version 3 so the editor's migration leaves it as one agent rather than
|
|
231
|
+
* adding an Orchestrator in front of it.
|
|
232
|
+
*/
|
|
233
|
+
export declare const DEFAULT_GRAPH: Graph;
|
|
234
|
+
/** The id of the bundled Graph Manager graph. Reserved: no saved, synced or deleted graph may use it. */
|
|
235
|
+
export declare const GRAPH_MANAGER_GRAPH_ID = "andorra-graph-manager";
|
|
236
|
+
/**
|
|
237
|
+
* The graph Graph Studio's Graph Manager chat runs: one top-level agent and no Orchestrator intake.
|
|
238
|
+
*
|
|
239
|
+
* It is built in rather than saved so every installation has it and no account can edit it, and it
|
|
240
|
+
* is hidden from graph lists because it is not a workflow a user selects for a task. The agent
|
|
241
|
+
* sets neither `capabilities` nor `tools`, exactly as the default graph's execution agent: the
|
|
242
|
+
* defaults allow the shell, which is what grants the `graphs` tool, and filesystem reads, which
|
|
243
|
+
* grant `read_skill_resource`. A delegated subagent never receives `graphs`, so the work stays on
|
|
244
|
+
* this node. Only an Orchestrator is given `ask_user`, so the agent asks in its reply and the user's
|
|
245
|
+
* next message is the answer; the node keeps session history so that message sees the question.
|
|
246
|
+
*/
|
|
247
|
+
export declare const GRAPH_MANAGER_HARNESS: Graph;
|
|
248
|
+
/**
|
|
249
|
+
* The configured MCP servers a run of this graph connects at its start.
|
|
250
|
+
*
|
|
251
|
+
* Graph Manager works only through the `graphs` tool and its bundled skill, and its chat runs
|
|
252
|
+
* under Ask for approval, where every server raises a connection prompt before the first reply:
|
|
253
|
+
* its run connects none. Every other graph connects what the user configured.
|
|
254
|
+
*/
|
|
255
|
+
export declare function graphMcpServers<T>(graphId: string, servers: Record<string, T>): Record<string, T>;
|
|
256
|
+
/** The refusal every path that would write, delete or tombstone the reserved id answers with. */
|
|
257
|
+
export declare const reservedGraphId: (id: string) => Error;
|
|
219
258
|
/** Upgrade only in-memory copies. Stored snapshots remain unchanged. */
|
|
220
259
|
/**
|
|
221
260
|
* `addOrchestrator: false` upgrades a legacy graph without an Orchestrator to the current schema as it
|
|
@@ -267,6 +306,34 @@ export interface GraphValidationOptions {
|
|
|
267
306
|
*/
|
|
268
307
|
export declare function maxNodeVisitsOf(graph: Pick<Graph, 'limits'>): number;
|
|
269
308
|
export declare function validateGraph(value: unknown, options?: GraphValidationOptions): Graph;
|
|
309
|
+
/**
|
|
310
|
+
* The agent nodes a run can reach after this node, nearest first, without the node itself.
|
|
311
|
+
*
|
|
312
|
+
* Every outgoing edge counts whatever its outcome, so the list is what may run after the node,
|
|
313
|
+
* not what will: a node told what later nodes exist leaves their work to them rather than doing
|
|
314
|
+
* it early. A node a loop leads back to is still excluded, because it is this node.
|
|
315
|
+
*/
|
|
316
|
+
export declare function laterAgentNodes(graph: Pick<Graph, 'nodes' | 'edges'>, nodeId: string): GraphNode[];
|
|
317
|
+
/**
|
|
318
|
+
* Whether a node's name says it tests the change: "QA Tester", "Test runner", "Verifier".
|
|
319
|
+
*
|
|
320
|
+
* Graphs declare no testing role, so the name is the evidence a graph author gives; a name that
|
|
321
|
+
* does not say so is treated as not testing, which leaves the node's predecessors told to verify
|
|
322
|
+
* their own work as before.
|
|
323
|
+
*/
|
|
324
|
+
export declare function isTestingNode(node: Pick<GraphNode, 'name'>): boolean;
|
|
325
|
+
/**
|
|
326
|
+
* The testing node this node's work is sure to pass through: every outcome the node can complete
|
|
327
|
+
* with routes, along every path, through a testing node before the run can end. Absent when any
|
|
328
|
+
* route can finish untested — a delegating Orchestrator's `delivered` edge straight to Done, an
|
|
329
|
+
* outcome no edge handles (this node's or any node's on the way), or a branch that reaches an end
|
|
330
|
+
* first — because a node told to leave
|
|
331
|
+
* the running app to a tester must not be one whose work can ship without that tester.
|
|
332
|
+
*
|
|
333
|
+
* A path that leads back to the node itself is not an escape: the node runs again and its own
|
|
334
|
+
* routes are the ones being checked.
|
|
335
|
+
*/
|
|
336
|
+
export declare function testerOnEveryRoute(graph: Pick<Graph, 'nodes' | 'edges'>, nodeId: string): string | undefined;
|
|
270
337
|
/**
|
|
271
338
|
* Whether a run of this graph can execute the session's own provider/model pair.
|
|
272
339
|
*
|
|
@@ -318,7 +385,8 @@ export declare function saveGraph(input: unknown, expectedRevision: number | nul
|
|
|
318
385
|
* race one into leaving a half-written folder behind. The folder leaves the live path in one
|
|
319
386
|
* rename while the lock is held, so a save that lands during the removal writes into a fresh
|
|
320
387
|
* 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.
|
|
388
|
+
* and a hidden preset would only return on the next launch. The built-in Graph Manager graph is
|
|
389
|
+
* refused for the same reason, by name.
|
|
322
390
|
*/
|
|
323
391
|
export declare function deleteGraph(id: string, directory?: string, options?: {
|
|
324
392
|
onDetached?: () => Promise<void>;
|