proofed-cli 0.1.2 → 0.2.0

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.
Files changed (65) hide show
  1. package/README.md +176 -122
  2. package/dist/action/requests.js +130 -0
  3. package/dist/{server.js → action/server.js} +17 -3
  4. package/dist/changes.js +7 -1
  5. package/dist/{args.js → check/args.js} +31 -3
  6. package/dist/check/cache.js +89 -0
  7. package/dist/{check.js → check/check.js} +91 -42
  8. package/dist/{doctor.js → check/doctor.js} +63 -27
  9. package/dist/check/help.js +139 -0
  10. package/dist/{list.js → check/list.js} +27 -15
  11. package/dist/{pipeline.js → check/pipeline.js} +106 -68
  12. package/dist/{render.js → check/render.js} +22 -15
  13. package/dist/check/run.js +277 -0
  14. package/dist/check/targetfilter.js +10 -0
  15. package/dist/check/textcheck.js +162 -0
  16. package/dist/env.js +6 -0
  17. package/dist/fix/agent.js +21 -0
  18. package/dist/fix/claude.js +30 -0
  19. package/dist/fix/codex.js +71 -0
  20. package/dist/fix/fixsetup.js +76 -0
  21. package/dist/fix/fixtarget.js +48 -0
  22. package/dist/fix/models.js +67 -0
  23. package/dist/github.js +62 -14
  24. package/dist/integrations/claude-stop.js +104 -0
  25. package/dist/integrations/cli.js +63 -0
  26. package/dist/integrations/mcp.js +130 -0
  27. package/dist/kane/creditmeter.js +104 -0
  28. package/dist/kane/kane.js +131 -0
  29. package/dist/kane/kaneauth.js +84 -0
  30. package/dist/kane/kaneversion.js +13 -0
  31. package/dist/paths.js +32 -0
  32. package/dist/process.js +65 -0
  33. package/dist/proofed.js +34 -16
  34. package/dist/{live.js → report/live.js} +1 -1
  35. package/dist/{livefile.js → report/livefile.js} +1 -1
  36. package/dist/{report.js → report/report.js} +105 -125
  37. package/dist/report/reportdata.js +120 -0
  38. package/dist/{result.js → report/result.js} +12 -7
  39. package/dist/{runfile.js → report/runfile.js} +2 -2
  40. package/dist/report/runresult.js +5 -0
  41. package/dist/scenarios.js +41 -19
  42. package/dist/secrets.js +74 -0
  43. package/dist/{cdp.js → targets/cdp.js} +20 -6
  44. package/dist/targets/chrome.js +98 -0
  45. package/dist/{clip.js → targets/clip.js} +21 -11
  46. package/dist/{precheck.js → targets/precheck.js} +53 -20
  47. package/dist/targets/preparetarget.js +350 -0
  48. package/dist/{recorder.js → targets/recorder.js} +154 -19
  49. package/dist/{serve.js → targets/serve.js} +9 -13
  50. package/dist/{target.js → targets/target.js} +42 -7
  51. package/dist/targets/targetchecks.js +139 -0
  52. package/dist/timing.js +25 -0
  53. package/dist/types.js +1 -0
  54. package/dist/which.js +26 -13
  55. package/docs/cli.md +370 -0
  56. package/package.json +10 -5
  57. package/dist/cache.js +0 -48
  58. package/dist/chrome.js +0 -77
  59. package/dist/help.js +0 -131
  60. package/dist/kane.js +0 -75
  61. package/dist/kaneauth.js +0 -25
  62. package/dist/models.js +0 -44
  63. package/dist/requests.js +0 -58
  64. package/dist/run.js +0 -166
  65. /package/dist/{deps.js → targets/deps.js} +0 -0
package/dist/kane.js DELETED
@@ -1,75 +0,0 @@
1
- import { spawn } from "node:child_process";
2
- import { createInterface } from "node:readline";
3
- import { adopt } from "./children.js";
4
- const isStep = (e) => "step" in e && "status" in e;
5
- const isRunEnd = (e) => "type" in e && e.type === "run_end";
6
- export function runKane(o) {
7
- const args = [
8
- "run",
9
- o.objective,
10
- "--agent",
11
- "--url",
12
- o.url,
13
- "--cdp-endpoint",
14
- o.cdpEndpoint,
15
- "--timeout",
16
- String(o.timeoutSeconds ?? 300),
17
- ...(o.username && o.accessKey ? ["--username", o.username, "--access-key", o.accessKey] : []),
18
- ];
19
- // Own process group: Kane spawns runner and Playwright children that outlive a plain kill.
20
- const proc = spawn(process.env.KANE_CLI ?? "kane-cli", args, { stdio: ["ignore", "pipe", "pipe"], detached: true });
21
- const killGroup = (signal) => {
22
- try {
23
- if (proc.pid)
24
- process.kill(-proc.pid, signal);
25
- }
26
- catch {
27
- // Already gone.
28
- }
29
- };
30
- const release = adopt({ kill: killGroup, exited: new Promise((r) => proc.once("exit", r)) });
31
- const steps = [];
32
- let end;
33
- let stderr = "";
34
- proc.stderr.on("data", (d) => (stderr += d));
35
- const lines = createInterface({ input: proc.stdout });
36
- const drained = new Promise((r) => lines.once("close", r));
37
- lines.on("line", (line) => {
38
- let event;
39
- try {
40
- event = JSON.parse(line);
41
- }
42
- catch {
43
- return; // Kane occasionally prints a non-JSON notice; it carries nothing we use.
44
- }
45
- if (typeof event !== "object" || event === null)
46
- return;
47
- if (isStep(event)) {
48
- steps.push(event);
49
- o.onStep?.(event);
50
- }
51
- else if (isRunEnd(event)) {
52
- end = event;
53
- o.onEnd?.(event);
54
- }
55
- });
56
- // Kane's own --timeout counts only active time; when its backend stalls a run can hang for
57
- // a quarter of an hour, so we also enforce a wall-clock limit.
58
- let timedOut = false;
59
- let hardKill;
60
- const watchdog = setTimeout(() => {
61
- timedOut = true;
62
- killGroup("SIGTERM");
63
- hardKill = setTimeout(() => killGroup("SIGKILL"), 5000);
64
- }, (o.wallTimeoutSeconds ?? 360) * 1000);
65
- // "exit", not "close": an orphaned grandchild can hold stdout open long after Kane is gone.
66
- return new Promise((resolve) => proc.on("exit", async (exitCode) => {
67
- clearTimeout(watchdog);
68
- clearTimeout(hardKill);
69
- // Let the last lines (run_end) through, but don't wait on a stream an orphan keeps open.
70
- await Promise.race([drained, new Promise((r) => setTimeout(r, 2000))]);
71
- killGroup("SIGKILL");
72
- release();
73
- resolve({ steps, end, exitCode, stderr, timedOut });
74
- }));
75
- }
package/dist/kaneauth.js DELETED
@@ -1,25 +0,0 @@
1
- // Whether Kane can start a run: signed in with `kane-cli login`, or given LT_USERNAME and
2
- // LT_ACCESS_KEY, which Proofed passes to every run. `proofed check` asks before it builds anything:
3
- // without a login every run ends at once, and a retry ends the same way.
4
- import { execFile } from "node:child_process";
5
- export const LOGIN_FIX = "kane-cli login (or export LT_USERNAME and LT_ACCESS_KEY from TestMu: Settings → Keys)";
6
- // What `kane-cli run` prints on stderr when it can't start for want of a login (kane-cli 0.10):
7
- // "Not authenticated. Run: kane-cli login --oauth, or kane-cli login --username <user> --access-key <key>"
8
- export const NOT_SIGNED_IN = /\bnot authenticated\b|\bnot (?:logged|signed) in\b|\btoken (?:missing|expired|invalid)\b/i;
9
- export const kaneCredentials = (env) => env.LT_USERNAME?.trim() && env.LT_ACCESS_KEY?.trim() ? ["--username", env.LT_USERNAME.trim(), "--access-key", env.LT_ACCESS_KEY.trim()] : [];
10
- // `kane-cli whoami` is free and local: it exits 0 when signed in and 1 when not. One that can't be
11
- // started or doesn't answer says nothing either way, and the check goes on.
12
- export function kaneLogin(bin, env, timeout = 20_000) {
13
- if (kaneCredentials(env).length)
14
- return Promise.resolve({ state: "keys", detail: "LT_USERNAME and LT_ACCESS_KEY are set; Kane uses them" });
15
- return new Promise((resolve) => {
16
- execFile(bin, ["whoami"], { env, timeout }, (error) => {
17
- if (!error)
18
- return resolve({ state: "signed_in", detail: "signed in" });
19
- const e = error;
20
- if (e.killed || typeof e.code !== "number")
21
- return resolve({ state: "unknown", detail: `kane-cli whoami didn't answer${e.killed ? ` within ${timeout / 1000} s` : `: ${e.message}`}` });
22
- resolve({ state: "not_signed_in", detail: "not signed in" });
23
- });
24
- });
25
- }
package/dist/models.js DELETED
@@ -1,44 +0,0 @@
1
- // The models "Fix with Claude" can run, by short name. Also imported by the dashboard (site/),
2
- // so this file has no imports and nothing Node-specific.
3
- export const MODELS = [
4
- { name: "haiku", id: "claude-haiku-5-5" },
5
- { name: "sonnet", id: "claude-sonnet-5-5" },
6
- { name: "opus", id: "claude-opus-5-5" },
7
- { name: "fable", id: "claude-fable-5-2" },
8
- ];
9
- export const EFFORTS = ["low", "medium", "high", "xhigh", "max"];
10
- // What the fixer uses when the repo sets nothing.
11
- export const DEFAULT_FIXER = { model: "claude-haiku-5-5", effort: "xhigh" };
12
- export const isEffort = (word) => EFFORTS.includes(word);
13
- // A full model ID as Claude Code takes it, e.g. claude-opus-5-1. Whether it exists is up to Anthropic.
14
- export const isModelId = (text) => /^claude-[a-z0-9][a-z0-9.-]{2,60}$/.test(text);
15
- // "claude-opus-5-5" → "Opus 5.5". An ID that doesn't follow that pattern is shown as is.
16
- export function modelLabel(id) {
17
- const match = /^claude-([a-z]+)-(\d+)-(\d+)(?:-\d{8})?$/.exec(id);
18
- if (!match)
19
- return id;
20
- const [, family = "", major, minor] = match;
21
- return `${family[0].toUpperCase()}${family.slice(1)} ${major}.${minor}`;
22
- }
23
- // Who fixed it, for the PR comment: "Claude Opus 5.5, high effort". An unknown ID is shown as written.
24
- export function describeFixer({ model, effort }) {
25
- const label = modelLabel(model);
26
- return `${label === model ? `\`${model}\`` : `Claude ${label}`}, ${effort} effort`;
27
- }
28
- // "opus" → the latest Opus; "opus 5.1" → claude-opus-5-1; "claude-opus-5-1" → as written.
29
- export function parseModel(words) {
30
- const [first = "", version, ...rest] = words.map((w) => w.toLowerCase());
31
- const family = MODELS.find((m) => m.name === first);
32
- if (family && version === undefined)
33
- return { model: family.id };
34
- if (family && rest.length === 0 && version && /^\d+([.-]\d+)?$/.test(version)) {
35
- return { model: `claude-${family.name}-${version.replace(".", "-")}` };
36
- }
37
- if (words.length === 1 && isModelId(first))
38
- return { model: first };
39
- return {
40
- error: `Proofed doesn't know the model \`${words.join(" ")}\`. Use ${MODELS.map((m) => `\`${m.name}\``).join(", ")} ` +
41
- "for the latest version, add a version (`opus 5.5`), or give a full model ID (`claude-opus-5-5`). " +
42
- `Effort goes last and is optional: ${EFFORTS.map((e) => `\`${e}\``).join(", ")}.`,
43
- };
44
- }
package/dist/requests.js DELETED
@@ -1,58 +0,0 @@
1
- import { isEffort, parseModel } from "./models.js";
2
- // "/proofed" in a PR comment re-runs the check, which also gives a PR opened before Proofed was
3
- // added its first run. "/proofed <what to check>" has Kane check just that. A slash command,
4
- // not "@proofed": that name belongs to someone else on GitHub and would mention them.
5
- const COMMAND = /(?:^|\s)\/proofed\b([\s\S]*)/i;
6
- export function parseCommand(comment) {
7
- const match = COMMAND.exec(comment);
8
- return match ? match[1].trim() : undefined;
9
- }
10
- // "/proofed fix [model] [effort]" has Claude fix the broken scenarios, with that model this once.
11
- // Only the first line counts, so a note under the command doesn't become part of the model name.
12
- export function parseFix(command) {
13
- const words = (command.split("\n")[0] ?? "").trim().split(/\s+/).filter(Boolean);
14
- if (words[0]?.toLowerCase() !== "fix")
15
- return undefined;
16
- const rest = words.slice(1);
17
- const last = rest.at(-1)?.toLowerCase() ?? "";
18
- const effort = isEffort(last) ? last : undefined;
19
- const modelWords = effort ? rest.slice(0, -1) : rest;
20
- if (modelWords.length === 0)
21
- return { effort };
22
- const choice = parseModel(modelWords);
23
- return "error" in choice ? choice : { model: choice.model, effort };
24
- }
25
- // What the PR description asks to have checked. HTML comments (PR templates) are dropped, and a
26
- // long description is a changelog rather than a request, so it's left alone.
27
- export function descriptionRequest(body) {
28
- const text = (body ?? "").replace(/<!--[\s\S]*?-->/g, "").trim();
29
- return text && text.length <= 1500 ? text : undefined;
30
- }
31
- // Any short description becomes a request, and many ask for nothing ("Will be closed, not merged.").
32
- // Left to itself Kane then improvises: it signs in, ends up on GitHub's OAuth page, and the report
33
- // says the test may be wrong. A /proofed comment is always a request, so it gets no such way out.
34
- const MAY_ASK_NOTHING = "If the text above doesn't describe something a user can see or do in this app, stop right away " +
35
- "without clicking anything: there is nothing to check. Never sign in, and never leave the app's own pages to get there.";
36
- // The description asked for nothing Kane could check: not a result of the PR, only a line under the report.
37
- export const nothingAsked = (r) => r.scenario.id === "asked-in-description" && r.outcome === "unsure";
38
- const NAMES = {
39
- description: "What the PR description asks",
40
- comment: "What the /proofed comment asks",
41
- terminal: "What you asked to check",
42
- };
43
- // "terminal": `proofed check "<text>"`, run by a person or a coding agent on their own machine.
44
- export function askedScenario(where, text) {
45
- return {
46
- id: where === "terminal" ? "asked" : `asked-in-${where}`,
47
- file: "",
48
- name: NAMES[where],
49
- paths: [],
50
- url: "/",
51
- objective: (where === "terminal"
52
- ? `The developer of this app asked for this to be checked:\n\n${text}\n\n`
53
- : `The author of this pull request asked for this to be checked:\n\n${text}\n\n`) +
54
- "Open the app and check exactly that in the browser, the way a user would. It passes only if what they " +
55
- "asked about actually works; the page loading is not enough." +
56
- (where === "description" ? ` ${MAY_ASK_NOTHING}` : ""),
57
- };
58
- }
package/dist/run.js DELETED
@@ -1,166 +0,0 @@
1
- import { mkdirSync, rmSync, writeFileSync } from "node:fs";
2
- import { join } from "node:path";
3
- import { stopping } from "./children.js";
4
- import { launchChrome } from "./chrome.js";
5
- import { makeClip } from "./clip.js";
6
- import { live } from "./live.js";
7
- import { NOT_SIGNED_IN } from "./kaneauth.js";
8
- import { log as logLine } from "./log.js";
9
- import { runKane } from "./kane.js";
10
- import { NOTHING_CHECKED } from "./runfile.js";
11
- import { startRecorder } from "./recorder.js";
12
- // Failures of the browser plumbing rather than of the app: the run is retried, never reported as a bug.
13
- const INFRA = /Screenshot failed|TimeoutError|TargetClosedError|has been closed|ECONNREFUSED|ECONNRESET|socket hang up|Project and folder must be configured/i;
14
- // Words of what the run checked last: the quoted expectation of a failed check, or the values
15
- // Kane read off the page when it passed. The clip ends zoomed on the element that holds them.
16
- const STOP = new Set(["that", "this", "with", "from", "have", "after", "then", "should", "shows", "page", "into", "when", "each", "there", "them", "than", "what", "which", "only", "also", "visible", "displayed"]);
17
- export function focusWords(end) {
18
- const text = end.status === "passed"
19
- ? Object.values(end.final_state ?? {})
20
- .filter((v) => typeof v === "string" && !v.startsWith("http"))
21
- .join(" ")
22
- : (/["“«]([^"”»]+)["”»]/.exec(end.reason ?? "")?.[1] ?? "");
23
- const words = (text.toLowerCase().replace(/[‘’]/g, "'").match(/[\p{L}\p{Sc}\d][\p{L}\p{N}\p{Sc}.,%'-]*/gu) ?? [])
24
- .map((w) => w.replace(/[.,]+$/, ""))
25
- .filter((w) => (/\d/.test(w) ? w.length >= 2 : w.length >= 4) && !STOP.has(w));
26
- return [...new Set(words)];
27
- }
28
- export { NOTHING_CHECKED };
29
- // Each step's remark starts with its kind ("navigate: …", "wait: …", "analyze: …", "assert: …").
30
- // Only an assert compares the page with what the scenario expects.
31
- const checked = (steps) => steps.some((s) => s.status === "done" && /^assert:/i.test(s.remark));
32
- // Kane read the page and the scenario's own check came out false. When the app is wrong all over
33
- // (a changed threshold shown in its banner too), Kane sides with the app and blames the test; the
34
- // scenario is what the app was meant to do, so that is a failure. runScenario runs it a second time.
35
- const refuted = (steps) => steps.some((s) => s.status === "failed" && /^assert:/i.test(s.remark));
36
- export function outcomeOf(end, steps) {
37
- if (!end || INFRA.test(end.reason ?? ""))
38
- return "error";
39
- // A vague objective lets Kane open the page, wait, and call that a pass.
40
- if (end.status === "passed")
41
- return checked(steps) ? "passed" : "unsure";
42
- return end.verdict?.family === "automation_bug" && !refuted(steps) ? "unsure" : "failed";
43
- }
44
- // An unsure run where Kane said "passed": nothing was checked, as opposed to Kane doubting the test.
45
- export const unchecked = (r) => r.outcome === "unsure" && r.end?.status === "passed";
46
- export const scenarioDoubted = (r) => r.outcome === "failed" && r.end?.verdict?.family === "automation_bug";
47
- // All the credits a scenario took, the runs before the last one included.
48
- export const creditsOf = (r) => (r.end?.credits_consumed ?? 0) + (r.earlierCredits ?? 0);
49
- const RECHECK = "the check failed, but Kane blames the scenario; running it once more to be sure";
50
- // Kane is good at reaching a goal, so on its own it routes around a broken button (a key press, another
51
- // link) and passes. A user who clicks the button and gets the wrong screen has found a bug.
52
- const NO_WORKAROUNDS = "Do each step once, the way it is described. If a click or a key press does something other than what " +
53
- "the step expects, the check fails: don't retry it, and don't reach the goal another way (other " +
54
- "buttons, links, keyboard shortcuts, typing the URL). Waiting for a slow page to load is fine.";
55
- export function kaneObjective(objective) {
56
- return `${objective}\n\n${NO_WORKAROUNDS}`;
57
- }
58
- export async function runScenario(scenario, o) {
59
- let earlier = 0;
60
- const again = (last, why) => {
61
- earlier += last.end?.credits_consumed ?? 0;
62
- logLine(`[${scenario.id}] ${why}`);
63
- o.onEvent?.({ type: "retry", id: scenario.id, error: why });
64
- return runOnce(scenario, o);
65
- };
66
- const settle = async (result) => {
67
- for (let i = 2; i <= (o.attempts ?? 2) && result.outcome === "error" && !result.notSignedIn && !stopping(); i++) {
68
- result = await again(result, result.error ?? "infra error");
69
- }
70
- return result;
71
- };
72
- let result = await settle(await runOnce(scenario, o));
73
- // Kane gives the same verdict for a wrong value all over the app and for a page it misread (a
74
- // heading that is there, reported as not visible). A wrong value is wrong again on a second
75
- // run; a misreading rarely is. So the second run decides, whatever it comes to.
76
- if (scenarioDoubted(result) && !stopping()) {
77
- result = await settle(await again(result, RECHECK));
78
- }
79
- return earlier ? { ...result, earlierCredits: earlier } : result;
80
- }
81
- async function runOnce(scenario, o) {
82
- const log = (line) => logLine(`[${scenario.id}] ${line}`);
83
- const dir = join(o.outDir, scenario.id);
84
- rmSync(dir, { recursive: true, force: true });
85
- mkdirSync(dir, { recursive: true });
86
- let chrome;
87
- try {
88
- chrome = await launchChrome({ headless: o.headless ?? true });
89
- }
90
- catch (e) {
91
- // Counts as a browser hiccup: retried, and reported as "couldn't finish", never as a bug.
92
- return { scenario, outcome: "error", steps: [], end: undefined, clip: undefined, error: String(e) };
93
- }
94
- let stills;
95
- try {
96
- const recorder = await startRecorder(chrome.endpoint, join(dir, "frames"));
97
- live.scenario(scenario.id, { status: "running", steps: [], startedAt: Date.now() });
98
- // A still for each click or typing with the cursor on it: the frame from just before it, or a
99
- // new screenshot when there is none to use. Between actions, one every couple of seconds.
100
- const still = (action) => {
101
- if (live.on())
102
- void recorder.snapshot().then((s) => s && live.frame(scenario.id, s, action));
103
- };
104
- recorder.onAction = (before) => {
105
- if (before)
106
- live.frame(scenario.id, before, true);
107
- else
108
- still(true);
109
- };
110
- stills = setInterval(() => still(false), 2000);
111
- let focus = Promise.resolve(undefined);
112
- const kane = await runKane({
113
- objective: kaneObjective(scenario.objective),
114
- url: new URL(scenario.url, o.baseUrl).href,
115
- cdpEndpoint: chrome.endpoint,
116
- username: o.username,
117
- accessKey: o.accessKey,
118
- onStep: (s) => {
119
- live.step(scenario.id, s);
120
- o.onEvent?.({ type: "step", id: scenario.id, step: s });
121
- if (s.status !== "running" && s.remark)
122
- log(`${s.status === "failed" ? "✗" : "·"} ${s.remark}`);
123
- },
124
- onEnd: (end) => (focus = recorder.locate(focusWords(end))),
125
- });
126
- clearInterval(stills);
127
- const focusRect = await focus;
128
- // Drop the blank about:blank frames from before Kane's first navigation.
129
- const start = Date.parse(kane.steps[0]?.ts ?? "") / 1000 || 0;
130
- const recorded = recorder.stop();
131
- const frames = recorded.frames.filter((f) => f.time >= start);
132
- const outcome = outcomeOf(kane.end, kane.steps);
133
- // Kane left without a verdict: all it said goes to the log, where the cause can be read later.
134
- if (!kane.end)
135
- log(`Kane exited with code ${kane.exitCode} and no verdict${kane.timedOut ? " (cut off by Proofed's time limit)" : ""}. Its stderr:\n${kane.stderr.trim() || "(empty)"}`);
136
- // Kane's reason for such a pass is "Objective completed"; the report, the run file and the fixer show ours.
137
- const end = kane.end && outcome === "unsure" && kane.end.status === "passed" ? { ...kane.end, reason: NOTHING_CHECKED } : kane.end;
138
- log(`→ ${outcome}${end?.reason ? `: ${end.reason}` : ""} (${frames.length} frames)`);
139
- const error = kane.timedOut
140
- ? "Kane stopped responding and the run was cut off"
141
- : (kane.end?.reason ?? kane.stderr.trim().split("\n").slice(-5).join("\n"));
142
- const film = { frames, actions: recorded.actions, focus: focusRect };
143
- writeFileSync(join(dir, "film.json"), JSON.stringify(film));
144
- // A step starts when Kane announces it (the "running" event), not when it reports it done.
145
- const announced = new Map(kane.steps.filter((s) => s.status === "running").map((s) => [s.step, s.ts]));
146
- const marks = kane.steps.map((s) => Date.parse(announced.get(s.step) ?? s.ts) / 1000);
147
- const made = await makeClip({ ...film, marks, endpoint: chrome.endpoint }, join(dir, "clip")).catch((e) => {
148
- log(`clip failed: ${String(e)}`);
149
- return undefined;
150
- });
151
- const clip = made && { mp4: made.mp4, gif: made.gif, jpg: made.jpg };
152
- return {
153
- scenario,
154
- outcome,
155
- steps: kane.steps.map((s, i) => ({ ...s, at: made?.marks[i] })),
156
- end,
157
- clip,
158
- ...(outcome === "error" && { error }),
159
- ...(!kane.end && NOT_SIGNED_IN.test(kane.stderr) && { notSignedIn: true }),
160
- };
161
- }
162
- finally {
163
- clearInterval(stills);
164
- chrome.close();
165
- }
166
- }
File without changes