@andorra-labs/code 0.1.9 → 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/dist/src/agent-execution.js +20 -0
- package/dist/src/app-server/protocol.d.ts +108 -1
- package/dist/src/app-server/protocol.js +8 -1
- package/dist/src/app-server.d.ts +25 -0
- package/dist/src/app-server.js +156 -11
- 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-ui/app.js +19 -19
- package/dist/src/browser-ui/index.html +7 -7
- package/dist/src/cli.js +10 -5
- package/dist/src/commands.d.ts +1 -1
- package/dist/src/commands.js +1 -1
- package/dist/src/completion-gates.js +1 -1
- package/dist/src/completion.d.ts +1 -1
- package/dist/src/completion.js +1 -1
- package/dist/src/decision/checks.js +1 -1
- package/dist/src/file-diff.d.ts +105 -0
- package/dist/src/file-diff.js +244 -0
- package/dist/src/graph-manager-chat.js +15 -15
- package/dist/src/graph-server.js +9 -9
- package/dist/src/graph-ui/app.js +123 -118
- package/dist/src/graph-ui/embed.js +9 -9
- package/dist/src/graph-ui/icons.js +1 -0
- package/dist/src/graph-ui/index.html +3 -3
- package/dist/src/graph-ui/manager-state.js +3 -3
- package/dist/src/graph-ui/manager.js +14 -14
- package/dist/src/graph-ui/skill-picker.js +6 -6
- package/dist/src/graph-ui/studio-canvas.js +15 -15
- package/dist/src/graph-ui/studio.js +40 -40
- package/dist/src/graph-ui/style.css +3 -1
- package/dist/src/graph-ui/theme.js +2 -2
- package/dist/src/graphs.d.ts +7 -1
- package/dist/src/graphs.js +12 -2
- package/dist/src/mcp.d.ts +75 -0
- package/dist/src/mcp.js +240 -8
- package/dist/src/membership-errors.js +1 -1
- 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/qa/guidance.js +6 -19
- package/dist/src/qa/index.d.ts +0 -2
- package/dist/src/qa/index.js +0 -2
- package/dist/src/qa/profile/QaProfile.d.ts +5 -1
- package/dist/src/qa/profile/QaProfile.js +6 -2
- package/dist/src/qa/tools.d.ts +19 -1
- package/dist/src/qa/tools.js +20 -145
- package/dist/src/react-runtime.js +13 -2
- package/dist/src/remote/engine-pool.js +18 -6
- 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/stall-recovery.d.ts +11 -0
- package/dist/src/stall-recovery.js +12 -0
- package/dist/src/telemetry/schema.d.ts +1 -1
- package/dist/src/telemetry/schema.js +1 -2
- package/dist/src/terminal-ui.d.ts +64 -20
- package/dist/src/terminal-ui.js +310 -80
- 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 +14 -2
- package/dist/src/types.d.ts +6 -0
- package/docs/guides/desktop-app.md +1 -1
- package/docs/guides/tui.md +9 -9
- package/package.json +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
|
@@ -159,9 +159,9 @@
|
|
|
159
159
|
const sessionRow = s => {
|
|
160
160
|
// The status mark, always in the row's fixed 16px leading slot so the names keep one edge.
|
|
161
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
|
|
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
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
|
|
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);
|
|
165
165
|
// From the keyboard the menu opens under the row: the menu key and Shift+F10 are taken here, and a
|
|
166
166
|
// contextmenu event a browser raises for them anyway arrives at (0, 0).
|
|
167
167
|
const atRow = () => { const box = row.getBoundingClientRect(); openMenu(s, box.left + 24, box.bottom, row); };
|
|
@@ -197,7 +197,7 @@
|
|
|
197
197
|
if (commitProjectMove(project, move)) focusProjectGrip(project);
|
|
198
198
|
};
|
|
199
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
|
|
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);
|
|
201
201
|
heading.append(grip, name, add); group.append(heading);
|
|
202
202
|
// Where the carried group would land: the edge of the group under the pointer, marked while the
|
|
203
203
|
// pointer is over it and cleared the moment it moves on, so the line always reads as the next
|
|
@@ -236,7 +236,7 @@
|
|
|
236
236
|
}
|
|
237
237
|
$('projects').append(group);
|
|
238
238
|
}
|
|
239
|
-
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.'));
|
|
240
240
|
}
|
|
241
241
|
// Project arrangement: the order the groups are listed in, saved in localStorage and keyed by the
|
|
242
242
|
// server's opaque project identity, so redacted display paths that collide stay separate projects.
|
|
@@ -393,7 +393,7 @@
|
|
|
393
393
|
const container = $('conversation'); const atBottom = container.scrollHeight - container.scrollTop - container.clientHeight < 100;
|
|
394
394
|
const open = new Set([...container.querySelectorAll('details[open]')].map(d => d.dataset.key));
|
|
395
395
|
const oldScroll = container.scrollTop; container.replaceChildren();
|
|
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
|
|
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; }
|
|
397
397
|
const events = s.events || [];
|
|
398
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));
|
|
399
399
|
const tools = new Map();
|
|
@@ -411,7 +411,7 @@
|
|
|
411
411
|
if (!group) {
|
|
412
412
|
const disclosure = element('details', 'run-activity'); disclosure.dataset.key = `run-${runKey}`; disclosure.open = open.has(disclosure.dataset.key) || (running(s) && runKey === lastRunKey);
|
|
413
413
|
const stamp = event.time ? new Date(event.time).toLocaleString() : '';
|
|
414
|
-
disclosure.append(element('summary', '', `${runKey === 'session' ? '
|
|
414
|
+
disclosure.append(element('summary', '', `${runKey === 'session' ? 'Task' : 'Run'} activity${stamp ? ` · ${stamp}` : ''}`));
|
|
415
415
|
const body = element('div', 'activity-body'); disclosure.append(body); group = { disclosure, body, stream: '' }; activities.set(runKey, group);
|
|
416
416
|
}
|
|
417
417
|
const activity = group.body;
|
|
@@ -451,10 +451,10 @@
|
|
|
451
451
|
}
|
|
452
452
|
for (const group of activities.values()) {
|
|
453
453
|
const summary = group.disclosure.querySelector('summary');
|
|
454
|
-
summary.textContent = summary.textContent.replace(/^(Run|
|
|
454
|
+
summary.textContent = summary.textContent.replace(/^(Run|Task) activity/, 'Earlier activity');
|
|
455
455
|
container.append(group.disclosure);
|
|
456
456
|
}
|
|
457
|
-
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.'));
|
|
458
458
|
if (running(s)) container.append(element('div', 'event-note', s.pending ? 'Waiting for your input…' : 'Andorra is working…'));
|
|
459
459
|
container.scrollTop = atBottom ? container.scrollHeight : oldScroll;
|
|
460
460
|
}
|
|
@@ -573,13 +573,13 @@
|
|
|
573
573
|
const items = [
|
|
574
574
|
['Open', () => select(s.id)],
|
|
575
575
|
['Rename…', () => openRename(s), locked],
|
|
576
|
-
['View
|
|
576
|
+
['View Activity', () => openTrajectory(s)],
|
|
577
577
|
[archived(s) ? 'Unarchive' : 'Archive', () => setArchived(s, !archived(s)), locked],
|
|
578
|
-
['Copy
|
|
578
|
+
['Copy Task ID', () => navigator.clipboard.writeText(s.id).then(() => toast('Task ID copied'), () => error('Copying needs clipboard permission in this browser.'))],
|
|
579
579
|
null,
|
|
580
580
|
['Delete…', () => openDelete(s), locked, 'danger'],
|
|
581
581
|
];
|
|
582
|
-
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`);
|
|
583
583
|
for (const item of items) {
|
|
584
584
|
if (!item) { const rule = element('div', 'menu-separator'); rule.setAttribute('role', 'separator'); el.append(rule); continue; }
|
|
585
585
|
const [label, run, disabled, kind] = item;
|
|
@@ -615,20 +615,20 @@
|
|
|
615
615
|
if (await action(`/api/sessions/${encodeURIComponent(renaming)}/rename`, { name }, 'rename-error')) $('rename-dialog').close();
|
|
616
616
|
};
|
|
617
617
|
async function setArchived(s, value) {
|
|
618
|
-
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'}”`);
|
|
619
619
|
}
|
|
620
620
|
function openDelete(s) {
|
|
621
621
|
deleting = s; error('', 'delete-error');
|
|
622
|
-
$('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.`;
|
|
623
623
|
$('delete-dialog').showModal(); $('delete-form').querySelector('footer [data-close]').focus();
|
|
624
624
|
}
|
|
625
625
|
$('delete-form').onsubmit = async e => {
|
|
626
626
|
e.preventDefault(); const s = deleting; if (!s) return;
|
|
627
|
-
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'}”`); }
|
|
628
628
|
};
|
|
629
629
|
// The trajectory panel: one page of the session's log at a time, each record a line that opens to its JSON.
|
|
630
630
|
// Runtime events this page's runs recorded; the engine's model calls, from the desktop or this page; a terminal's own log.
|
|
631
|
-
const logLabels = { browser: 'Browser events', engine: '
|
|
631
|
+
const logLabels = { browser: 'Browser events', engine: 'Model calls', terminal: 'Terminal log' };
|
|
632
632
|
let trajectory = null, trajectoryGeneration = 0;
|
|
633
633
|
function recordSummary(record) {
|
|
634
634
|
const data = record.data || {}, event = data.event || {}, detail = event.data || {};
|
|
@@ -666,16 +666,16 @@
|
|
|
666
666
|
}) : []));
|
|
667
667
|
renderRecords(result.page?.records || []);
|
|
668
668
|
const page = result.page;
|
|
669
|
-
$('trajectory-meta').textContent = page ? `${logLabels[result.source] || result.source} · ${t.loaded} of ${page.total}${page.truncated ? '+' : ''}
|
|
670
|
-
$('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.';
|
|
671
671
|
$('trajectory-download').disabled = !page; $('trajectory-more').hidden = !page?.hasMore;
|
|
672
672
|
}
|
|
673
673
|
catch (e) { if (generation === trajectoryGeneration) error(e.message, 'trajectory-error'); }
|
|
674
674
|
finally { if (generation === trajectoryGeneration) $('trajectory-more').disabled = false; }
|
|
675
675
|
}
|
|
676
676
|
function openTrajectory(s) {
|
|
677
|
-
trajectory = { id: s.id, name: s.name || 'Untitled
|
|
678
|
-
$('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…';
|
|
679
679
|
$('trajectory-records').replaceChildren(); $('trajectory-sources').replaceChildren(); $('trajectory-empty').hidden = true; $('trajectory-more').hidden = true; $('trajectory-download').disabled = true;
|
|
680
680
|
$('trajectory-dialog').showModal(); loadTrajectory();
|
|
681
681
|
}
|
|
@@ -2,12 +2,12 @@
|
|
|
2
2
|
<html lang="en">
|
|
3
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"><i data-icon="plus"></i>New
|
|
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
|
|
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
|
|
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
|
|
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>
|
package/dist/src/cli.js
CHANGED
|
@@ -52,7 +52,7 @@ function offerSkillCommands(terminal, config, directory) {
|
|
|
52
52
|
}
|
|
53
53
|
import { meterStreamedRequest } from './token-rate.js';
|
|
54
54
|
import { attachmentLabel, attachmentReadRoots, attachmentReferenceBlock, pruneAttachments, readClipboardImage, resolveAttachments, writeClipboardText } from './attachments.js';
|
|
55
|
-
import { describeTool, formatEvent, formatRunResult } from './transcript.js';
|
|
55
|
+
import { describeTool, formatAnswer, formatEvent, formatRunResult } from './transcript.js';
|
|
56
56
|
import { staticToolTimestamp } from './tool-call-clock.js';
|
|
57
57
|
import { LocalToolMemory } from './memory/LocalToolMemory.js';
|
|
58
58
|
import { askClarification } from './clarification-ui.js';
|
|
@@ -937,7 +937,7 @@ export async function main(argv = process.argv.slice(2), dependencies = {}) {
|
|
|
937
937
|
const ownsController = !active;
|
|
938
938
|
if (ownsController)
|
|
939
939
|
active = controller;
|
|
940
|
-
terminal.setStatus({ activity: 'Checking graph models' });
|
|
940
|
+
terminal.setStatus({ activity: 'Checking graph models', backgroundActivity: true });
|
|
941
941
|
graphModelsHealthy = false;
|
|
942
942
|
// Run preflights reuse the startup graph until a refresh replaces it; dropping the
|
|
943
943
|
// cache first means a failed refresh falls back to loading again at run time.
|
|
@@ -1570,7 +1570,7 @@ export async function main(argv = process.argv.slice(2), dependencies = {}) {
|
|
|
1570
1570
|
const loadedGraph = startupGraph && !startupGraphReused && startupGraphSelection === (state.graph ?? 'default')
|
|
1571
1571
|
? (startupGraphReused = true, startupGraph)
|
|
1572
1572
|
: await preflight(signal => loadGraph(state.graph ?? 'default', signal));
|
|
1573
|
-
terminal?.setStatus({ activity: 'Checking graph models' });
|
|
1573
|
+
terminal?.setStatus({ activity: 'Checking graph models', backgroundActivity: true });
|
|
1574
1574
|
graphModelsHealthy = false;
|
|
1575
1575
|
const health = await preflight(signal => checkGraphHealth(loadedGraph, config, signal, {
|
|
1576
1576
|
onUsage: (delta, reference) => {
|
|
@@ -1704,7 +1704,9 @@ export async function main(argv = process.argv.slice(2), dependencies = {}) {
|
|
|
1704
1704
|
await runResumed();
|
|
1705
1705
|
}
|
|
1706
1706
|
} };
|
|
1707
|
-
|
|
1707
|
+
const mcpModule = await import('./mcp.js');
|
|
1708
|
+
// How each server answered is recorded, so the desktop's MCP page can show it without starting it.
|
|
1709
|
+
return mcpModule.connectMcpServers(snapshot.servers, extensionContext, message => terminal ? terminal.print(message) : process.stderr.write(safeTerminal(message) + '\n'), active.signal, { status: mcpModule.mcpTaskStatusReporter(configDirectory()) });
|
|
1708
1710
|
}) : { tools: [], close: async () => { } };
|
|
1709
1711
|
if (terminal) {
|
|
1710
1712
|
try {
|
|
@@ -2305,7 +2307,10 @@ export async function main(argv = process.argv.slice(2), dependencies = {}) {
|
|
|
2305
2307
|
// is what this turn's work answers to; the stopped turn above it still carries the original.
|
|
2306
2308
|
for (const turn of displayHistory(sessionArchive)) {
|
|
2307
2309
|
terminal.printPrompt(turn.direction ?? turn.task);
|
|
2308
|
-
|
|
2310
|
+
// A saved answer is markdown like a live one, so it is rendered the same way: printed
|
|
2311
|
+
// verbatim, a restored conversation showed raw `**`, `##` and fences.
|
|
2312
|
+
const answer = formatAnswer(turn.completion.summary);
|
|
2313
|
+
terminal.print(answer.text, answer.detail, undefined, true);
|
|
2309
2314
|
}
|
|
2310
2315
|
print(`Resumed ${record.name} (${record.id.slice(-10)}) in a new session. Saved task/outcome context restored; current model and graph settings retained.`);
|
|
2311
2316
|
if (abandonedTimers)
|
package/dist/src/commands.d.ts
CHANGED
|
@@ -6,7 +6,7 @@ import type { Completion, RunResult } from './runtime.js';
|
|
|
6
6
|
import type { Usage } from './types.js';
|
|
7
7
|
import type { CodeIntelligenceManager } from './code-intelligence/CodeIntelligenceManager.js';
|
|
8
8
|
import { logoutCodex } from './codex-auth.js';
|
|
9
|
-
export declare const HELP = "Commands:\n /browser Open the browser workspace (CLI stays available)\n /session Browse and resume saved sessions (newest first)\n /login [--no-browser] Sign in or create an Andorra account (prints the address over SSH)\n /auth logout Remove this machine's saved Andorra account session\n /auth status Show Andorra account session status\n /model [model-id] Open model selection or select a model directly; with a graph that pins node models, asks whether to override them\n /model list Discover models from the active provider\n /providers [id] Choose providers; Right/e edits; Add provider configures\n /subagent [id [model]] Set the provider/model external hosts (Claude/Codex CLI) must use for Andorra subagent runs; off clears it\n /reasoning <level> Set default|none|minimal|low|medium|high|xhigh|max\n /graph [id] Select a graph or open the web graph builder\n /codegraph <action> Code intelligence: status|enable|disable|rebuild; enable|disable --global sets the default for every project\n /dashboard Toggle live dashboard and transcript (TTY only)\n /attach <path> Attach a file or folder to your next task (large pastes and dropped files attach automatically)\n /usage Open session usage (Escape to return)\n /permissions [mode] Choose and remember workspace permissions\n /jev <on|off|status> Turn Jev on or off for nodes that enable it, or show its setting\n /feedback <on|off|status> Show the anonymous-feedback setting; Paid accounts can turn it off\n /yolo <on|off> Turn session-wide Full Access on or off (host files and network)\n /tools List available coding tools\n /skills List, install, enable, disable or remove skills\n /<skillname> [args] Apply an enabled imported skill to this and every later message; qualify duplicate names by catalog ID\n /skill [on|off|remove] Show, pause, resume or end the session's active skill\n /plugins List, install, enable, disable or remove plugins\n /mcp Add, edit, enable, disable or delete MCP servers\n /logout Sign out of your Andorra account (then /login to switch accounts)\n /logout --all Sign out, and delete every other Andorra sign-in saved on this machine\n /logout codex Sign out of every configured Codex (ChatGPT) account\n /status Show workspace and current settings\n /clear Clear the conversation on screen and the retained context (session usage is retained)\n /compact Compact retained conversation history to free context\n /help Show commands\n /exit Quit\nSelection screens: Up/Down to browse, Enter or Space to select, Escape to return.\nCtrl+B toggles dashboard; Ctrl+G pages its graph; Ctrl+N cycles dashboard model statistics (display only).\nCtrl+T expands/collapses todos; Ctrl+O expands/collapses tool details; Ctrl+Y collapses/expands live thinking.\nShift+Arrow/Home/End selects prompt text; Ctrl+C copies and Ctrl+X cuts a selection. The wheel scrolls; Up/Down recall prompts.
|
|
9
|
+
export declare const HELP = "Commands:\n /browser Open the browser workspace (CLI stays available)\n /session Browse and resume saved sessions (newest first)\n /login [--no-browser] Sign in or create an Andorra account (prints the address over SSH)\n /auth logout Remove this machine's saved Andorra account session\n /auth status Show Andorra account session status\n /model [model-id] Open model selection or select a model directly; with a graph that pins node models, asks whether to override them\n /model list Discover models from the active provider\n /providers [id] Choose providers; Right/e edits; Add provider configures\n /subagent [id [model]] Set the provider/model external hosts (Claude/Codex CLI) must use for Andorra subagent runs; off clears it\n /reasoning <level> Set default|none|minimal|low|medium|high|xhigh|max\n /graph [id] Select a graph or open the web graph builder\n /codegraph <action> Code intelligence: status|enable|disable|rebuild; enable|disable --global sets the default for every project\n /dashboard Toggle live dashboard and transcript (TTY only)\n /attach <path> Attach a file or folder to your next task (large pastes and dropped files attach automatically)\n /usage Open session usage (Escape to return)\n /permissions [mode] Choose and remember workspace permissions\n /jev <on|off|status> Turn Jev on or off for nodes that enable it, or show its setting\n /feedback <on|off|status> Show the anonymous-feedback setting; Paid accounts can turn it off\n /yolo <on|off> Turn session-wide Full Access on or off (host files and network)\n /tools List available coding tools\n /skills List, install, enable, disable or remove skills\n /<skillname> [args] Apply an enabled imported skill to this and every later message; qualify duplicate names by catalog ID\n /skill [on|off|remove] Show, pause, resume or end the session's active skill\n /plugins List, install, enable, disable or remove plugins\n /mcp Add, edit, enable, disable or delete MCP servers\n /logout Sign out of your Andorra account (then /login to switch accounts)\n /logout --all Sign out, and delete every other Andorra sign-in saved on this machine\n /logout codex Sign out of every configured Codex (ChatGPT) account\n /status Show workspace and current settings\n /clear Clear the conversation on screen and the retained context (session usage is retained)\n /compact Compact retained conversation history to free context\n /help Show commands\n /exit Quit\nSelection screens: Up/Down to browse, Enter or Space to select, Escape to return.\nCtrl+B toggles dashboard; Ctrl+G pages its graph; Ctrl+N cycles dashboard model statistics (display only).\nCtrl+T expands/collapses todos; Ctrl+O expands/collapses tool details; Ctrl+Y collapses/expands live thinking.\nShift+Arrow/Home/End selects prompt text; Ctrl+C copies and Ctrl+X cuts a selection. The wheel scrolls; Up/Down recall prompts. Drag selects and copies transcript text; double-click copies a word.\nCtrl+C stops an interactive run; send direction to resume, or press Ctrl+C again to exit (idle Ctrl+C exits too). /yolo on|off applies immediately, including at approvals. /exit quits. Headless Ctrl+C cancels the run; a second press exits.";
|
|
10
10
|
export interface CommandState {
|
|
11
11
|
config: Config;
|
|
12
12
|
yolo: boolean;
|
package/dist/src/commands.js
CHANGED
|
@@ -54,7 +54,7 @@ export const HELP = `Commands:
|
|
|
54
54
|
Selection screens: Up/Down to browse, Enter or Space to select, Escape to return.
|
|
55
55
|
Ctrl+B toggles dashboard; Ctrl+G pages its graph; Ctrl+N cycles dashboard model statistics (display only).
|
|
56
56
|
Ctrl+T expands/collapses todos; Ctrl+O expands/collapses tool details; Ctrl+Y collapses/expands live thinking.
|
|
57
|
-
Shift+Arrow/Home/End selects prompt text; Ctrl+C copies and Ctrl+X cuts a selection. The wheel scrolls; Up/Down recall prompts.
|
|
57
|
+
Shift+Arrow/Home/End selects prompt text; Ctrl+C copies and Ctrl+X cuts a selection. The wheel scrolls; Up/Down recall prompts. Drag selects and copies transcript text; double-click copies a word.
|
|
58
58
|
Ctrl+C stops an interactive run; send direction to resume, or press Ctrl+C again to exit (idle Ctrl+C exits too). /yolo on|off applies immediately, including at approvals. /exit quits. Headless Ctrl+C cancels the run; a second press exits.`;
|
|
59
59
|
/**
|
|
60
60
|
* Collapse retained turns into a single summary entry so the next request sends one
|
|
@@ -19,7 +19,7 @@ export function finalAnswerGate(input) {
|
|
|
19
19
|
// Ids and statuses only: the plan's text is model-authored and is already in the todo snapshot.
|
|
20
20
|
const named = unfinished.slice(0, MAX_NAMED_TODOS).map(todo => `${todo.id} (${todo.status})`).join(', ');
|
|
21
21
|
const more = unfinished.length > MAX_NAMED_TODOS ? `, and ${unfinished.length - MAX_NAMED_TODOS} more` : '';
|
|
22
|
-
parts.push(`The plan still lists ${unfinished.length} unfinished ${unfinished.length === 1 ? 'item' : 'items'}: ${named}${more}. Do the work that is left, using tools. For work that is already done, send update_todos with the true statuses in the same batch as complete_agent. If an item cannot be finished, leave it open
|
|
22
|
+
parts.push(`The plan still lists ${unfinished.length} unfinished ${unfinished.length === 1 ? 'item' : 'items'}: ${named}${more}. Do the work that is left, using tools. For work that is already done, send update_todos with the true statuses in the same batch as complete_agent. If an item cannot be finished, or waits on something only the user can do or answer, leave it open, name it under "## Not done" in the summary, and say there what you need from the user.`);
|
|
23
23
|
}
|
|
24
24
|
return { gates, waived, message: `Completion not accepted yet. ${parts.join(' ')} Then call complete_agent again.` };
|
|
25
25
|
}
|
package/dist/src/completion.d.ts
CHANGED
|
@@ -7,7 +7,7 @@ export declare const FINAL_RESPONSE_GUIDANCE = "Only when this node is responsib
|
|
|
7
7
|
* transcript renders markdown (headings, lists, fenced code), so the structure it asks for is
|
|
8
8
|
* what the user actually sees; a single unbroken paragraph is what this guidance exists to prevent.
|
|
9
9
|
*/
|
|
10
|
-
export declare const RESPONSE_STRUCTURE_GUIDANCE = "Write user-facing text, including the final summary, as structured markdown rather than one unbroken paragraph. Lead with the outcome in one or two sentences
|
|
10
|
+
export declare const RESPONSE_STRUCTURE_GUIDANCE = "Write user-facing text, including the final summary, as structured markdown rather than one unbroken paragraph. Lead with the outcome in one or two sentences. Match the length to the work: a small change or a short answer is a few sentences or bullets with no headings; larger work uses short headings (## What changed, ## Not done) and bullet lists for parallel items. Do not list the checks again in the summary, because the tests array is shown beside it. Throughout, put every command, file content, and code sample in a fenced code block whose fences sit on their own lines; keep sentences short and omit filler. Inside a JSON string the line breaks are written as \\n escapes, and they are expected: never flatten the summary into one line to keep the JSON valid. In the tests array, write one short line per check: the check that ran, then its outcome.";
|
|
11
11
|
/**
|
|
12
12
|
* The summary is the user's final answer and the transcript renders it as markdown. Weak models
|
|
13
13
|
* read "valid JSON" as "no newlines" and return one unbroken line, so the field itself says the
|
package/dist/src/completion.js
CHANGED
|
@@ -7,7 +7,7 @@ export const FINAL_RESPONSE_GUIDANCE = "Only when this node is responsible for p
|
|
|
7
7
|
* transcript renders markdown (headings, lists, fenced code), so the structure it asks for is
|
|
8
8
|
* what the user actually sees; a single unbroken paragraph is what this guidance exists to prevent.
|
|
9
9
|
*/
|
|
10
|
-
export const RESPONSE_STRUCTURE_GUIDANCE = `Write user-facing text, including the final summary, as structured markdown rather than one unbroken paragraph. Lead with the outcome in one or two sentences
|
|
10
|
+
export const RESPONSE_STRUCTURE_GUIDANCE = `Write user-facing text, including the final summary, as structured markdown rather than one unbroken paragraph. Lead with the outcome in one or two sentences. Match the length to the work: a small change or a short answer is a few sentences or bullets with no headings; larger work uses short headings (## What changed, ## Not done) and bullet lists for parallel items. Do not list the checks again in the summary, because the tests array is shown beside it. Throughout, put every command, file content, and code sample in a fenced code block whose fences sit on their own lines; keep sentences short and omit filler. Inside a JSON string the line breaks are written as \\n escapes, and they are expected: never flatten the summary into one line to keep the JSON valid. In the tests array, write one short line per check: the check that ran, then its outcome.`;
|
|
11
11
|
/**
|
|
12
12
|
* The summary is the user's final answer and the transcript renders it as markdown. Weak models
|
|
13
13
|
* read "valid JSON" as "no newlines" and return one unbroken line, so the field itself says the
|
|
@@ -51,7 +51,7 @@ export function checkRunners(line) {
|
|
|
51
51
|
}
|
|
52
52
|
return runners;
|
|
53
53
|
}
|
|
54
|
-
const QA = new Set(['qa.
|
|
54
|
+
const QA = new Set(['qa.browser']);
|
|
55
55
|
const object = (v) => !!v && typeof v === 'object' && !Array.isArray(v);
|
|
56
56
|
export function commandLine(args) {
|
|
57
57
|
if (!object(args))
|
|
@@ -0,0 +1,105 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* A file's change as a reader checks it: hunks of a line diff with the line numbers of both sides.
|
|
3
|
+
*
|
|
4
|
+
* The transcript used to show an edit as the text the model asked to replace and the text it asked to
|
|
5
|
+
* write. That is the request, not the change: there are no line numbers, and a Write over an existing
|
|
6
|
+
* file shows every line as new. This module diffs the file as it was against the file as it is, the
|
|
7
|
+
* way `git diff` would, and returns the result as data a view can lay out — each line marked as kept,
|
|
8
|
+
* added or removed, numbered on the side it belongs to.
|
|
9
|
+
*
|
|
10
|
+
* The output is bounded twice. The diff itself is exact up to an edit distance the timeout allows;
|
|
11
|
+
* past that the changed middle is shown as removed then added, which is still a true diff, only a
|
|
12
|
+
* coarse one. The lines and characters returned are capped separately, and `hiddenLines` says how
|
|
13
|
+
* many diff lines the cap left out, so a view can say "N more lines" instead of implying the end.
|
|
14
|
+
*/
|
|
15
|
+
export interface FileDiffLine {
|
|
16
|
+
kind: 'context' | 'add' | 'del';
|
|
17
|
+
/** The line without its terminator (a trailing CR of a CRLF line is removed too). */
|
|
18
|
+
text: string;
|
|
19
|
+
/** The line's number in the file before the change; absent on an added line. */
|
|
20
|
+
oldLine?: number;
|
|
21
|
+
/** The line's number in the file after the change; absent on a removed line. */
|
|
22
|
+
newLine?: number;
|
|
23
|
+
/** This is the last line of its side and has no line terminator. */
|
|
24
|
+
noNewline?: true;
|
|
25
|
+
/** The text was cut at the per-line bound. */
|
|
26
|
+
clipped?: true;
|
|
27
|
+
}
|
|
28
|
+
/**
|
|
29
|
+
* One hunk in unified-diff terms: a count of 0 is an empty side, whose start is the line before it.
|
|
30
|
+
* The counts describe the whole hunk; when the bound cut it, `lines` stops short of them.
|
|
31
|
+
*/
|
|
32
|
+
export interface FileDiffHunk {
|
|
33
|
+
oldStart: number;
|
|
34
|
+
oldLines: number;
|
|
35
|
+
newStart: number;
|
|
36
|
+
newLines: number;
|
|
37
|
+
lines: FileDiffLine[];
|
|
38
|
+
}
|
|
39
|
+
export interface FileDiff {
|
|
40
|
+
hunks: FileDiffHunk[];
|
|
41
|
+
/** Lines the whole change added and removed, whether or not the bound returned them. */
|
|
42
|
+
linesAdded: number;
|
|
43
|
+
linesRemoved: number;
|
|
44
|
+
/** Diff lines (context included) left out by the bound; 0 when the hunks are complete. */
|
|
45
|
+
hiddenLines: number;
|
|
46
|
+
/** A side had more than `DIFF_LINE_LIMIT` lines: there are no hunks, and the counts are coarse. */
|
|
47
|
+
coarse?: true;
|
|
48
|
+
}
|
|
49
|
+
/** One side of a diff: the file's bytes or text, or `null` for a file that does not exist. */
|
|
50
|
+
export type DiffSide = Buffer | string | null;
|
|
51
|
+
export type FileDiffResult = {
|
|
52
|
+
kind: 'text';
|
|
53
|
+
diff: FileDiff;
|
|
54
|
+
}
|
|
55
|
+
/** Either side is not UTF-8 text (a NUL byte, or bytes that do not decode). */
|
|
56
|
+
| {
|
|
57
|
+
kind: 'binary';
|
|
58
|
+
}
|
|
59
|
+
/** A side is past the size the line diff runs on; the counts are a cheaper measure, when it could be taken. */
|
|
60
|
+
| {
|
|
61
|
+
kind: 'too-large';
|
|
62
|
+
linesAdded?: number;
|
|
63
|
+
linesRemoved?: number;
|
|
64
|
+
};
|
|
65
|
+
export interface FileDiffOptions {
|
|
66
|
+
/** Unchanged lines kept around each change. */
|
|
67
|
+
context?: number;
|
|
68
|
+
/** The most diff lines returned, context included. */
|
|
69
|
+
maxLines?: number;
|
|
70
|
+
/** The most characters of line text returned, summed over every returned line. */
|
|
71
|
+
maxChars?: number;
|
|
72
|
+
/** A line longer than this is clipped. */
|
|
73
|
+
lineChars?: number;
|
|
74
|
+
}
|
|
75
|
+
/** Past this size a side is not line-diffed: the write limit of the file tools. */
|
|
76
|
+
export declare const DIFF_BYTE_LIMIT: number;
|
|
77
|
+
/**
|
|
78
|
+
* Past this many lines on either side a text is not split into lines: a newline-dense file inside the byte
|
|
79
|
+
* limit would otherwise cost one string per line before any bound applies.
|
|
80
|
+
*/
|
|
81
|
+
export declare const DIFF_LINE_LIMIT = 200000;
|
|
82
|
+
/** The text a side holds, `null` for an absent file, or `undefined` for content that is not UTF-8 text. */
|
|
83
|
+
export declare function decodeText(side: DiffSide): string | null | undefined;
|
|
84
|
+
/** How many lines a text has, without splitting it: a final line without a terminator counts. */
|
|
85
|
+
export declare function lineCount(text: string): number;
|
|
86
|
+
/** The diff between two sides of one file. */
|
|
87
|
+
export declare function fileDiff(before: DiffSide, after: DiffSide, options?: FileDiffOptions): FileDiffResult;
|
|
88
|
+
/**
|
|
89
|
+
* The diff of two texts, as `fileDiff` returns it for text sides.
|
|
90
|
+
*
|
|
91
|
+
* Work and memory are bounded by the change, not the file: the shared head and tail are trimmed before the
|
|
92
|
+
* match, the result is kept as stretches rather than one record per line, and lines past the output bound
|
|
93
|
+
* are counted without being built. A side with more than `DIFF_LINE_LIMIT` lines is not split into lines at
|
|
94
|
+
* all: the counts come from a scan of the shared ends, and `coarse` says there are no hunks for that reason.
|
|
95
|
+
*/
|
|
96
|
+
export declare function textDiff(oldText: string, newText: string, options?: FileDiffOptions): FileDiff;
|
|
97
|
+
/**
|
|
98
|
+
* Added and removed counts without splitting either text: the shared head and tail (whole lines) are found
|
|
99
|
+
* by scanning characters from each end, and every line between them counts as changed. Memory is the two
|
|
100
|
+
* strings; time is one pass over them.
|
|
101
|
+
*/
|
|
102
|
+
export declare function coarseCounts(oldText: string, newText: string): {
|
|
103
|
+
linesAdded: number;
|
|
104
|
+
linesRemoved: number;
|
|
105
|
+
};
|