@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,9 +1,14 @@
|
|
|
1
1
|
/*
|
|
2
2
|
* The Graph Studio's chrome: the library rail, the canvas, the node inspector and the status
|
|
3
|
-
* strip. Every colour, measurement and type size comes from `tokens.css`, which
|
|
4
|
-
*
|
|
5
|
-
* surface rather than a lookalike. Sizes sit on the shared type scale (`--type-xs` … `--type-lg`)
|
|
6
|
-
*
|
|
3
|
+
* strip. Every colour, measurement and type size comes from `tokens.css`, which the build generates
|
|
4
|
+
* from the desktop client's own tokens, so the editor embedded in the desktop window is the same
|
|
5
|
+
* surface rather than a lookalike. Sizes sit on the shared type scale (`--type-xs` … `--type-lg`),
|
|
6
|
+
* spacing on the 4px scale (`--space-1` … `--space-6`) and corners on the radius scale
|
|
7
|
+
* (`--radius-xs` … `--radius-full`), per ADR 0022.
|
|
8
|
+
*
|
|
9
|
+
* The blue accent fill, focus ring and link ink (`--accent-fill`, `--focus`, `--accent-text`) and the
|
|
10
|
+
* ink tiers for hover and selection (`--hover`, `--selected`) arrive with the client's tokens; until
|
|
11
|
+
* the client declares them, each falls back to the neutral token it replaces.
|
|
7
12
|
*/
|
|
8
13
|
|
|
9
14
|
* { box-sizing: border-box; }
|
|
@@ -35,42 +40,50 @@ svg.icon { flex: none; display: block; }
|
|
|
35
40
|
|
|
36
41
|
/* Buttons ---------------------------------------------------------------- */
|
|
37
42
|
|
|
38
|
-
/* One button system (ADR 0022): a rounded rectangle
|
|
39
|
-
small size, told apart by fill. The secondary kind is
|
|
40
|
-
|
|
43
|
+
/* One button system, the desktop client's `.btn` (ADR 0022): a rounded rectangle at 32px on the 8px
|
|
44
|
+
radius, or 28px on the 6px radius for the small size, told apart by fill. The secondary kind is
|
|
45
|
+
the resting one: the control fill, a step above any surface it sits on, with a medium label. The
|
|
46
|
+
height is a floor rather than a fixed size, because a button may carry more than one line. */
|
|
41
47
|
button {
|
|
42
48
|
display: inline-flex; align-items: center; justify-content: center; gap: var(--space-2);
|
|
43
|
-
min-height: var(--btn-height); padding: var(--space-1) var(--space-3); border-radius: var(--
|
|
44
|
-
border: 1px solid transparent; background: var(--bg-
|
|
45
|
-
font-size: var(--type-sm); font-weight: var(--weight-
|
|
49
|
+
min-height: var(--btn-height); padding: var(--space-1) var(--space-3); border-radius: var(--radius-md);
|
|
50
|
+
border: 1px solid transparent; background: var(--bg-control); color: var(--text);
|
|
51
|
+
font-size: var(--type-sm); font-weight: var(--weight-strong); white-space: nowrap;
|
|
46
52
|
user-select: none; -webkit-user-select: none;
|
|
47
53
|
transition: background-color var(--dur-1) var(--ease-standard),
|
|
48
54
|
border-color var(--dur-1) var(--ease-standard), color var(--dur-1) var(--ease-standard);
|
|
49
55
|
}
|
|
50
|
-
button:hover:not(:disabled) { background: var(--
|
|
56
|
+
button:hover:not(:disabled) { background: var(--bg-control-hover); }
|
|
51
57
|
button:active:not(:disabled) { transform: scale(.99); }
|
|
52
|
-
|
|
53
|
-
|
|
58
|
+
/* A control that cannot be used keeps its shape and takes the disabled ink; nothing fades. */
|
|
59
|
+
button:disabled { color: var(--text-disabled); }
|
|
60
|
+
.btn-small { min-height: var(--control-height); padding: 0 var(--space-3); border-radius: var(--radius-sm); font-size: var(--type-xs); }
|
|
54
61
|
|
|
55
|
-
/* The primary action is the accent fill.
|
|
62
|
+
/* The primary action is the accent fill, the one filled control on a screen. Disabled, it keeps its
|
|
63
|
+
fill at reduced strength so it still reads as the screen's primary action. */
|
|
56
64
|
.primary {
|
|
57
|
-
border-color: var(--accent
|
|
65
|
+
border-color: var(--accent-fill, var(--accent)); background: var(--accent-fill, var(--accent));
|
|
66
|
+
color: var(--on-accent-fill, var(--on-accent)); font-weight: var(--weight-strong);
|
|
58
67
|
}
|
|
59
|
-
.primary:hover:not(:disabled) { background: var(--accent-hover); border-color: var(--accent-hover); }
|
|
60
|
-
.primary:disabled { background: var(--
|
|
68
|
+
.primary:hover:not(:disabled) { background: var(--accent-fill-hover, var(--accent-hover)); border-color: var(--accent-fill-hover, var(--accent-hover)); }
|
|
69
|
+
.primary:disabled { background: var(--bg-control); border-color: transparent; color: var(--text-disabled); }
|
|
61
70
|
|
|
62
|
-
/* Ghost: a bare label or icon that fills
|
|
71
|
+
/* Ghost: a bare label or icon that fills one ink tier under the pointer. */
|
|
63
72
|
.ghost, .icon-button { background: transparent; color: var(--text-2); }
|
|
64
|
-
.ghost:hover:not(:disabled), .icon-button:hover:not(:disabled) { background: var(--bg-
|
|
73
|
+
.ghost:hover:not(:disabled), .icon-button:hover:not(:disabled) { background: var(--hover, var(--bg-hover)); color: var(--text); }
|
|
65
74
|
.icon-button { min-width: var(--btn-height); padding: 0; }
|
|
66
|
-
.icon-button
|
|
75
|
+
.icon-button.btn-small { min-width: var(--control-height); }
|
|
76
|
+
/* Pressed or open is the stronger tier, with full ink; selection never changes the weight. */
|
|
77
|
+
.icon-button[aria-pressed="true"], .icon-button[aria-expanded="true"] { color: var(--text); background: var(--selected, var(--accent-soft)); }
|
|
67
78
|
|
|
68
|
-
|
|
79
|
+
/* The keyboard's focus ring: 2px, offset 2px, only for keyboard focus. Rows in lists and menus show
|
|
80
|
+
a highlight fill instead (their own rules below). */
|
|
81
|
+
:focus-visible { outline: 2px solid var(--focus, var(--accent)); outline-offset: 2px; }
|
|
69
82
|
|
|
70
83
|
/* Chips: a compact status label. The warning kind names a problem with the configuration. */
|
|
71
84
|
.chip {
|
|
72
85
|
display: inline-flex; align-items: center; gap: var(--space-1); min-height: 22px; padding: 0 var(--space-2);
|
|
73
|
-
border-radius:
|
|
86
|
+
border-radius: var(--radius-full); background: var(--bg-card); color: var(--text-2); font-size: var(--type-xs); white-space: nowrap;
|
|
74
87
|
}
|
|
75
88
|
.chip-accent { background: var(--accent-soft); color: var(--text); }
|
|
76
89
|
.chip-warning { background: var(--bg-card); color: var(--warn-text); box-shadow: inset 0 0 0 1px var(--warn); }
|
|
@@ -84,7 +97,7 @@ input, select, textarea {
|
|
|
84
97
|
transition: border-color var(--dur-1) var(--ease-standard), box-shadow var(--dur-1) var(--ease-standard);
|
|
85
98
|
}
|
|
86
99
|
input:hover, select:hover, textarea:hover { border-color: var(--text-3); }
|
|
87
|
-
input:focus-visible, select:focus-visible, textarea:focus-visible { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-ring); }
|
|
100
|
+
input:focus-visible, select:focus-visible, textarea:focus-visible { outline: none; border-color: var(--focus, var(--accent)); box-shadow: 0 0 0 3px var(--accent-ring); }
|
|
88
101
|
input::placeholder, textarea::placeholder { color: var(--text-3); }
|
|
89
102
|
/* A field carries prose unless it is marked as code, so the mono face is opt-in. */
|
|
90
103
|
textarea { resize: vertical; min-height: 140px; line-height: 1.5; }
|
|
@@ -93,7 +106,7 @@ textarea { resize: vertical; min-height: 140px; line-height: 1.5; }
|
|
|
93
106
|
|
|
94
107
|
.rail {
|
|
95
108
|
position: relative; isolation: isolate;
|
|
96
|
-
width: var(--rail-width,
|
|
109
|
+
width: var(--rail-width, 232px); min-width: 0; flex-shrink: 0;
|
|
97
110
|
display: flex; flex-direction: column; min-height: 0;
|
|
98
111
|
background: var(--bg-rail); border-right: 1px solid var(--border);
|
|
99
112
|
/* Sidebar rows are controls, not prose. */
|
|
@@ -122,25 +135,30 @@ textarea { resize: vertical; min-height: 140px; line-height: 1.5; }
|
|
|
122
135
|
|
|
123
136
|
.section-label {
|
|
124
137
|
display: flex; align-items: center; justify-content: space-between;
|
|
125
|
-
font-size: var(--type-
|
|
138
|
+
font-size: var(--type-label); font-weight: var(--weight-strong); color: var(--text-3); margin: var(--space-2) 2px var(--space-2); padding: 0 var(--space-2);
|
|
126
139
|
}
|
|
127
140
|
.section-label button {
|
|
128
141
|
border: 0; background: transparent; padding: 0; width: 24px; min-height: 24px; height: 24px;
|
|
129
142
|
color: var(--text-2);
|
|
130
143
|
}
|
|
131
|
-
.section-label button
|
|
144
|
+
.section-label button { border-radius: var(--radius-sm); }
|
|
145
|
+
.section-label button:hover:not(:disabled) { background: var(--hover, var(--rail-wash)); color: var(--text); }
|
|
132
146
|
|
|
133
147
|
#search, #node-search { margin-bottom: var(--space-3); }
|
|
134
148
|
/* The rail's two filters rest as a quiet wash with a magnifier, not an outlined box: the rail is a
|
|
135
149
|
list of rows, and an outline at rest read as a form. The outline returns under the pointer and
|
|
136
|
-
the accent ring on focus. The glyph is
|
|
150
|
+
the accent ring on focus. The glyph is Lucide's search on its 1.5 stroke, in each appearance's
|
|
151
|
+
muted ink (an image cannot read a token, so the two inks are written into it). */
|
|
137
152
|
.rail input[type="search"] {
|
|
138
153
|
padding-left: 30px; border-color: transparent; background-color: var(--rail-wash);
|
|
139
|
-
background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%
|
|
154
|
+
background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%239a9aa4' stroke-width='1.5' stroke-linecap='round'><circle cx='11' cy='11' r='7'/><path d='m20 20-3.6-3.6'/></svg>");
|
|
140
155
|
background-repeat: no-repeat; background-position: 9px 50%; background-size: 14px 14px;
|
|
141
156
|
}
|
|
157
|
+
:root[data-theme='light'] .rail input[type="search"] {
|
|
158
|
+
background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%235c5d63' stroke-width='1.5' stroke-linecap='round'><circle cx='11' cy='11' r='7'/><path d='m20 20-3.6-3.6'/></svg>");
|
|
159
|
+
}
|
|
142
160
|
.rail input[type="search"]:hover { border-color: var(--border-strong); }
|
|
143
|
-
.rail input[type="search"]:focus-visible { border-color: var(--accent); background-color: var(--bg-input); }
|
|
161
|
+
.rail input[type="search"]:focus-visible { border-color: var(--focus, var(--accent)); background-color: var(--bg-input); }
|
|
144
162
|
|
|
145
163
|
/* Rows: one anatomy, everywhere. */
|
|
146
164
|
#graphs { display: grid; grid-template-columns: minmax(0, 1fr); gap: 1px; }
|
|
@@ -148,14 +166,14 @@ textarea { resize: vertical; min-height: 140px; line-height: 1.5; }
|
|
|
148
166
|
.graph-drafts-head {
|
|
149
167
|
display: flex; align-items: center; justify-content: space-between; gap: var(--space-2);
|
|
150
168
|
margin-top: var(--space-2); padding: var(--space-1) var(--space-2) 2px;
|
|
151
|
-
font-size: var(--type-
|
|
169
|
+
font-size: var(--type-label); font-weight: var(--weight-strong); color: var(--text-3);
|
|
152
170
|
}
|
|
153
171
|
.graph-drafts-clear, .graph-drafts-toggle {
|
|
154
172
|
border: 0; background: transparent; min-height: 0; height: auto; width: auto;
|
|
155
|
-
padding: 2px var(--space-1); border-radius: var(--
|
|
156
|
-
font: inherit; font-size: var(--type-xs); color: var(--text-3); cursor: pointer;
|
|
173
|
+
padding: 2px var(--space-1); border-radius: var(--radius-xs);
|
|
174
|
+
font: inherit; font-size: var(--type-xs); font-weight: var(--weight-regular); color: var(--text-3); cursor: pointer;
|
|
157
175
|
}
|
|
158
|
-
.graph-drafts-clear:hover:not(:disabled), .graph-drafts-toggle:hover { background: var(--rail-wash); color: var(--text); }
|
|
176
|
+
.graph-drafts-clear:hover:not(:disabled), .graph-drafts-toggle:hover { background: var(--hover, var(--rail-wash)); color: var(--text); }
|
|
159
177
|
.graph-drafts-toggle { justify-self: start; margin: 2px var(--space-1) 0; }
|
|
160
178
|
.graph-row.draft-row span { color: var(--text-2); }
|
|
161
179
|
.graph-row.draft-row small { font-variant-numeric: tabular-nums; }
|
|
@@ -163,28 +181,32 @@ textarea { resize: vertical; min-height: 140px; line-height: 1.5; }
|
|
|
163
181
|
display: flex; align-items: center; justify-content: space-between; width: 100%;
|
|
164
182
|
min-height: var(--row-height); padding: 0 var(--space-2); gap: var(--space-2);
|
|
165
183
|
border: 0; background: transparent; color: var(--text-2); text-align: left;
|
|
166
|
-
border-radius: var(--row-radius); font-size: var(--type-row);
|
|
184
|
+
border-radius: var(--row-radius); font-size: var(--type-row); font-weight: var(--weight-regular);
|
|
167
185
|
}
|
|
168
|
-
|
|
169
|
-
|
|
186
|
+
/* Hover is one ink tier and selection a stronger one with full ink, the desktop rail's own rows; the
|
|
187
|
+
selected row is the fill alone, with no edge bar. A row under keyboard focus shows the hover fill
|
|
188
|
+
rather than a ring. */
|
|
189
|
+
.graph-row:hover:not(:disabled), .graph-row:focus-visible { background: var(--hover, var(--rail-wash)); color: var(--text); outline: none; }
|
|
190
|
+
.graph-row.active, .graph-row.active:hover:not(:disabled), .graph-row.active:focus-visible { background: var(--selected, var(--accent-soft)); color: var(--text); }
|
|
170
191
|
.graph-row span { overflow: hidden; text-overflow: ellipsis; min-width: 0; }
|
|
171
192
|
.graph-row small { color: var(--text-3); font-size: var(--type-xs); flex-shrink: 0; }
|
|
172
193
|
|
|
173
194
|
.library-label { margin-top: var(--space-5); }
|
|
174
195
|
.library-group { margin: var(--space-2) 0; }
|
|
175
|
-
.library-group > summary { font-size: var(--type-
|
|
196
|
+
.library-group > summary { font-size: var(--type-label); font-weight: var(--weight-strong); color: var(--text-3); padding: var(--space-2); cursor: pointer; }
|
|
176
197
|
.library-group .help { font-size: var(--type-xs); padding: 0 var(--space-2); }
|
|
177
198
|
|
|
178
|
-
/* A library item is something you pick up:
|
|
179
|
-
|
|
199
|
+
/* A library item is something you pick up: its kind's icon, the name, and a short description. It
|
|
200
|
+
drags onto the canvas, and a click or Enter adds it at the viewport's corner. The kind is the
|
|
201
|
+
icon's shape; the chrome gives it no hue. */
|
|
180
202
|
.library-item {
|
|
181
203
|
display: grid; grid-template-columns: 16px minmax(0, 1fr); column-gap: var(--space-2); row-gap: 2px; align-items: start;
|
|
182
204
|
width: 100%; min-height: 0; text-align: left; border: 0; background: transparent;
|
|
183
|
-
padding: 6px var(--space-2); border-radius: var(--row-radius); color: var(--text-2); cursor: grab;
|
|
205
|
+
padding: 6px var(--space-2); border-radius: var(--row-radius); color: var(--text-2); font-weight: var(--weight-regular); cursor: grab;
|
|
184
206
|
}
|
|
185
207
|
.library-item:active:not(:disabled) { cursor: grabbing; }
|
|
186
|
-
.library-item:hover:not(:disabled) { background: var(--rail-wash); color: var(--text); }
|
|
187
|
-
.library-item > svg.icon { grid-column: 1; grid-row: 1 / span 2; margin-top: 1px; color: var(--
|
|
208
|
+
.library-item:hover:not(:disabled), .library-item:focus-visible { background: var(--hover, var(--rail-wash)); color: var(--text); outline: none; }
|
|
209
|
+
.library-item > svg.icon { grid-column: 1; grid-row: 1 / span 2; margin-top: 1px; color: var(--text-2); }
|
|
188
210
|
.library-item b { grid-column: 2; grid-row: 1; display: block; font-weight: var(--weight-strong); font-size: var(--type-sm); white-space: normal; overflow-wrap: anywhere; }
|
|
189
211
|
.library-item span { grid-column: 2; grid-row: 2; display: block; color: var(--text-3); font-size: var(--type-xs); white-space: normal; line-height: 1.35; }
|
|
190
212
|
|
|
@@ -198,10 +220,14 @@ main { display: flex; flex: 1; min-width: 0; flex-direction: column; }
|
|
|
198
220
|
|
|
199
221
|
/* One toolbar row: the way back (when embedded), the graph's name and revision, then the two
|
|
200
222
|
secondary actions, the inspector toggle, the overflow menu and the one primary action. */
|
|
223
|
+
/* The strip is the window's 36px title strip, the desktop's `.chrome`: every control in it is the
|
|
224
|
+
28px size, so 28 + 2 × 3px + the 1px rule holds it at 36. A min-height alone grew it to 41px around
|
|
225
|
+
a 32px button. */
|
|
201
226
|
.chrome {
|
|
202
|
-
min-height:
|
|
203
|
-
padding:
|
|
227
|
+
min-height: var(--chrome-height); flex-shrink: 0; display: flex; align-items: center; gap: var(--space-2);
|
|
228
|
+
padding: 3px var(--space-3); border-bottom: 1px solid var(--border); background: var(--bg-surface);
|
|
204
229
|
}
|
|
230
|
+
.chrome .icon-button { min-width: var(--control-height); min-height: var(--control-height); border-radius: var(--radius-sm); }
|
|
205
231
|
.graph-heading { flex: 1; min-width: 0; display: flex; gap: 10px; align-items: baseline; }
|
|
206
232
|
.graph-heading strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: var(--weight-strong); font-size: var(--type-md); }
|
|
207
233
|
.graph-heading span { font-size: var(--type-xs); color: var(--text-3); white-space: nowrap; }
|
|
@@ -210,18 +236,21 @@ main { display: flex; flex: 1; min-width: 0; flex-direction: column; }
|
|
|
210
236
|
.chrome-actions > .primary { margin-left: var(--space-1); }
|
|
211
237
|
.host-chrome { display: flex; align-items: center; gap: var(--space-1); flex: none; padding-right: var(--space-2); border-right: 1px solid var(--border); }
|
|
212
238
|
|
|
213
|
-
/* The overflow menu.
|
|
239
|
+
/* The overflow menu: an 8px popover with a 4px inset, rows on the 4px radius at the row height. A
|
|
240
|
+
row under the pointer or keyboard focus fills one ink tier; menus show no focus ring. It arrives
|
|
241
|
+
and leaves the same way (controls.css, "Exits"). */
|
|
214
242
|
.menu { position: relative; }
|
|
215
243
|
.menu-list {
|
|
216
244
|
position: absolute; z-index: 20; top: calc(100% + var(--space-1)); right: 0; min-width: 210px;
|
|
217
|
-
display: flex; flex-direction: column; padding: var(--space-1);
|
|
218
|
-
background: var(--bg-input); border: 1px solid var(--border); border-radius: var(--
|
|
245
|
+
display: flex; flex-direction: column; gap: 1px; padding: var(--space-1);
|
|
246
|
+
background: var(--bg-input); border: 1px solid var(--border); border-radius: var(--radius-md); box-shadow: var(--shadow-menu);
|
|
247
|
+
animation: controls-panel-in var(--dur-1) var(--ease-standard);
|
|
219
248
|
}
|
|
220
249
|
.menu-list > button {
|
|
221
|
-
justify-content: flex-start; width: 100%; min-height: var(--
|
|
222
|
-
background: transparent; color: var(--text); border-radius: var(--
|
|
250
|
+
justify-content: flex-start; width: 100%; min-height: var(--row-height); padding: 0 var(--space-2);
|
|
251
|
+
background: transparent; color: var(--text); border-radius: var(--radius-xs); font-weight: var(--weight-regular);
|
|
223
252
|
}
|
|
224
|
-
.menu-list > button:hover:not(:disabled), .menu-list > button:focus-visible { background: var(--bg-
|
|
253
|
+
.menu-list > button:hover:not(:disabled), .menu-list > button:focus-visible { background: var(--hover, var(--bg-hover)); outline: none; }
|
|
225
254
|
.menu-list > button > svg.icon { color: var(--text-2); }
|
|
226
255
|
/* A destructive item (an Agent's Delete) reads as one, icon included. */
|
|
227
256
|
.menu-list > button.danger, .menu-list > button.danger > svg.icon { color: var(--err-text); }
|
|
@@ -231,39 +260,38 @@ main { display: flex; flex: 1; min-width: 0; flex-direction: column; }
|
|
|
231
260
|
|
|
232
261
|
.workspace { flex: 1; display: flex; min-height: 0; position: relative; }
|
|
233
262
|
|
|
234
|
-
/* The canvas ground carries a fine dot grid
|
|
263
|
+
/* The canvas ground carries a fine dot grid in canvas space: `transform()` (app.js) scales it with the
|
|
264
|
+
zoom and moves it with the pan, so a dot sits on every 20-unit snap point. Each dot is drawn at the
|
|
265
|
+
centre of its tile, which is why the script offsets the tile by half a step. */
|
|
235
266
|
#canvas {
|
|
236
267
|
flex: 1; position: relative; overflow: hidden; min-width: 0; touch-action: none;
|
|
237
268
|
background-color: var(--canvas-bg);
|
|
238
269
|
background-image: radial-gradient(var(--canvas-dot) 1px, transparent 1.2px);
|
|
239
|
-
background-size: 20px 20px;
|
|
270
|
+
background-size: 20px 20px; background-position: -10px -10px;
|
|
240
271
|
}
|
|
241
272
|
#scene { position: absolute; transform-origin: 0 0; }
|
|
242
273
|
#edges { position: absolute; overflow: visible; width: 1px; height: 1px; pointer-events: none; }
|
|
243
274
|
#nodes { position: absolute; }
|
|
244
275
|
|
|
245
|
-
/* A node is a card: a surface with the register's radius and contact shadow,
|
|
246
|
-
|
|
276
|
+
/* A node is a neutral card: a surface with the register's radius and contact shadow, and its kind's
|
|
277
|
+
icon beside its name. The kind is the icon's shape; the card carries no hue of its own, so the
|
|
278
|
+
canvas reads in the same register as the window around it. */
|
|
247
279
|
.node {
|
|
248
|
-
--type-colour: var(--node-agent);
|
|
249
280
|
position: absolute; width: 210px; min-height: 94px; padding: var(--space-3) var(--space-3) 0 18px;
|
|
250
281
|
border: 1px solid var(--border); border-radius: var(--card-radius);
|
|
251
282
|
background: var(--bg-input); box-shadow: var(--lift-2);
|
|
252
283
|
text-align: left; cursor: grab; user-select: none; touch-action: none;
|
|
253
|
-
background-image: linear-gradient(var(--type-colour), var(--type-colour));
|
|
254
|
-
background-size: 4px 100%; background-repeat: no-repeat; background-position: left top;
|
|
255
284
|
}
|
|
256
|
-
|
|
257
|
-
.node.
|
|
258
|
-
.node.end { --type-colour: var(--node-end); }
|
|
285
|
+
/* While a card is dragged only its transform changes (app.js); it rises above its neighbours. */
|
|
286
|
+
.node.dragging { z-index: 1; cursor: grabbing; }
|
|
259
287
|
.node.selected { border-color: var(--accent); box-shadow: var(--lift-3), 0 0 0 1px var(--accent); }
|
|
260
|
-
/* A node carrying a validation error
|
|
261
|
-
|
|
262
|
-
.node.node-error { border-color: var(--err); box-shadow:
|
|
263
|
-
.node.node-error-pulse { animation: node-error-
|
|
264
|
-
@keyframes node-error-
|
|
288
|
+
/* A node carrying a validation error takes a crisp 1px red edge, with no glow. A refused Save marks
|
|
289
|
+
the cards once with a slightly heavier edge to point the eye at them, and nothing repeats. */
|
|
290
|
+
.node.node-error { border-color: var(--err); box-shadow: var(--lift-2), 0 0 0 1px var(--err); }
|
|
291
|
+
.node.node-error-pulse { animation: node-error-flash var(--dur-3) var(--ease-standard) 1; }
|
|
292
|
+
@keyframes node-error-flash { 50% { box-shadow: var(--lift-2), 0 0 0 2px var(--err); } }
|
|
265
293
|
.node-title { display: flex; align-items: center; gap: var(--space-2); min-width: 0; }
|
|
266
|
-
.node-title > svg.icon { color: var(--
|
|
294
|
+
.node-title > svg.icon { color: var(--text-2); }
|
|
267
295
|
.node b { display: block; min-width: 0; flex: 1; font-weight: var(--weight-strong); font-size: var(--type-sm); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
|
|
268
296
|
.node small { display: block; color: var(--text-3); font-size: var(--type-xs); margin-top: 6px; padding-left: 24px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
|
|
269
297
|
.node .node-start { flex: none; min-height: 18px; padding: 0 6px; }
|
|
@@ -283,7 +311,7 @@ main { display: flex; flex: 1; min-width: 0; flex-direction: column; }
|
|
|
283
311
|
.output-port {
|
|
284
312
|
height: 25px; display: block; position: relative; width: calc(100% + 30px); margin-left: -18px;
|
|
285
313
|
text-align: right; border: 0; border-top: 1px solid var(--border); border-radius: 0;
|
|
286
|
-
padding: var(--space-1) 15px; background: transparent; font-size: var(--type-xs); line-height: 16px; color: var(--text-3); min-height: 0;
|
|
314
|
+
padding: var(--space-1) 15px; background: transparent; font-size: var(--type-xs); font-weight: var(--weight-regular); line-height: 16px; color: var(--text-3); min-height: 0;
|
|
287
315
|
overflow: hidden; text-overflow: ellipsis;
|
|
288
316
|
}
|
|
289
317
|
.output-port[data-connected] { color: transparent; }
|
|
@@ -294,21 +322,22 @@ main { display: flex; flex: 1; min-width: 0; flex-direction: column; }
|
|
|
294
322
|
background: var(--bg-input); border: 1px solid var(--border-strong); border-radius: 50%;
|
|
295
323
|
}
|
|
296
324
|
.output-port[data-connected]:after { background: var(--text-3); border-color: var(--text-3); }
|
|
297
|
-
.node .output-port:hover { background: var(--bg-card); }
|
|
325
|
+
.node .output-port:hover:not(:disabled) { background: var(--hover, var(--bg-card)); }
|
|
298
326
|
|
|
299
|
-
/* Canvas controls: one
|
|
327
|
+
/* Canvas controls: one rounded rectangle of square icon buttons at the bottom centre, beside the
|
|
328
|
+
minimap, which shares its corner. */
|
|
300
329
|
.canvas-toolbar {
|
|
301
330
|
position: absolute; z-index: 4; bottom: var(--space-4); left: 50%; transform: translateX(-50%);
|
|
302
331
|
display: flex; gap: 2px; align-items: center;
|
|
303
332
|
padding: var(--space-1); background: var(--bg-input); border: 1px solid var(--border);
|
|
304
|
-
border-radius:
|
|
333
|
+
border-radius: var(--radius-lg); box-shadow: var(--shadow-menu);
|
|
305
334
|
}
|
|
306
335
|
.canvas-toolbar button {
|
|
307
336
|
border: 0; background: transparent; width: var(--control-height); height: var(--control-height); min-height: 0;
|
|
308
|
-
padding: 0; border-radius:
|
|
337
|
+
padding: 0; border-radius: var(--radius-sm); color: var(--text-2); font-weight: var(--weight-regular);
|
|
309
338
|
}
|
|
310
|
-
.canvas-toolbar button:hover:not(:disabled) { background: var(--bg-card); color: var(--text); }
|
|
311
|
-
.canvas-toolbar button[aria-pressed="true"] { background: var(--accent-soft); color: var(--text); }
|
|
339
|
+
.canvas-toolbar button:hover:not(:disabled) { background: var(--hover, var(--bg-card)); color: var(--text); }
|
|
340
|
+
.canvas-toolbar button[aria-pressed="true"] { background: var(--selected, var(--accent-soft)); color: var(--text); }
|
|
312
341
|
.canvas-toolbar .toolbar-divider { height: 16px; border-left: 1px solid var(--border); margin: 0 var(--space-1); }
|
|
313
342
|
#zoom { font-size: var(--type-xs); min-width: 40px; text-align: center; color: var(--text-2); font-variant-numeric: tabular-nums; }
|
|
314
343
|
|
|
@@ -318,9 +347,9 @@ main { display: flex; flex: 1; min-width: 0; flex-direction: column; }
|
|
|
318
347
|
position: absolute; z-index: 3; top: var(--space-3); left: var(--space-3); max-width: calc(100% - 2 * var(--space-3));
|
|
319
348
|
display: flex; align-items: center; gap: var(--space-2); padding: var(--space-1) var(--space-1) var(--space-1) var(--space-3);
|
|
320
349
|
color: var(--text-2); font-size: var(--type-xs); background: var(--bg-input); border: 1px solid var(--border);
|
|
321
|
-
border-radius:
|
|
350
|
+
border-radius: var(--radius-md); box-shadow: var(--shadow-menu);
|
|
322
351
|
}
|
|
323
|
-
.canvas-hint .icon-button { min-width:
|
|
352
|
+
.canvas-hint .icon-button { min-width: 24px; width: 24px; min-height: 24px; height: 24px; border-radius: var(--radius-sm); }
|
|
324
353
|
#empty { position: absolute; inset: 45% 20px auto; text-align: center; color: var(--text-3); }
|
|
325
354
|
|
|
326
355
|
/* The node inspector ----------------------------------------------------- */
|
|
@@ -338,17 +367,19 @@ main { display: flex; flex: 1; min-width: 0; flex-direction: column; }
|
|
|
338
367
|
#inspector-body { padding: var(--space-4); overflow: auto; flex: 1; }
|
|
339
368
|
#resize { position: absolute; left: -4px; top: 0; bottom: 0; width: 7px; cursor: col-resize; }
|
|
340
369
|
|
|
341
|
-
/* The inspector's tabs split a node's settings into General, Model, Behavior and Advanced
|
|
370
|
+
/* The inspector's tabs split a node's settings into General, Model, Behavior and Advanced: the
|
|
371
|
+
desktop's segmented control, a well with the selected segment raised above it as a lighter chip.
|
|
372
|
+
Every segment has the same weight, so selection never shifts the labels. */
|
|
342
373
|
.inspector-tabs {
|
|
343
374
|
display: flex; gap: 2px; margin: calc(-1 * var(--space-2)) 0 var(--space-4); padding: 2px;
|
|
344
|
-
background: var(--bg-card); border-radius: var(--
|
|
375
|
+
background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-md);
|
|
345
376
|
}
|
|
346
377
|
.inspector-tabs button {
|
|
347
|
-
flex: 1; min-height:
|
|
348
|
-
background: transparent; color: var(--text-2); font-size: var(--type-xs);
|
|
378
|
+
flex: 1; min-height: 24px; height: 24px; padding: 0 var(--space-2); border-radius: var(--radius-sm);
|
|
379
|
+
background: transparent; color: var(--text-2); font-size: var(--type-xs); font-weight: var(--weight-strong);
|
|
349
380
|
}
|
|
350
|
-
.inspector-tabs button:hover:not(:disabled) { background: transparent; color: var(--text); }
|
|
351
|
-
.inspector-tabs button[aria-selected="true"] { background: var(--bg-
|
|
381
|
+
.inspector-tabs button:hover:not(:disabled):not([aria-selected="true"]) { background: transparent; color: var(--text); }
|
|
382
|
+
.inspector-tabs button[aria-selected="true"] { background: var(--bg-raised); color: var(--text); box-shadow: var(--shadow-raised, 0 0 0 1px var(--border)); }
|
|
352
383
|
.inspector-panel > .section:first-child { border-top: 0; padding-top: 0; margin-top: 0; }
|
|
353
384
|
|
|
354
385
|
.field { display: grid; grid-template-columns: minmax(0, auto) 1fr; align-items: center; column-gap: var(--space-1); margin-bottom: var(--space-3); }
|
|
@@ -381,13 +412,13 @@ body.prompt-fullscreen #inspector { z-index: 60; }
|
|
|
381
412
|
.field, .tool-label, .section h3 { position: relative; }
|
|
382
413
|
.info-tip { position: static; display: inline-flex; vertical-align: middle; }
|
|
383
414
|
.info-tip > button {
|
|
384
|
-
width: 18px; height: 18px; min-height: 0; padding: 0; border-radius:
|
|
385
|
-
background: transparent; color: var(--text-3);
|
|
415
|
+
width: 18px; height: 18px; min-height: 0; padding: 0; border-radius: var(--radius-full);
|
|
416
|
+
background: transparent; color: var(--text-3); font-weight: var(--weight-regular);
|
|
386
417
|
}
|
|
387
|
-
.info-tip > button:hover:not(:disabled), .info-tip > button:focus-visible, .info-tip.open > button { color: var(--text); background: var(--bg-card); }
|
|
418
|
+
.info-tip > button:hover:not(:disabled), .info-tip > button:focus-visible, .info-tip.open > button { color: var(--text); background: var(--hover, var(--bg-card)); }
|
|
388
419
|
.info-tip-text {
|
|
389
420
|
position: absolute; z-index: 30; top: calc(100% + 6px); left: 0; right: 0; max-width: 360px;
|
|
390
|
-
padding: var(--space-2) var(--space-3); border-radius: var(--
|
|
421
|
+
padding: var(--space-2) var(--space-3); border-radius: var(--radius-md); border: 1px solid var(--border);
|
|
391
422
|
background: var(--bg-input); color: var(--text-2); box-shadow: var(--shadow-menu);
|
|
392
423
|
font-size: var(--type-xs); line-height: 1.5; font-weight: var(--weight-regular); white-space: normal;
|
|
393
424
|
opacity: 0; visibility: hidden; pointer-events: none;
|
|
@@ -414,8 +445,8 @@ body.prompt-fullscreen #inspector { z-index: 60; }
|
|
|
414
445
|
#inspector-body .disclosure > div > .section:first-child { border-top: 0; padding-top: 0; }
|
|
415
446
|
|
|
416
447
|
.help { font-size: var(--type-xs); line-height: 1.5; color: var(--text-2); }
|
|
417
|
-
.link-button { font-size: var(--type-xs); margin-left: var(--space-5); border: 0; background: transparent; text-decoration: underline; color: var(--text-2); min-height: 0; padding: 0; }
|
|
418
|
-
.link-button:hover:not(:disabled) { background: transparent; color: var(--text); }
|
|
448
|
+
.link-button { font-size: var(--type-xs); font-weight: var(--weight-regular); margin-left: var(--space-5); border: 0; background: transparent; text-decoration: underline; color: var(--accent-text, var(--text-2)); min-height: 0; padding: 0; }
|
|
449
|
+
.link-button:hover:not(:disabled) { background: transparent; color: var(--accent-text, var(--text)); }
|
|
419
450
|
.provider-warning { margin: 0 0 var(--space-3); }
|
|
420
451
|
|
|
421
452
|
/* Skills in prompts (skill-picker.js): the `/` picker reuses the dropdown panel, and a name this
|
|
@@ -449,7 +480,7 @@ body.prompt-fullscreen #inspector { z-index: 60; }
|
|
|
449
480
|
.actions { display: flex; gap: var(--space-2); flex-wrap: wrap; }
|
|
450
481
|
.model-context { font-size: var(--type-xs); }
|
|
451
482
|
.modifier-badge {
|
|
452
|
-
display: inline-block; font-size: var(--type-xs); border-radius: var(--
|
|
483
|
+
display: inline-block; font-size: var(--type-xs); border-radius: var(--radius-xs); background: var(--bg-card);
|
|
453
484
|
color: var(--text-2); padding: 2px 6px; margin: 2px 2px 6px 0;
|
|
454
485
|
}
|
|
455
486
|
.cycle-help { padding: var(--space-3); border: 1px solid var(--border); background: var(--bg-card); border-radius: var(--btn-radius); margin-bottom: var(--space-3); }
|
|
@@ -463,10 +494,10 @@ body.prompt-fullscreen #inspector { z-index: 60; }
|
|
|
463
494
|
color: var(--text-3); background: var(--bg-surface);
|
|
464
495
|
}
|
|
465
496
|
.status button {
|
|
466
|
-
border: 0; background: transparent; font-size: var(--type-xs); height: 22px; min-height: 0; padding: 0 var(--space-2);
|
|
467
|
-
border-radius: var(--
|
|
497
|
+
border: 0; background: transparent; font-size: var(--type-xs); font-weight: var(--weight-regular); height: 22px; min-height: 0; padding: 0 var(--space-2);
|
|
498
|
+
border-radius: var(--radius-xs); color: var(--text-3);
|
|
468
499
|
}
|
|
469
|
-
.status button:hover:not(:disabled) { background: var(--bg-card); color: var(--text); }
|
|
500
|
+
.status button:hover:not(:disabled) { background: var(--hover, var(--bg-card)); color: var(--text); }
|
|
470
501
|
.status.error { color: var(--err-text); }
|
|
471
502
|
#status { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
|
|
472
503
|
.status-actions { display: flex; gap: var(--space-1); align-items: center; }
|
|
@@ -495,7 +526,7 @@ body.prompt-fullscreen #inspector { z-index: 60; }
|
|
|
495
526
|
.rail-body.is-scrolling, #graphs.is-scrolling, .rail-body:focus-visible, #graphs:focus-visible { scrollbar-color: var(--text-3) transparent; }
|
|
496
527
|
.rail-body::-webkit-scrollbar, #graphs::-webkit-scrollbar { width: 6px; height: 0; }
|
|
497
528
|
.rail-body::-webkit-scrollbar-track, #graphs::-webkit-scrollbar-track { background: transparent; }
|
|
498
|
-
.rail-body::-webkit-scrollbar-thumb, #graphs::-webkit-scrollbar-thumb { background: transparent; border-radius:
|
|
529
|
+
.rail-body::-webkit-scrollbar-thumb, #graphs::-webkit-scrollbar-thumb { background: transparent; border-radius: var(--radius-sm); }
|
|
499
530
|
.rail-body.is-scrolling::-webkit-scrollbar-thumb, #graphs.is-scrolling::-webkit-scrollbar-thumb,
|
|
500
531
|
.rail-body:focus-visible::-webkit-scrollbar-thumb, #graphs:focus-visible::-webkit-scrollbar-thumb { background: var(--text-3); }
|
|
501
532
|
.rail-body::-webkit-scrollbar-button, #graphs::-webkit-scrollbar-button { display: none; }
|
|
@@ -527,4 +558,6 @@ body.prompt-fullscreen #inspector { z-index: 60; }
|
|
|
527
558
|
|
|
528
559
|
@media (prefers-reduced-motion: reduce) {
|
|
529
560
|
* { scroll-behavior: auto !important; transition-duration: var(--dur-1) !important; animation: none !important; }
|
|
561
|
+
/* Nothing moves: a pressed button does not shrink. Colour still changes over --dur-1. */
|
|
562
|
+
button:active:not(:disabled) { transform: none; }
|
|
530
563
|
}
|