sumo-agents 0.6.1 → 0.7.1
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/AGENTS.md +6 -5
- package/CHANGELOG.md +72 -0
- package/README.md +47 -34
- package/guides/memory.md +21 -14
- package/package.json +2 -2
- package/prompts/dream.md +3 -16
- package/prompts/scribe.md +20 -15
- package/src/apply.mjs +364 -230
- package/src/card.mjs +16 -11
- package/src/catalog.mjs +3 -3
- package/src/chat.mjs +53 -15
- package/src/check.mjs +371 -0
- package/src/cli.mjs +230 -146
- package/src/db.mjs +147 -2
- package/src/dream.mjs +97 -189
- package/src/export.mjs +43 -18
- package/src/herdr.mjs +71 -36
- package/src/hooks.mjs +115 -22
- package/src/jobs.mjs +4 -2
- package/src/keeper.mjs +14 -51
- package/src/ledger.mjs +126 -0
- package/src/logs.mjs +10 -5
- package/src/loop.mjs +4 -4
- package/src/mcp.mjs +129 -51
- package/src/memeval.mjs +167 -0
- package/src/memory.mjs +261 -130
- package/src/page.mjs +3 -3
- package/src/paths.mjs +1 -0
- package/src/prime.mjs +82 -13
- package/src/rebuild.mjs +162 -0
- package/src/render.mjs +22 -0
- package/src/route.mjs +1 -1
- package/src/sandbox.mjs +5 -2
- package/src/scan.mjs +16 -4
- package/src/scribe.mjs +361 -113
- package/src/search.mjs +48 -0
- package/src/sessions.mjs +304 -53
- package/src/settings.mjs +868 -0
- package/src/setup.mjs +56 -64
- package/src/spool.mjs +308 -0
- package/src/text.mjs +118 -6
- package/src/tools.mjs +18 -7
- package/src/transcript.mjs +3 -47
- package/src/tty.mjs +48 -23
- package/src/ui.mjs +62 -25
- package/src/verify.mjs +23 -27
package/src/ui.mjs
CHANGED
|
@@ -12,11 +12,12 @@ import { INPUT_SHOWN } from './mcp.mjs';
|
|
|
12
12
|
import { paths } from './paths.mjs';
|
|
13
13
|
import { scratchDir } from './projects.mjs';
|
|
14
14
|
import { redact } from './redact.mjs';
|
|
15
|
+
import { keyName, settingsPage, SettingsView } from './settings.mjs';
|
|
15
16
|
import { elapsed } from './text.mjs';
|
|
16
17
|
import { cleanPaste, editor, keysOf, matchFiles, menuOf, paste, press, under } from './editor.mjs';
|
|
17
18
|
import { clipboardImage, copyText, droppedImages } from './images.mjs';
|
|
18
19
|
import { ASK_TOOL, BASH_TOOL, DELEGATE_TOOL, EDITOR_TOOL } from './tools.mjs';
|
|
19
|
-
import { colourEnabled, createRenderer, explained, flow, fold, glyphs, inline, linked, logoLines, markdownOf, messageAt, pathFrom, pickMessage, renderBlock, safeForTerminal, spinnerMessages, statOf, styles, sunset, tilde, toolView, transcript, untab, VERSION, withoutColourCodes, withSpan, wrap } from './tty.mjs';
|
|
20
|
+
import { colourEnabled, createRenderer, explained, flow, fold, glyphs, inline, linked, logoLines, markdownOf, messageAt, pathFrom, pickMessage, renderBlock, safeForTerminal, spinnerMessages, statOf, styles, sunset, tilde, toolView, transcript, untab, VERSION, visible, withoutColourCodes, withSpan, wrap } from './tty.mjs';
|
|
20
21
|
|
|
21
22
|
/**
|
|
22
23
|
* The chat on a real terminal. What is finished scrolls away above — what
|
|
@@ -631,8 +632,13 @@ function Question({ ask, columns }) {
|
|
|
631
632
|
);
|
|
632
633
|
}
|
|
633
634
|
|
|
634
|
-
/**
|
|
635
|
-
|
|
635
|
+
/**
|
|
636
|
+
* One line of a reply; the first of a block carries the mark. A line of code stands at the first column, no mark or
|
|
637
|
+
* indent before it, and whole: the terminal wraps one too long for the window, so what is selected and copied is the
|
|
638
|
+
* line as it was written. Ink cuts nothing a box wider than the window holds.
|
|
639
|
+
*/
|
|
640
|
+
function Reply({ text, first, code = false }) {
|
|
641
|
+
if (code) return h(Box, { marginTop: first ? 1 : 0, flexShrink: 0, width: Math.max(1, ...String(text).split('\n').map(visible)) }, h(Text, null, text || ' '));
|
|
636
642
|
const g = useMarks();
|
|
637
643
|
// The mark keeps its two columns: a line with a word wider than the window must not squeeze it, or every row after it shifts left.
|
|
638
644
|
return h(Box, { marginTop: first ? 1 : 0 }, h(Box, { flexShrink: 0 }, h(Text, null, first ? `${g.tool} ` : ' ')), h(Text, null, text || ' '));
|
|
@@ -990,8 +996,7 @@ const HELP_KEYS = [
|
|
|
990
996
|
['enter', 'send; while the model works, it reads it next'],
|
|
991
997
|
['\\ enter', 'a new line (shift-enter and ctrl-j too)'],
|
|
992
998
|
['esc', 'interrupt the turn, or close a menu'],
|
|
993
|
-
['↑ ↓', 'what you sent before'],
|
|
994
|
-
['ctrl-r', 'search what you sent'],
|
|
999
|
+
['↑ ↓ · ctrl-r', 'what you sent before · a search through it'],
|
|
995
1000
|
['ctrl-c', 'clear the box; twice on an empty one to leave'],
|
|
996
1001
|
['ctrl-o', 'the whole conversation in your pager'],
|
|
997
1002
|
['ctrl-g', 'write the message in your editor'],
|
|
@@ -1054,8 +1059,9 @@ function App({ session, events, messages, cwd, block, opening, logo, clipboard,
|
|
|
1054
1059
|
const st = useRef(null);
|
|
1055
1060
|
// `live` is what each running command has printed so far and since when; `heard`, when the model last said or did anything;
|
|
1056
1061
|
// `turn`, what the turn in hand has done; `talking`, that the model — not a `!` command — is what the screen is working on;
|
|
1057
|
-
// `pick`, the job under the box that Down has stepped onto; `open`, the one whose record is shown
|
|
1058
|
-
|
|
1062
|
+
// `pick`, the job under the box that Down has stepped onto; `open`, the one whose record is shown; `settings`, the
|
|
1063
|
+
// settings page while /config has it open.
|
|
1064
|
+
st.current ??= { log: [], items: [], unmeasured: [], used: 0, next: 0, epoch: 0, raw: '', ed: editor(readHistory()), images: [], pastes: [], keys: false, notice: null, queue: [], started: new Map(), known: new Map(), working: null, talking: false, tokens: 0, thought: '', thinking: null, showThinking: true, heard: 0, running: new Map(), live: new Map(), drawSoon: null, jobs: new Map(), pick: null, open: null, asks: [], why: null, reply: null, fresh: true, leaving: null, gone: false, title: null, turn: null, where: session.where(), spent: session.spent(), files: { cwd: null, at: 0, list: [] }, away: false, settings: null };
|
|
1059
1065
|
const state = st.current;
|
|
1060
1066
|
state.columns = columns;
|
|
1061
1067
|
state.rows = rows;
|
|
@@ -1081,7 +1087,11 @@ function App({ session, events, messages, cwd, block, opening, logo, clipboard,
|
|
|
1081
1087
|
* An item is drawn apart to be counted, and that sets off a draw of the screen that is waiting, if one is: so an item leaves
|
|
1082
1088
|
* `unmeasured` only once it is counted, and a draw it sets off keeps the room shut rather than one row too tall.
|
|
1083
1089
|
*/
|
|
1084
|
-
|
|
1090
|
+
// A line of code wider than the window is the rows the terminal wraps it to.
|
|
1091
|
+
const rowsOf = (item) =>
|
|
1092
|
+
renderToString(h(Marks.Provider, { value: s.g }, h(Item, { item, columns: state.columns, s })), { columns: state.columns })
|
|
1093
|
+
.split('\n')
|
|
1094
|
+
.reduce((rows, row) => rows + Math.max(1, Math.ceil(visible(row) / state.columns)), 0);
|
|
1085
1095
|
const measure = () => {
|
|
1086
1096
|
while (state.unmeasured.length > 0) {
|
|
1087
1097
|
if (state.used < state.rows) state.used += rowsOf(state.unmeasured[0]);
|
|
@@ -1122,15 +1132,15 @@ function App({ session, events, messages, cwd, block, opening, logo, clipboard,
|
|
|
1122
1132
|
}
|
|
1123
1133
|
redraw();
|
|
1124
1134
|
};
|
|
1125
|
-
/** A renderer for a reply: each line it finishes goes on the screen, the first of a block with the mark. */
|
|
1135
|
+
/** A renderer for a reply: each line it finishes goes on the screen, the first of a block with the mark; a line of code whole. */
|
|
1126
1136
|
const replyTo = (put) =>
|
|
1127
1137
|
createRenderer(
|
|
1128
|
-
(rendered) => {
|
|
1129
|
-
put({ kind: 'text', text: rendered.replace(/\n$/, ''), first: state.fresh });
|
|
1138
|
+
(rendered, { code }) => {
|
|
1139
|
+
put({ kind: 'text', text: rendered.replace(/\n$/, ''), first: state.fresh, code });
|
|
1130
1140
|
state.fresh = false;
|
|
1131
1141
|
},
|
|
1132
1142
|
s,
|
|
1133
|
-
{ width: state.columns - 3 },
|
|
1143
|
+
{ width: state.columns - 3, whole: true },
|
|
1134
1144
|
);
|
|
1135
1145
|
/** One entry of the log as the lines this window shows for it. */
|
|
1136
1146
|
function drawn(entry) {
|
|
@@ -1480,6 +1490,13 @@ function App({ session, events, messages, cwd, block, opening, logo, clipboard,
|
|
|
1480
1490
|
session.route(args);
|
|
1481
1491
|
return record({ kind: 'note', text: args ? `${routeLine(session)} from the next message` : `${routeLine(session)} · /model <model> <effort> changes it` });
|
|
1482
1492
|
}
|
|
1493
|
+
// The settings page, in the box's place until Esc: what it changes is saved as it changes, and said once when it closes.
|
|
1494
|
+
if (control === 'config') {
|
|
1495
|
+
record({ kind: 'user', text: line });
|
|
1496
|
+
const left = () => `${routeLine(session)} ${state.where.name}${state.where.branch ? ` (${state.where.branch})` : ''}`;
|
|
1497
|
+
state.settings = settingsPage({ live: { route: (to) => session.route(to), servers: () => session.mcpServers(), left }, cwd: state.where.cwd, onChange: redraw });
|
|
1498
|
+
return;
|
|
1499
|
+
}
|
|
1483
1500
|
if (control === 'memory' || control === 'mcp' || control === 'undo') {
|
|
1484
1501
|
record({ kind: 'user', text: line });
|
|
1485
1502
|
const text = control === 'undo' ? session.undo() : control === 'mcp' ? (await session.mcp()).join('\n') : await session.memoryPage();
|
|
@@ -1981,6 +1998,15 @@ function App({ session, events, messages, cwd, block, opening, logo, clipboard,
|
|
|
1981
1998
|
// The terminal's answer to Ink's keyboard-protocol query, when it comes after Ink stopped waiting for it.
|
|
1982
1999
|
if (/^\[\?\d+u$/.test(input)) return;
|
|
1983
2000
|
for (const [one, oneKey] of keysOf(input, key)) {
|
|
2001
|
+
// The settings page takes every key while it is open — Esc and Ctrl-C close it — unless a question waits: that comes first.
|
|
2002
|
+
if (state.settings && state.asks.length === 0) {
|
|
2003
|
+
if (state.settings.key(keyName(one, oneKey))) {
|
|
2004
|
+
const changed = state.settings.summary();
|
|
2005
|
+
state.settings = null;
|
|
2006
|
+
if (changed.length > 0) record({ kind: 'note', text: `settings: ${changed.join(' · ')}` });
|
|
2007
|
+
}
|
|
2008
|
+
continue;
|
|
2009
|
+
}
|
|
1984
2010
|
// Ctrl-R looking back through what was sent takes every key, Esc and Ctrl-C too: they put the draft back, and stop nothing.
|
|
1985
2011
|
if (state.ed.search) {
|
|
1986
2012
|
state.ed = press(state.ed, one, oneKey, session.commands, files).state;
|
|
@@ -2115,6 +2141,12 @@ function App({ session, events, messages, cwd, block, opening, logo, clipboard,
|
|
|
2115
2141
|
});
|
|
2116
2142
|
// A file dropped on the terminal arrives pasted as its path: an image's path becomes the image.
|
|
2117
2143
|
usePaste((text) => {
|
|
2144
|
+
// On the settings page a paste is a field's: a server's command or address, mostly.
|
|
2145
|
+
if (state.settings && state.asks.length === 0) {
|
|
2146
|
+
state.settings.paste(cleanPaste(text).text);
|
|
2147
|
+
redraw();
|
|
2148
|
+
return;
|
|
2149
|
+
}
|
|
2118
2150
|
// Saying why a call is refused, a paste is part of the reason — on one line — and never lands in the box behind it.
|
|
2119
2151
|
if (state.why && state.why.ask === state.asks[0]) {
|
|
2120
2152
|
state.why.text += cleanPaste(text).text.replace(/\s+/g, ' ');
|
|
@@ -2173,12 +2205,14 @@ function App({ session, events, messages, cwd, block, opening, logo, clipboard,
|
|
|
2173
2205
|
: 0;
|
|
2174
2206
|
const under = approving ? (state.open !== null ? 2 + Math.min(Math.max(1, recorded), openRows(rows)) + (recorded > openRows(rows) ? 1 : 0) : 0) + (said ? 0 : STARTER_ROWS - 1) + 2 + state.queue.length + rowsUnderBox().length : 0;
|
|
2175
2207
|
const asked = approving ? rows - 1 - over - under : null;
|
|
2208
|
+
// A question waiting comes before the settings page: it is drawn, and answered, while the page waits behind it.
|
|
2209
|
+
const paging = state.settings !== null && state.asks.length === 0;
|
|
2176
2210
|
return h(
|
|
2177
2211
|
Box,
|
|
2178
2212
|
{ flexDirection: 'column', minHeight: room },
|
|
2179
2213
|
h(Static, { key: state.epoch, items: state.items }, (item) => h(Item, { key: item.id, item, columns, s })),
|
|
2180
2214
|
...reads.map((item, i) => h(Item, { key: `reads-${i}`, item, columns, s })),
|
|
2181
|
-
tail ? h(Reply, { text: tail, first: state.fresh }) : null,
|
|
2215
|
+
tail ? h(Reply, { text: tail, first: state.fresh, code: state.reply.fenced }) : null,
|
|
2182
2216
|
// In one box of their own, so the lines coming and going never move what follows — the working line keeps its clock.
|
|
2183
2217
|
h(Box, { flexDirection: 'column' }, ...steps.map((step) => h(Tool, step))),
|
|
2184
2218
|
// The silence that is said is the model's: while a command, a job or a question is in hand, the wait is not on it.
|
|
@@ -2188,18 +2222,21 @@ function App({ session, events, messages, cwd, block, opening, logo, clipboard,
|
|
|
2188
2222
|
state.open !== null ? h(JobOpen, { id: state.open, job: state.jobs.get(state.open), rows }) : null,
|
|
2189
2223
|
// The logo and what to try are the empty room's: once something has been said, the room is the conversation's.
|
|
2190
2224
|
h(Room, { logo: said ? [] : logo, rows, from: state.used, starter: !said }),
|
|
2191
|
-
|
|
2192
|
-
|
|
2193
|
-
{
|
|
2194
|
-
|
|
2195
|
-
|
|
2196
|
-
|
|
2197
|
-
|
|
2198
|
-
|
|
2199
|
-
|
|
2200
|
-
|
|
2201
|
-
|
|
2202
|
-
|
|
2225
|
+
// The settings page stands where the box and the rows under it were, one row short of the window so it never fills it.
|
|
2226
|
+
paging
|
|
2227
|
+
? h(Box, { marginTop: 1 }, h(SettingsView, { page: state.settings, columns, rows: Math.max(8, rows - 2), plain }))
|
|
2228
|
+
: h(
|
|
2229
|
+
Box,
|
|
2230
|
+
{ flexDirection: 'column', marginTop: 1 },
|
|
2231
|
+
// A message for the model is read with its next request — which, while it waits on a delegated job, is when that job reports.
|
|
2232
|
+
...state.queue.map(({ line, steer }, i) => h(Text, { key: i, dimColor: true, wrap: 'truncate' }, ` ${steer ? reading : 'queued'}: ${line.split('\n')[0]}${line.includes('\n') ? ' …' : ''}`)),
|
|
2233
|
+
// While a call waits on the user's word every key is the answer's: no box stands there to type into.
|
|
2234
|
+
state.asks.length > 0 && !state.asks[0].options ? null : h(Input, { state: state.ed, width: columns, rows, placeholder: said ? '' : 'Ask anything' }),
|
|
2235
|
+
// The jobs at work in the background, under the box, and the chat over them: they go on whether or not there is a turn.
|
|
2236
|
+
...rowsUnderBox().map((id) => (id === MAIN ? h(MainAtWork, { key: MAIN, working: Boolean(state.working), picked: state.pick === MAIN, shown: state.open === null }) : h(JobAtWork, { key: `j${id}`, id, job: state.jobs.get(id), alone: true, picked: id === state.pick, open: id === state.open }))),
|
|
2237
|
+
// While a call waits on the user's word there is no box, and so nothing of the box's under it: the status row alone.
|
|
2238
|
+
menu.length > 0 && !approving ? h(Menu, { menu, pick: state.ed.pick, columns }) : state.ed.search && !approving ? h(Search, { search: state.ed.search }) : state.keys && !approving ? h(Keys, { columns }) : h(Status, { session, leaving: Boolean(state.leaving), notice: state.notice?.text, jobs: [...state.jobs.keys()], aside: session.running(), pick: state.pick, open: state.open, where: state.where, spent: state.spent, overBudget: state.overBudget, waiting: state.queue.length > 0, columns }),
|
|
2239
|
+
),
|
|
2203
2240
|
);
|
|
2204
2241
|
}
|
|
2205
2242
|
|
package/src/verify.mjs
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { execFileSync, spawnSync } from 'node:child_process';
|
|
2
2
|
import { createHash } from 'node:crypto';
|
|
3
|
-
import { closeSync, existsSync, fstatSync, openSync, readFileSync, readSync, renameSync,
|
|
3
|
+
import { closeSync, existsSync, fstatSync, ftruncateSync, openSync, readFileSync, readSync, renameSync, writeFileSync, writeSync } from 'node:fs';
|
|
4
4
|
import { join } from 'node:path';
|
|
5
5
|
import { isSecretPath } from './guard.mjs';
|
|
6
6
|
import { UsageError } from './memory.mjs';
|
|
7
7
|
import { secretShape } from './redact.mjs';
|
|
8
|
-
import { verifyCommands } from './scan.mjs';
|
|
8
|
+
import { readPlainFile, verifyCommands } from './scan.mjs';
|
|
9
9
|
import { killGroup } from './tools.mjs';
|
|
10
10
|
|
|
11
11
|
/**
|
|
@@ -129,19 +129,14 @@ function timeoutMs() {
|
|
|
129
129
|
}
|
|
130
130
|
|
|
131
131
|
/** The last lines of a check's log, read from its end rather than whole. */
|
|
132
|
-
function tailOf(
|
|
133
|
-
const
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
if (start > 0 && lines.length > 1) lines.shift();
|
|
141
|
-
return lines.slice(-OUTPUT_TAIL_LINES).join('\n');
|
|
142
|
-
} finally {
|
|
143
|
-
closeSync(fd);
|
|
144
|
-
}
|
|
132
|
+
function tailOf(fd) {
|
|
133
|
+
const size = fstatSync(fd).size;
|
|
134
|
+
const start = Math.max(0, size - OUTPUT_TAIL_BYTES);
|
|
135
|
+
const bytes = Buffer.alloc(size - start);
|
|
136
|
+
const lines = bytes.subarray(0, readSync(fd, bytes, 0, bytes.length, start)).toString('utf8').trimEnd().split('\n');
|
|
137
|
+
// Read from inside a line, the first piece is half of one.
|
|
138
|
+
if (start > 0 && lines.length > 1) lines.shift();
|
|
139
|
+
return lines.slice(-OUTPUT_TAIL_LINES).join('\n');
|
|
145
140
|
}
|
|
146
141
|
|
|
147
142
|
/** The sandbox a job's process hands down for its checks: the wrap's words, or null — none given, or one that is not a list of words. */
|
|
@@ -167,25 +162,26 @@ function runChecks(root, commands, dir, prefix) {
|
|
|
167
162
|
named.set(name, nth);
|
|
168
163
|
const file = join(dir, `${prefix}-${name}${nth > 1 ? `-${nth}` : ''}.txt`);
|
|
169
164
|
// Printed into the file, not a pipe: a pipe stays open while anything the check left running holds it, and would be waited on to the time limit.
|
|
170
|
-
|
|
171
|
-
|
|
165
|
+
// Its end is read and written back through the same descriptor, so the file kept is the file the check printed into.
|
|
166
|
+
const into = openSync(file, 'w+', 0o600);
|
|
172
167
|
try {
|
|
173
168
|
// A job's checks run the project's code, perhaps tests the model wrote: in the sandbox its shell is in, handed down by the
|
|
174
169
|
// job's own process (SUMO_CHECKS_WRAP), while this process — which records the verdict in sumo's memory — stays outside it.
|
|
175
170
|
const wrap = checksWrapOf(process.env);
|
|
176
171
|
const script = `${watcher}${command}`;
|
|
177
|
-
run = wrap
|
|
172
|
+
const run = wrap
|
|
178
173
|
? spawnSync(wrap[0], [...wrap.slice(1), '/bin/sh', '-c', script], { cwd: root, detached: true, stdio: ['ignore', into, into], timeout: timeoutMs(), killSignal: 'SIGKILL' })
|
|
179
174
|
: spawnSync(script, { cwd: root, shell: true, detached: true, stdio: ['ignore', into, into], timeout: timeoutMs(), killSignal: 'SIGKILL' });
|
|
175
|
+
const timedOut = run.error?.code === 'ETIMEDOUT';
|
|
176
|
+
// Whatever it left running goes with it, so nothing writes to the file once it is read.
|
|
177
|
+
killGroup(run.pid);
|
|
178
|
+
const output = tailOf(into);
|
|
179
|
+
ftruncateSync(into);
|
|
180
|
+
writeSync(into, `$ ${command}\n${output}\n${timedOut ? '\n(stopped: it ran past the time limit)\n' : ''}`, 0);
|
|
181
|
+
return { name, command, ok: run.status === 0, status: run.status, timedOut, ms: Date.now() - started, file };
|
|
180
182
|
} finally {
|
|
181
183
|
closeSync(into);
|
|
182
184
|
}
|
|
183
|
-
const timedOut = run.error?.code === 'ETIMEDOUT';
|
|
184
|
-
// Whatever it left running goes with it, so nothing writes to the file once it is read.
|
|
185
|
-
killGroup(run.pid);
|
|
186
|
-
const output = tailOf(file);
|
|
187
|
-
writeFileSync(file, `$ ${command}\n${output}\n${timedOut ? '\n(stopped: it ran past the time limit)\n' : ''}`, { mode: 0o600 });
|
|
188
|
-
return { name, command, ok: run.status === 0, status: run.status, timedOut, ms: Date.now() - started, file };
|
|
189
185
|
});
|
|
190
186
|
}
|
|
191
187
|
|
|
@@ -253,9 +249,9 @@ function scanAdded(root, snap, changes) {
|
|
|
253
249
|
// A new file is read whole, and so is one that git never tracked: there is no diff to take its added lines from.
|
|
254
250
|
for (const created of [...changes.created, ...changes.tracked.filter((c) => c.untracked && c.status === 'M').map((c) => c.path)]) {
|
|
255
251
|
try {
|
|
256
|
-
const
|
|
257
|
-
if (
|
|
258
|
-
|
|
252
|
+
const text = readPlainFile(join(root, created), MAX_SCANNED_FILE_BYTES);
|
|
253
|
+
if (text === null) continue;
|
|
254
|
+
text.split('\n').forEach((l, i) => look(`${created}:${i + 1}`, l));
|
|
259
255
|
} catch {
|
|
260
256
|
// unreadable or binary: nothing to say about it
|
|
261
257
|
}
|