@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.
- 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 +57 -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 +120 -1
- package/dist/src/app-server/protocol.js +8 -1
- 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 +32 -0
- package/dist/src/app-server.js +214 -21
- package/dist/src/auth/AuthManager.d.ts +15 -0
- package/dist/src/auth/AuthManager.js +66 -7
- package/dist/src/auth/index.d.ts +1 -1
- package/dist/src/auth/index.js +1 -1
- package/dist/src/auth/store.d.ts +17 -1
- package/dist/src/auth/store.js +25 -2
- 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 +123 -28
- 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 +31 -9
- 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 +3 -2
- package/dist/src/completion-gates.d.ts +35 -0
- package/dist/src/completion-gates.js +25 -0
- package/dist/src/completion.d.ts +7 -1
- package/dist/src/completion.js +37 -4
- 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/checks.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/file-diff.d.ts +105 -0
- package/dist/src/file-diff.js +244 -0
- 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 +171 -20
- package/dist/src/graph-studio-features.js +2 -2
- package/dist/src/graph-sync.js +5 -2
- package/dist/src/graph-ui/app.js +369 -183
- 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 +32 -17
- package/dist/src/graph-ui/icons.js +1 -0
- package/dist/src/graph-ui/index.html +4 -4
- 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/skill-picker.js +6 -6
- package/dist/src/graph-ui/studio-canvas.js +17 -15
- package/dist/src/graph-ui/studio.css +24 -23
- package/dist/src/graph-ui/studio.js +69 -48
- package/dist/src/graph-ui/style.css +128 -93
- package/dist/src/graph-ui/theme.js +2 -2
- package/dist/src/graph-ui/tokens.css +217 -151
- package/dist/src/graphs.d.ts +76 -2
- package/dist/src/graphs.js +172 -9
- package/dist/src/hardened-runtime.js +8 -2
- package/dist/src/mcp.d.ts +75 -0
- package/dist/src/mcp.js +240 -8
- 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/provider-keys.d.ts +5 -1
- package/dist/src/provider-keys.js +7 -3
- package/dist/src/provider-settings.d.ts +4 -1
- package/dist/src/provider-settings.js +46 -5
- 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 +46 -0
- package/dist/src/qa/index.d.ts +1 -8
- package/dist/src/qa/index.js +1 -16
- package/dist/src/qa/profile/QaProfile.d.ts +5 -1
- package/dist/src/qa/profile/QaProfile.js +6 -2
- package/dist/src/qa/runtime/ProcessManager.d.ts +20 -2
- package/dist/src/qa/runtime/ProcessManager.js +69 -13
- package/dist/src/qa/tools.d.ts +19 -1
- package/dist/src/qa/tools.js +20 -145
- package/dist/src/react-runtime.d.ts +11 -0
- package/dist/src/react-runtime.js +203 -53
- package/dist/src/remote/engine-pool.js +21 -6
- 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/screen-selection.d.ts +38 -0
- package/dist/src/screen-selection.js +103 -0
- package/dist/src/session-changes.d.ts +117 -0
- package/dist/src/session-changes.js +796 -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 +33 -0
- package/dist/src/stall-recovery.js +83 -0
- package/dist/src/subagent-run.js +1 -2
- package/dist/src/telemetry/schema.d.ts +1 -1
- package/dist/src/telemetry/schema.js +1 -2
- package/dist/src/terminal-ui.d.ts +66 -22
- package/dist/src/terminal-ui.js +327 -92
- package/dist/src/tool-diff-stats.d.ts +9 -0
- package/dist/src/tool-diff-stats.js +20 -0
- package/dist/src/tool-names.d.ts +1 -1
- package/dist/src/tool-result-filter.js +1 -1
- package/dist/src/tools.js +26 -2
- package/dist/src/transcript.d.ts +11 -0
- package/dist/src/transcript.js +23 -3
- package/dist/src/types.d.ts +24 -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/guides/tui.md +9 -9
- 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
- package/dist/src/qa/api/http-runner.d.ts +0 -3
- package/dist/src/qa/api/http-runner.js +0 -47
- package/dist/src/qa/git/ChangeDetector.d.ts +0 -26
- package/dist/src/qa/git/ChangeDetector.js +0 -177
- package/dist/src/qa/git/DiffReviewer.d.ts +0 -28
- package/dist/src/qa/git/DiffReviewer.js +0 -115
- package/dist/src/qa/orchestrator/ChangeClassifier.d.ts +0 -14
- package/dist/src/qa/orchestrator/ChangeClassifier.js +0 -28
- package/dist/src/qa/orchestrator/MergeGate.d.ts +0 -14
- package/dist/src/qa/orchestrator/MergeGate.js +0 -40
- package/dist/src/qa/orchestrator/QaOrchestrator.d.ts +0 -79
- package/dist/src/qa/orchestrator/QaOrchestrator.js +0 -373
- package/dist/src/qa/runners/CommandRunner.d.ts +0 -22
- package/dist/src/qa/runners/CommandRunner.js +0 -96
- package/dist/src/qa/runners/TestRunner.d.ts +0 -21
- package/dist/src/qa/runners/TestRunner.js +0 -66
- package/dist/src/qa/runtime/RuntimeSmoke.d.ts +0 -11
- package/dist/src/qa/runtime/RuntimeSmoke.js +0 -78
- package/dist/src/qa/runtime-detect.d.ts +0 -10
- package/dist/src/qa/runtime-detect.js +0 -72
- package/dist/src/qa/security/DependencyScanner.d.ts +0 -19
- package/dist/src/qa/security/DependencyScanner.js +0 -167
- package/dist/src/qa/security/SecretScanner.d.ts +0 -3
- package/dist/src/qa/security/SecretScanner.js +0 -55
|
@@ -23,6 +23,39 @@
|
|
|
23
23
|
}
|
|
24
24
|
applyTheme(); systemTheme.addEventListener('change', applyTheme);
|
|
25
25
|
function element(tag, className, value) { const el = document.createElement(tag); if (className) el.className = className; if (value !== undefined) el.textContent = String(value); return el; }
|
|
26
|
+
// The product's one icon register (ADR 0022): Lucide outlines on the 24-unit grid with round caps
|
|
27
|
+
// and joins, drawn in currentColor. Chrome icons are 16px and icons inside a row 14px, and the
|
|
28
|
+
// stroke is absolute — 1.5px on screen at either size, as Lucide's absoluteStrokeWidth computes it.
|
|
29
|
+
// The disclosure chevron is the same glyph served as /icons/chevron-right.svg, because CSS draws it.
|
|
30
|
+
//
|
|
31
|
+
// Path data is copied from Lucide as lucide-react 1.52 draws it (https://lucide.dev), ISC License:
|
|
32
|
+
// Copyright (c) for portions of Lucide are held by Cole Bemis 2013-2022 as part of Feather (MIT).
|
|
33
|
+
// All other copyright (c) for Lucide are held by Lucide Contributors 2022.
|
|
34
|
+
// Permission to use, copy, modify, and/or distribute this software for any purpose with or without
|
|
35
|
+
// fee is hereby granted, provided that the above copyright notice and this permission notice appear
|
|
36
|
+
// in all copies.
|
|
37
|
+
const ICONS = {
|
|
38
|
+
plus: '<path d="M5 12h14"/><path d="M12 5v14"/>',
|
|
39
|
+
settings: '<path d="M9.671 4.136a2.34 2.34 0 0 1 4.659 0 2.34 2.34 0 0 0 3.319 1.915 2.34 2.34 0 0 1 2.33 4.033 2.34 2.34 0 0 0 0 3.831 2.34 2.34 0 0 1-2.33 4.033 2.34 2.34 0 0 0-3.319 1.915 2.34 2.34 0 0 1-4.659 0 2.34 2.34 0 0 0-3.32-1.915 2.34 2.34 0 0 1-2.33-4.033 2.34 2.34 0 0 0 0-3.831A2.34 2.34 0 0 1 6.35 6.051a2.34 2.34 0 0 0 3.319-1.915"/><circle cx="12" cy="12" r="3"/>',
|
|
40
|
+
'sun-moon': '<path d="M12 2v2"/><path d="M14.837 16.385a6 6 0 1 1-7.223-7.222c.624-.147.97.66.715 1.248a4 4 0 0 0 5.26 5.259c.589-.255 1.396.09 1.248.715"/><path d="M16 12a4 4 0 0 0-4-4"/><path d="m19 5-1.256 1.256"/><path d="M20 12h2"/>',
|
|
41
|
+
'arrow-up': '<path d="m5 12 7-7 7 7"/><path d="M12 19V5"/>',
|
|
42
|
+
x: '<path d="M18 6 6 18"/><path d="m6 6 12 12"/>',
|
|
43
|
+
check: '<path d="M20 6 9 17l-5-5"/>',
|
|
44
|
+
circle: '<circle cx="12" cy="12" r="10"/>',
|
|
45
|
+
'circle-dot': '<circle cx="12" cy="12" r="10"/><circle cx="12" cy="12" r="1"/>',
|
|
46
|
+
'grip-vertical': '<circle cx="9" cy="12" r="1"/><circle cx="9" cy="5" r="1"/><circle cx="9" cy="19" r="1"/><circle cx="15" cy="12" r="1"/><circle cx="15" cy="5" r="1"/><circle cx="15" cy="19" r="1"/>',
|
|
47
|
+
folder: '<path d="M20 20a2 2 0 0 0 2-2V8a2 2 0 0 0-2-2h-7.9a2 2 0 0 1-1.69-.9L9.6 3.9A2 2 0 0 0 7.93 3H4a2 2 0 0 0-2 2v13a2 2 0 0 0 2 2Z"/>',
|
|
48
|
+
};
|
|
49
|
+
function icon(name, size = 16) {
|
|
50
|
+
const svg = document.createElementNS('http://www.w3.org/2000/svg', 'svg');
|
|
51
|
+
const attributes = { class: 'icon', width: size, height: size, viewBox: '0 0 24 24', fill: 'none', stroke: 'currentColor',
|
|
52
|
+
'stroke-width': Number((1.5 * 24 / size).toFixed(3)), 'stroke-linecap': 'round', 'stroke-linejoin': 'round', 'aria-hidden': 'true', focusable: 'false' };
|
|
53
|
+
for (const [key, value] of Object.entries(attributes)) svg.setAttribute(key, String(value));
|
|
54
|
+
svg.innerHTML = ICONS[name] || '';
|
|
55
|
+
return svg;
|
|
56
|
+
}
|
|
57
|
+
// The page's static controls name their glyph with a placeholder; each takes its icon here, once.
|
|
58
|
+
for (const slot of document.querySelectorAll('[data-icon]')) slot.replaceWith(icon(slot.dataset.icon, Number(slot.dataset.size) || 16));
|
|
26
59
|
function text(value) { return typeof value === 'string' ? value : value == null ? '' : JSON.stringify(value, null, 2); }
|
|
27
60
|
function error(value, id = 'error', source = 'action') {
|
|
28
61
|
if (id === 'error') globalErrorSource = value ? source : null;
|
|
@@ -111,7 +144,11 @@
|
|
|
111
144
|
const pruned = saved.filter(id => present.has(id));
|
|
112
145
|
if (pruned.length !== saved.length) saveProjectOrder(pruned);
|
|
113
146
|
}
|
|
114
|
-
|
|
147
|
+
// A finished run the person has not opened since it changed carries the unread mark. The read
|
|
148
|
+
// record is reconciled here, ahead of the render cache, for the same reason as the arrangement:
|
|
149
|
+
// every change it answers to (a new stamp, a new selection) also changes the key below.
|
|
150
|
+
const unread = reconcileSeen();
|
|
151
|
+
if (projectKey === key + [...unread]) return; projectKey = key + [...unread];
|
|
115
152
|
const groups = new Map();
|
|
116
153
|
// Group by the server's opaque project identity: redacted display paths
|
|
117
154
|
// can collide across distinct workspaces and must not merge projects.
|
|
@@ -120,9 +157,11 @@
|
|
|
120
157
|
const rank = new Map(order.map((project, index) => [project, index]));
|
|
121
158
|
$('projects').replaceChildren(); $('session-count').textContent = String(sessions.filter(s => !archived(s)).length);
|
|
122
159
|
const sessionRow = s => {
|
|
123
|
-
|
|
124
|
-
const
|
|
125
|
-
const
|
|
160
|
+
// The status mark, always in the row's fixed 16px leading slot so the names keep one edge.
|
|
161
|
+
const kind = statusMark(s, unread);
|
|
162
|
+
const row = element('button', `session-row${s.id === selectedId ? ' active' : ''}${kind ? ` row-${kind}` : ''}`); row.setAttribute('aria-current', s.id === selectedId ? 'page' : 'false'); row.title = `${s.name || 'Untitled task'} · ${s.status || 'idle'} · Right-click for actions`;
|
|
163
|
+
const mark = element('span', `mark${kind ? ` ${kind}` : ''}`); if (kind) mark.append(element('span', 'sr-only', MARK_LABELS[kind]));
|
|
164
|
+
const timestamp = element('time', '', age(s.updatedAt)); timestamp.dateTime = s.updatedAt || ''; row.append(mark, element('span', 'name', s.name || 'Untitled task'), timestamp); row.onclick = () => select(s.id);
|
|
126
165
|
// From the keyboard the menu opens under the row: the menu key and Shift+F10 are taken here, and a
|
|
127
166
|
// contextmenu event a browser raises for them anyway arrives at (0, 0).
|
|
128
167
|
const atRow = () => { const box = row.getBoundingClientRect(); openMenu(s, box.left + 24, box.bottom, row); };
|
|
@@ -135,7 +174,7 @@
|
|
|
135
174
|
const group = element('section', 'project'); group.setAttribute('data-project', project); const heading = element('div', 'project-header');
|
|
136
175
|
// The grip reorders the whole group — its rows, its archive, its selected state travel with it.
|
|
137
176
|
// Like the desktop rail's, it is a control of its own: drag it, or hold it and use the arrows.
|
|
138
|
-
const grip = element('button', 'project-grip'
|
|
177
|
+
const grip = element('button', 'project-grip'); grip.append(icon('grip-vertical', 14)); grip.type = 'button'; grip.draggable = groups.size > 1;
|
|
139
178
|
grip.setAttribute('aria-label', `Reorder ${folder(workspace)}, position ${(rank.get(project) ?? 0) + 1} of ${order.length}`);
|
|
140
179
|
grip.title = 'Drag to reorder · Up and Down arrows move it · Home and End move it to first or last';
|
|
141
180
|
grip.ondragstart = event => {
|
|
@@ -157,8 +196,8 @@
|
|
|
157
196
|
event.preventDefault();
|
|
158
197
|
if (commitProjectMove(project, move)) focusProjectGrip(project);
|
|
159
198
|
};
|
|
160
|
-
const name = element('span', 'project-name',
|
|
161
|
-
const add = element('button', ''
|
|
199
|
+
const name = element('span', 'project-name'); name.append(icon('folder', 14), element('span', 'project-label', folder(workspace))); name.title = workspace;
|
|
200
|
+
const add = element('button', 'project-add'); add.append(icon('plus', 14)); add.type = 'button'; add.title = `New task in ${workspace}`; add.setAttribute('aria-label', add.title); add.onclick = () => createSession(undefined, list[0].id);
|
|
162
201
|
heading.append(grip, name, add); group.append(heading);
|
|
163
202
|
// Where the carried group would land: the edge of the group under the pointer, marked while the
|
|
164
203
|
// pointer is over it and cleared the moment it moves on, so the line always reads as the next
|
|
@@ -197,7 +236,7 @@
|
|
|
197
236
|
}
|
|
198
237
|
$('projects').append(group);
|
|
199
238
|
}
|
|
200
|
-
if (!sessions.length) $('projects').append(element('p', 'empty-projects', state.sessions.length ? 'No
|
|
239
|
+
if (!sessions.length) $('projects').append(element('p', 'empty-projects', state.sessions.length ? 'No tasks match your search or history setting.' : 'Your CLI tasks will appear here. Open a project to start a new one.'));
|
|
201
240
|
}
|
|
202
241
|
// Project arrangement: the order the groups are listed in, saved in localStorage and keyed by the
|
|
203
242
|
// server's opaque project identity, so redacted display paths that collide stay separate projects.
|
|
@@ -302,6 +341,48 @@
|
|
|
302
341
|
return;
|
|
303
342
|
}
|
|
304
343
|
}
|
|
344
|
+
// A row's status mark, one per row, highest claim first: a question or approval the run stopped on
|
|
345
|
+
// (a still dot in full ink — it needs its person, and says so without motion or red), a run in
|
|
346
|
+
// flight (the ring spinner), a run that failed (the one red), one that was stopped short (a hollow
|
|
347
|
+
// ring), and a finished run not opened since it changed (a small muted dot). Anything else draws
|
|
348
|
+
// the empty slot.
|
|
349
|
+
const MARK_LABELS = { waiting: 'Needs your input', running: 'Running', failed: 'Failed', stopped: 'Stopped', unread: 'Finished, not yet opened' };
|
|
350
|
+
function statusMark(s, unread) {
|
|
351
|
+
const status = String(s?.status || '');
|
|
352
|
+
if (s?.pending || ['waiting', 'awaiting_input', 'awaiting-input', 'needs_clarification'].includes(status)) return 'waiting';
|
|
353
|
+
if (running(s)) return 'running';
|
|
354
|
+
if (['error', 'failed', 'infrastructure_error', 'exhausted'].includes(status)) return 'failed';
|
|
355
|
+
if (['cancelled', 'interrupted', 'disconnected', 'stopped'].includes(status)) return 'stopped';
|
|
356
|
+
if (unread.has(s.id)) return 'unread';
|
|
357
|
+
return '';
|
|
358
|
+
}
|
|
359
|
+
// What this browser has seen of each session: the stamp it carried when it was last on screen. A
|
|
360
|
+
// session met for the first time is taken as read at that moment, so opening the workspace does not
|
|
361
|
+
// flag every finished session in the history window; a later finish moves its stamp past the record
|
|
362
|
+
// and draws the mark until the session is opened. The record is kept beside the arrangement, keyed
|
|
363
|
+
// by session id and pruned to the sessions the server still reports.
|
|
364
|
+
const SEEN_KEY = 'andorra.browser-seen';
|
|
365
|
+
let seenMemory = null;
|
|
366
|
+
function reconcileSeen() {
|
|
367
|
+
// Nothing reported yet (the page before its first poll) is no evidence a session left.
|
|
368
|
+
if (!state.sessions.length) return new Set();
|
|
369
|
+
let seen = seenMemory;
|
|
370
|
+
if (!seen) {
|
|
371
|
+
try { const parsed = typeof localStorage === 'undefined' ? null : JSON.parse(localStorage.getItem(SEEN_KEY) || 'null'); seen = parsed && typeof parsed === 'object' && !Array.isArray(parsed) ? parsed : {}; }
|
|
372
|
+
catch { seen = {}; }
|
|
373
|
+
}
|
|
374
|
+
const next = {}; const unread = new Set();
|
|
375
|
+
for (const s of state.sessions) {
|
|
376
|
+
const stamp = String(s.updatedAt || '');
|
|
377
|
+
// The open session is on screen, so whatever it now says has been seen.
|
|
378
|
+
next[s.id] = s.id === selectedId || !Object.hasOwn(seen, s.id) ? stamp : seen[s.id];
|
|
379
|
+
if (next[s.id] !== stamp && ['succeeded', 'completed'].includes(s.status)) unread.add(s.id);
|
|
380
|
+
}
|
|
381
|
+
const changed = Object.keys(next).length !== Object.keys(seen).length || Object.keys(next).some(id => next[id] !== seen[id]);
|
|
382
|
+
seenMemory = next;
|
|
383
|
+
if (changed) { try { if (typeof localStorage !== 'undefined') localStorage.setItem(SEEN_KEY, JSON.stringify(next)); } catch {} }
|
|
384
|
+
return unread;
|
|
385
|
+
}
|
|
305
386
|
function message(role, value, target = $('conversation')) {
|
|
306
387
|
if (!value) return;
|
|
307
388
|
const item = element('article', `message ${role}`); item.append(element('div', 'message-label', role === 'user' ? 'You' : 'Andorra'), element('div', 'body', value)); target.append(item);
|
|
@@ -312,7 +393,7 @@
|
|
|
312
393
|
const container = $('conversation'); const atBottom = container.scrollHeight - container.scrollTop - container.clientHeight < 100;
|
|
313
394
|
const open = new Set([...container.querySelectorAll('details[open]')].map(d => d.dataset.key));
|
|
314
395
|
const oldScroll = container.scrollTop; container.replaceChildren();
|
|
315
|
-
if (!s) { const welcome = element('div', 'welcome');
|
|
396
|
+
if (!s) { const welcome = element('div', 'welcome'); const mark = element('img', 'welcome-mark'); mark.src = '/andorra-logo.png'; mark.alt = ''; welcome.append(mark, element('h1', '', 'A place for your work'), element('p', '', 'Select a task or open a project to start.')); container.append(welcome); return; }
|
|
316
397
|
const events = s.events || [];
|
|
317
398
|
const completionSummaries = new Set((s.history || []).map(turn => text(turn.completion?.summary || turn.outcome?.completion?.summary || turn.outcome?.summary || (typeof turn.outcome === 'string' ? turn.outcome : ''))).filter(Boolean));
|
|
318
399
|
const tools = new Map();
|
|
@@ -330,7 +411,7 @@
|
|
|
330
411
|
if (!group) {
|
|
331
412
|
const disclosure = element('details', 'run-activity'); disclosure.dataset.key = `run-${runKey}`; disclosure.open = open.has(disclosure.dataset.key) || (running(s) && runKey === lastRunKey);
|
|
332
413
|
const stamp = event.time ? new Date(event.time).toLocaleString() : '';
|
|
333
|
-
disclosure.append(element('summary', '', `${runKey === 'session' ? '
|
|
414
|
+
disclosure.append(element('summary', '', `${runKey === 'session' ? 'Task' : 'Run'} activity${stamp ? ` · ${stamp}` : ''}`));
|
|
334
415
|
const body = element('div', 'activity-body'); disclosure.append(body); group = { disclosure, body, stream: '' }; activities.set(runKey, group);
|
|
335
416
|
}
|
|
336
417
|
const activity = group.body;
|
|
@@ -370,10 +451,10 @@
|
|
|
370
451
|
}
|
|
371
452
|
for (const group of activities.values()) {
|
|
372
453
|
const summary = group.disclosure.querySelector('summary');
|
|
373
|
-
summary.textContent = summary.textContent.replace(/^(Run|
|
|
454
|
+
summary.textContent = summary.textContent.replace(/^(Run|Task) activity/, 'Earlier activity');
|
|
374
455
|
container.append(group.disclosure);
|
|
375
456
|
}
|
|
376
|
-
if (!container.childElementCount) container.append(element('p', 'muted', 'This
|
|
457
|
+
if (!container.childElementCount) container.append(element('p', 'muted', 'This task is ready. Send a prompt to begin.'));
|
|
377
458
|
if (running(s)) container.append(element('div', 'event-note', s.pending ? 'Waiting for your input…' : 'Andorra is working…'));
|
|
378
459
|
container.scrollTop = atBottom ? container.scrollHeight : oldScroll;
|
|
379
460
|
}
|
|
@@ -400,7 +481,7 @@
|
|
|
400
481
|
}
|
|
401
482
|
function renderControls() {
|
|
402
483
|
const s = current(), active = running(s);
|
|
403
|
-
$('send').disabled = submittingSessions.has(s?.id) || !s || !token || s.status === 'cancelling' || cancellingSessions.has(s.id) || ! $('prompt').value.trim(); $('send').textContent = active ? 'Steer
|
|
484
|
+
$('send').disabled = submittingSessions.has(s?.id) || !s || !token || s.status === 'cancelling' || cancellingSessions.has(s.id) || ! $('prompt').value.trim(); $('send-label').textContent = active ? 'Steer' : 'Send';
|
|
404
485
|
$('cancel').hidden = !active; $('cancel').disabled = !token || s?.status === 'cancelling' || cancellingSessions.has(s?.id);
|
|
405
486
|
$('prompt').disabled = !s; $('prompt').placeholder = active ? 'Add direction to the current run…' : 'Ask Andorra to work on your project…';
|
|
406
487
|
$('new-session').disabled = busy || !token;
|
|
@@ -411,7 +492,9 @@
|
|
|
411
492
|
$('session-title').textContent = s?.name || 'Your workspace'; $('workspace-path').textContent = s?.workspace || ''; $('workspace-path').title = s?.workspace || '';
|
|
412
493
|
$('run-status').textContent = s?.pending ? 'Input needed' : s?.status || 'Ready';
|
|
413
494
|
const todos = s?.todos || []; $('todos').replaceChildren();
|
|
414
|
-
|
|
495
|
+
// A to-do is a plain line in every state — the marker and the ink say where it stands; only the
|
|
496
|
+
// approval card above the composer is a card.
|
|
497
|
+
for (const todo of todos) { const status = todo.status || 'pending'; const row = element('li', `todo ${status}`); const marker = element('span', 'todo-marker'); marker.append(icon(status === 'completed' ? 'check' : status === 'in_progress' ? 'circle-dot' : 'circle', 14)); row.append(marker, element('span', 'todo-text', todo.content || todo.text || todo.title)); $('todos').append(row); }
|
|
415
498
|
$('todo-count').textContent = `${todos.filter(t => t.status === 'completed').length}/${todos.length}`; $('progress-empty').hidden = !!todos.length;
|
|
416
499
|
$('run-details').textContent = s ? `${s.provider || ''}${s.model ? ` · ${s.model}` : ''}${s.updatedAt ? `\nLast activity ${new Date(s.updatedAt).toLocaleString()}` : ''}`.trim() : '';
|
|
417
500
|
}
|
|
@@ -422,10 +505,13 @@
|
|
|
422
505
|
// Polls can overlap refreshes after actions. A superseded response must
|
|
423
506
|
// not restore stale questions, settings, session selection or errors.
|
|
424
507
|
if (generation !== refreshGeneration) return;
|
|
425
|
-
state = nextState; state.sessions ||= []; if (['system', 'light', 'dark'].includes(state.settings?.theme)) { appearance = state.settings.theme; localStorage.setItem('andorra-browser-theme', appearance); applyTheme(); } if (!state.sessions.some(s => s.id === selectedId)) select((state.sessions.find(s => !archived(s)) || state.sessions[0])?.id); $('connection').textContent = '
|
|
508
|
+
state = nextState; state.sessions ||= []; if (themeSaving === null && ['system', 'light', 'dark'].includes(state.settings?.theme)) { appearance = state.settings.theme; localStorage.setItem('andorra-browser-theme', appearance); applyTheme(); } if (!state.sessions.some(s => s.id === selectedId)) select((state.sessions.find(s => !archived(s)) || state.sessions[0])?.id); $('connection').textContent = 'Connected locally'; $('connection').className = 'connected'; render(); if (globalErrorSource === 'poll') error('');
|
|
426
509
|
}
|
|
427
|
-
catch (e) { if (generation !== refreshGeneration) return; $('connection').textContent = '
|
|
510
|
+
catch (e) { if (generation !== refreshGeneration) return; $('connection').textContent = 'Disconnected'; $('connection').className = 'disconnected'; if (globalErrorSource !== 'action') error(`${e.message}. ${token ? 'Check that the CLI browser server is still running.' : 'Launch /browser in the CLI to open an authenticated workspace.'}`, 'error', 'poll'); }
|
|
428
511
|
}
|
|
512
|
+
// The appearance the theme switch has applied and is still saving. Until the server has it, a poll
|
|
513
|
+
// that read the settings before the write must not switch the page back.
|
|
514
|
+
let themeSaving = null;
|
|
429
515
|
async function createSession(workspace, projectSessionId) {
|
|
430
516
|
if (busy) return; busy = true; error(''); error('', 'new-error'); renderControls();
|
|
431
517
|
try {
|
|
@@ -461,7 +547,16 @@
|
|
|
461
547
|
$('new-form').onsubmit = e => { e.preventDefault(); createSession($('new-workspace').value.trim()); };
|
|
462
548
|
$('settings').onclick = () => { error('', 'settings-error'); $('max-age').value = state.settings?.maxAgeDays ?? 30; $('theme-setting').value = appearance; $('settings-dialog').showModal(); };
|
|
463
549
|
$('settings-form').onsubmit = async e => { e.preventDefault(); if (await action('/api/settings', { maxAgeDays: Number($('max-age').value), theme: $('theme-setting').value }, 'settings-error')) $('settings-dialog').close(); };
|
|
464
|
-
|
|
550
|
+
// The switch answers at once: the page changes first, then the choice is saved. A save that fails
|
|
551
|
+
// says so, and the next poll shows the appearance the server still holds.
|
|
552
|
+
$('theme').onclick = async () => {
|
|
553
|
+
const next = document.documentElement.dataset.theme === 'dark' ? 'light' : 'dark';
|
|
554
|
+
appearance = next; try { localStorage.setItem('andorra-browser-theme', next); } catch {} applyTheme();
|
|
555
|
+
const saving = themeSaving = { theme: next };
|
|
556
|
+
try { await api('/api/settings', { maxAgeDays: state.settings?.maxAgeDays ?? 30, theme: next }); }
|
|
557
|
+
catch (e) { error(e.message); }
|
|
558
|
+
finally { if (themeSaving === saving) { themeSaving = null; refresh(); } }
|
|
559
|
+
};
|
|
465
560
|
let toastTimer;
|
|
466
561
|
function toast(value) { clearTimeout(toastTimer); $('toast').textContent = value; $('toast').hidden = false; toastTimer = setTimeout(() => { $('toast').hidden = true; }, 2500); }
|
|
467
562
|
// The session menu: the desktop rail's right-click actions. It belongs to a session id, not a row, because
|
|
@@ -478,13 +573,13 @@
|
|
|
478
573
|
const items = [
|
|
479
574
|
['Open', () => select(s.id)],
|
|
480
575
|
['Rename…', () => openRename(s), locked],
|
|
481
|
-
['View
|
|
576
|
+
['View Activity', () => openTrajectory(s)],
|
|
482
577
|
[archived(s) ? 'Unarchive' : 'Archive', () => setArchived(s, !archived(s)), locked],
|
|
483
|
-
['Copy
|
|
578
|
+
['Copy Task ID', () => navigator.clipboard.writeText(s.id).then(() => toast('Task ID copied'), () => error('Copying needs clipboard permission in this browser.'))],
|
|
484
579
|
null,
|
|
485
580
|
['Delete…', () => openDelete(s), locked, 'danger'],
|
|
486
581
|
];
|
|
487
|
-
const el = element('div', 'context-menu'); el.setAttribute('role', 'menu'); el.setAttribute('aria-label', `${s.name || 'Untitled
|
|
582
|
+
const el = element('div', 'context-menu'); el.setAttribute('role', 'menu'); el.setAttribute('aria-label', `${s.name || 'Untitled task'} actions`);
|
|
488
583
|
for (const item of items) {
|
|
489
584
|
if (!item) { const rule = element('div', 'menu-separator'); rule.setAttribute('role', 'separator'); el.append(rule); continue; }
|
|
490
585
|
const [label, run, disabled, kind] = item;
|
|
@@ -520,20 +615,20 @@
|
|
|
520
615
|
if (await action(`/api/sessions/${encodeURIComponent(renaming)}/rename`, { name }, 'rename-error')) $('rename-dialog').close();
|
|
521
616
|
};
|
|
522
617
|
async function setArchived(s, value) {
|
|
523
|
-
if (await action(`/api/sessions/${encodeURIComponent(s.id)}/archive`, { archived: value })) toast(`${value ? 'Archived' : 'Restored'} “${s.name || 'Untitled
|
|
618
|
+
if (await action(`/api/sessions/${encodeURIComponent(s.id)}/archive`, { archived: value })) toast(`${value ? 'Archived' : 'Restored'} “${s.name || 'Untitled task'}”`);
|
|
524
619
|
}
|
|
525
620
|
function openDelete(s) {
|
|
526
621
|
deleting = s; error('', 'delete-error');
|
|
527
|
-
$('delete-text').textContent = `Delete “${s.name || 'Untitled
|
|
622
|
+
$('delete-text').textContent = `Delete “${s.name || 'Untitled task'}”? Its saved conversation is removed from this computer. Its activity log is kept.`;
|
|
528
623
|
$('delete-dialog').showModal(); $('delete-form').querySelector('footer [data-close]').focus();
|
|
529
624
|
}
|
|
530
625
|
$('delete-form').onsubmit = async e => {
|
|
531
626
|
e.preventDefault(); const s = deleting; if (!s) return;
|
|
532
|
-
if (await action(`/api/sessions/${encodeURIComponent(s.id)}/delete`, {}, 'delete-error')) { $('delete-dialog').close(); drafts.delete(s.id); toast(`Deleted “${s.name || 'Untitled
|
|
627
|
+
if (await action(`/api/sessions/${encodeURIComponent(s.id)}/delete`, {}, 'delete-error')) { $('delete-dialog').close(); drafts.delete(s.id); toast(`Deleted “${s.name || 'Untitled task'}”`); }
|
|
533
628
|
};
|
|
534
629
|
// The trajectory panel: one page of the session's log at a time, each record a line that opens to its JSON.
|
|
535
630
|
// Runtime events this page's runs recorded; the engine's model calls, from the desktop or this page; a terminal's own log.
|
|
536
|
-
const logLabels = { browser: 'Browser events', engine: '
|
|
631
|
+
const logLabels = { browser: 'Browser events', engine: 'Model calls', terminal: 'Terminal log' };
|
|
537
632
|
let trajectory = null, trajectoryGeneration = 0;
|
|
538
633
|
function recordSummary(record) {
|
|
539
634
|
const data = record.data || {}, event = data.event || {}, detail = event.data || {};
|
|
@@ -571,16 +666,16 @@
|
|
|
571
666
|
}) : []));
|
|
572
667
|
renderRecords(result.page?.records || []);
|
|
573
668
|
const page = result.page;
|
|
574
|
-
$('trajectory-meta').textContent = page ? `${logLabels[result.source] || result.source} · ${t.loaded} of ${page.total}${page.truncated ? '+' : ''}
|
|
575
|
-
$('trajectory-empty').hidden = !!page?.count || offset > 0; $('trajectory-empty').textContent = page ? 'This log has no
|
|
669
|
+
$('trajectory-meta').textContent = page ? `${logLabels[result.source] || result.source} · ${t.loaded} of ${page.total}${page.truncated ? '+' : ''} entries` : '';
|
|
670
|
+
$('trajectory-empty').hidden = !!page?.count || offset > 0; $('trajectory-empty').textContent = page ? 'This log has no entries.' : 'No activity has been recorded for this task yet.';
|
|
576
671
|
$('trajectory-download').disabled = !page; $('trajectory-more').hidden = !page?.hasMore;
|
|
577
672
|
}
|
|
578
673
|
catch (e) { if (generation === trajectoryGeneration) error(e.message, 'trajectory-error'); }
|
|
579
674
|
finally { if (generation === trajectoryGeneration) $('trajectory-more').disabled = false; }
|
|
580
675
|
}
|
|
581
676
|
function openTrajectory(s) {
|
|
582
|
-
trajectory = { id: s.id, name: s.name || 'Untitled
|
|
583
|
-
$('trajectory-title').textContent = `
|
|
677
|
+
trajectory = { id: s.id, name: s.name || 'Untitled task', loaded: 0 };
|
|
678
|
+
$('trajectory-title').textContent = `Activity · ${trajectory.name}`; $('trajectory-meta').textContent = 'Loading…';
|
|
584
679
|
$('trajectory-records').replaceChildren(); $('trajectory-sources').replaceChildren(); $('trajectory-empty').hidden = true; $('trajectory-more').hidden = true; $('trajectory-download').disabled = true;
|
|
585
680
|
$('trajectory-dialog').showModal(); loadTrajectory();
|
|
586
681
|
}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
<svg xmlns="http://www.w3.org/2000/svg" width="14" height="14" viewBox="0 0 24 24" fill="none" stroke="#000" stroke-width="2.571" stroke-linecap="round" stroke-linejoin="round">
|
|
2
|
+
<!-- Lucide chevron-right at 14px on an absolute 1.5px stroke; the workspace's CSS draws it as a mask in the disclosure's ink.
|
|
3
|
+
Path data from Lucide (https://lucide.dev), ISC License. Copyright (c) for portions of Lucide are held by Cole Bemis
|
|
4
|
+
2013-2022 as part of Feather (MIT). All other copyright (c) for Lucide are held by Lucide Contributors 2022.
|
|
5
|
+
Permission to use, copy, modify, and/or distribute this software for any purpose with or without fee is hereby granted,
|
|
6
|
+
provided that the above copyright notice and this permission notice appear in all copies. -->
|
|
7
|
+
<path d="m9 18 6-6-6-6"/>
|
|
8
|
+
</svg>
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
<!doctype html>
|
|
2
2
|
<html lang="en">
|
|
3
|
-
<head><meta charset="utf-8"><meta name="viewport" content="width=device-width,initial-scale=1"><meta name="color-scheme" content="light
|
|
3
|
+
<head><meta charset="utf-8"><meta name="viewport" content="width=device-width,initial-scale=1"><meta name="color-scheme" content="dark light"><title>Andorra Code — Workspace</title><link rel="icon" type="image/png" href="/andorra-logo.png"><link rel="stylesheet" href="/tokens.css"><link rel="stylesheet" href="/style.css"><script src="/app.js" defer></script></head>
|
|
4
4
|
<body>
|
|
5
|
-
<aside class="sidebar"><header class="brand"><img class="brand-mark" src="/andorra-logo.png" alt=""><div>Andorra Code<small>Workspace</small></div></header><button class="new-session" id="new-session"
|
|
6
|
-
<main><header class="topbar"><div class="session-heading"><strong id="session-title">Your workspace</strong><span id="workspace-path"></span></div><span id="run-status" class="badge">Ready</span><button id="toggle-progress" aria-expanded="true" aria-controls="progress-panel">Progress</button><button id="theme" aria-label="Switch to
|
|
7
|
-
<dialog id="new-dialog"><form id="new-form"><header><h2>Open a project</h2><button type="button" data-close="new-dialog" aria-label="Close"
|
|
8
|
-
<dialog id="settings-dialog"><form id="settings-form"><header><h2>Workspace settings</h2><button type="button" data-close="settings-dialog" aria-label="Close"
|
|
9
|
-
<dialog id="rename-dialog"><form id="rename-form"><header><h2>Rename
|
|
10
|
-
<dialog id="delete-dialog"><form id="delete-form"><header><h2>Delete
|
|
11
|
-
<dialog id="trajectory-dialog" class="trajectory-dialog" aria-labelledby="trajectory-title"><header><div class="trajectory-heading"><h2 id="trajectory-title">
|
|
5
|
+
<aside class="sidebar"><header class="brand"><img class="brand-mark" src="/andorra-logo.png" alt=""><div>Andorra Code<small>Workspace</small></div></header><button class="new-session" id="new-session"><i data-icon="plus"></i>New Task</button><label class="search"><span class="sr-only">Search projects and tasks</span><input id="search" type="search" placeholder="Search tasks…"></label><div class="section-label">Projects <span id="session-count"></span></div><nav id="projects" aria-label="Projects and tasks"></nav><footer class="sidebar-footer"><span id="connection" role="status">Connecting…</span><button id="settings" aria-label="Open settings"><i data-icon="settings"></i>Settings</button></footer></aside>
|
|
6
|
+
<main><header class="topbar"><div class="session-heading"><strong id="session-title">Your workspace</strong><span id="workspace-path"></span></div><span id="run-status" class="badge">Ready</span><button id="toggle-progress" aria-expanded="true" aria-controls="progress-panel">Progress</button><button id="theme" class="icon-button" aria-label="Switch to light theme"><i data-icon="sun-moon"></i></button></header><div class="work-area"><section class="chat"><div id="conversation" class="conversation" tabindex="0" aria-label="Conversation"><div class="welcome"><img class="welcome-mark" src="/andorra-logo.png" alt=""><h1>A place for your work</h1><p>Select a task or open a project to start.</p></div></div><section id="pending" class="pending-card" aria-label="Your input is needed" hidden></section><div class="composer-wrap"><form id="composer" class="composer"><label class="sr-only" for="prompt">Prompt or direction for this task</label><textarea id="prompt" placeholder="Ask Andorra to work on your project…" rows="3"></textarea><div class="composer-footer"><span id="composer-hint">Enter to send · Shift+Enter for a new line</span><div><button id="cancel" type="button" hidden>Stop Run</button><button id="send" class="primary" type="submit" disabled><span id="send-label">Send</span><i data-icon="arrow-up"></i></button></div></div></form><div id="error" class="error" role="alert" hidden></div></div></section><aside class="progress-panel" id="progress-panel"><header><strong>Progress</strong><span id="todo-count">0/0</span></header><ol id="todos"></ol><p id="progress-empty" class="muted">The agent’s plan will appear here as it works.</p><div class="run-details" id="run-details"></div></aside></div></main>
|
|
7
|
+
<dialog id="new-dialog"><form id="new-form"><header><h2>Open a project</h2><button type="button" class="icon-button" data-close="new-dialog" aria-label="Close"><i data-icon="x"></i></button></header><p>Create a task in a folder on this computer. Existing CLI projects appear automatically.</p><label>Project folder<input id="new-workspace" required placeholder="C:\Users\you\projects\my-project" autocomplete="off"></label><div id="new-error" class="error" role="alert" hidden></div><footer><button type="button" data-close="new-dialog">Cancel</button><button type="submit" class="primary">Create Task</button></footer></form></dialog>
|
|
8
|
+
<dialog id="settings-dialog"><form id="settings-form"><header><h2>Workspace settings</h2><button type="button" class="icon-button" data-close="settings-dialog" aria-label="Close"><i data-icon="x"></i></button></header><label for="max-age">Show tasks active in the last</label><input id="max-age" type="number" min="0" max="36500" step="1" required aria-describedby="max-age-help"><span class="muted" id="max-age-help">days. Use 0 to show all history. Hidden tasks remain saved.</span><label for="theme-setting">Appearance</label><select id="theme-setting"><option value="system">System default</option><option value="light">Light</option><option value="dark">Dark</option></select><div id="settings-error" class="error" role="alert" hidden></div><footer><button type="button" data-close="settings-dialog">Cancel</button><button type="submit" class="primary">Save Settings</button></footer></form></dialog>
|
|
9
|
+
<dialog id="rename-dialog"><form id="rename-form"><header><h2>Rename task</h2><button type="button" class="icon-button" data-close="rename-dialog" aria-label="Close"><i data-icon="x"></i></button></header><label for="rename-name">Name</label><input id="rename-name" required maxlength="200" autocomplete="off"><div id="rename-error" class="error" role="alert" hidden></div><footer><button type="button" data-close="rename-dialog">Cancel</button><button type="submit" class="primary">Rename</button></footer></form></dialog>
|
|
10
|
+
<dialog id="delete-dialog"><form id="delete-form"><header><h2>Delete task</h2><button type="button" class="icon-button" data-close="delete-dialog" aria-label="Close"><i data-icon="x"></i></button></header><p id="delete-text"></p><div id="delete-error" class="error" role="alert" hidden></div><footer><button type="button" data-close="delete-dialog">Cancel</button><button type="submit" class="primary">Delete</button></footer></form></dialog>
|
|
11
|
+
<dialog id="trajectory-dialog" class="trajectory-dialog" aria-labelledby="trajectory-title"><header><div class="trajectory-heading"><h2 id="trajectory-title">Activity</h2><span id="trajectory-meta"></span></div><div class="trajectory-actions"><div id="trajectory-sources" role="group" aria-label="Log"></div><button id="trajectory-download" type="button">Download .jsonl</button><button type="button" class="icon-button" data-close="trajectory-dialog" aria-label="Close"><i data-icon="x"></i></button></div></header><ol id="trajectory-records" class="trajectory-records" aria-label="Activity entries"></ol><p id="trajectory-empty" class="muted" hidden></p><div id="trajectory-error" class="error" role="alert" hidden></div><footer><button id="trajectory-more" type="button" hidden>Load More</button></footer></dialog>
|
|
12
12
|
<div id="toast" class="toast" role="status" aria-live="polite" hidden></div>
|
|
13
13
|
</body></html>
|