@lalalic/markcut 3.2.16 → 3.2.18

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/README.md CHANGED
@@ -373,10 +373,11 @@ export MARKCUT_VTT_CLI='my-video-backend --prompt "{prompt}" {input}'
373
373
 
374
374
  ### Global queue CLI template (opt-in)
375
375
 
376
- Set `MARKCUT_QUEUE_CLI_TEMPLATE` in Markcut's environment to route generation and vision CLI subprocesses through the PM2-managed queue worker. `{command}` is the shell-quoted original command; the queue wrapper sets `MARKCUT_QUEUE_ACTIVE=1` for descendants to prevent re-entrance.
376
+ By default, Markcut routes generation and vision CLI subprocesses through its built-in SQLite execution queue. The single worker is started automatically on first use; no Neo or PM2 setup is required. Set `MARKCUT_QUEUE_ENABLED=0` to opt out. An explicit `MARKCUT_QUEUE_CLI_TEMPLATE` may override the default. `{command}` is the shell-quoted original command; the queue wrapper sets `MARKCUT_QUEUE_ACTIVE=1` for descendants to prevent re-entrance.
377
377
 
378
378
  ```bash
379
- export MARKCUT_QUEUE_CLI_TEMPLATE='node "$HOME/.agents/skills/queue/queue.mjs" run --queue media-ai -- /bin/sh -c {command}'
379
+ markcut queue status
380
+ markcut queue list
380
381
  ```
381
382
 
382
383
  The template must use an executable reachable from the process environment. To avoid ambiguity with shell quoting of `$HOME`, use a literal absolute path in production. If unset, execution is unchanged. Rendering cache continues to be managed by Markcut, not the queue. No service restart or Markcut-specific queue daemon is required.
package/bin/markcut CHANGED
@@ -5,7 +5,13 @@ import { fileURLToPath } from "node:url";
5
5
 
6
6
  const __filename = fileURLToPath(import.meta.url);
7
7
  const __dirname = dirname(__filename);
8
- const entry = resolve(__dirname, "..", "src", "render", "cli.mjs");
8
+ const root = resolve(__dirname, "..");
9
+ if (process.argv[2] === "queue") {
10
+ const result = spawnSync(process.execPath, [resolve(root, "src", "queue-worker.mjs"), ...process.argv.slice(3)], { stdio: "inherit" });
11
+ if (result.error) console.error(result.error.message);
12
+ process.exit(result.status ?? 1);
13
+ }
14
+ const entry = resolve(root, "src", "render", "cli.mjs");
9
15
 
10
16
  const result = spawnSync(process.execPath, [entry, ...process.argv.slice(2)], {
11
17
  stdio: "inherit",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lalalic/markcut",
3
- "version": "3.2.16",
3
+ "version": "3.2.18",
4
4
  "description": "Markdown-to-video engine. Describe scenes in markdown, get a rendered video.",
5
5
  "bin": {
6
6
  "markcut": "bin/markcut"
@@ -30,6 +30,7 @@
30
30
  "render:gallery": "remotion render examples/pixelle/index.tsx Root out/pixelle-gallery.mp4 --props=./examples/pixelle/gallery.json",
31
31
  "typecheck": "tsc --noEmit",
32
32
  "test": "vitest run --config tests/vitest.config.ts",
33
+ "test:publish": "vitest run --config tests/vitest.publish.config.ts",
33
34
  "test:integration": "vitest run --config tests/vitest.config.ts tests/render.test.ts",
34
35
  "test:watch": "vitest --config tests/vitest.config.ts",
35
36
  "build": "scripts/build-pipeline.sh && scripts/build-player.sh && scripts/build-mcp-preview.sh",
@@ -943,7 +943,7 @@ describe("compileDescriptiveRoot", () => {
943
943
  expect(compiled.durationInSeconds).toBe(0);
944
944
  });
945
945
 
946
- it("generates unique ids for nodes without id", () => {
946
+ it("does not synthesize event ids for nodes without explicit id", () => {
947
947
  const compiled = compileDescriptiveRoot({
948
948
  children: [
949
949
  { type: "image", src: "a.jpg", duration: 1 },
@@ -952,9 +952,8 @@ describe("compileDescriptiveRoot", () => {
952
952
  });
953
953
 
954
954
  const [a, b] = compiled.children as any[];
955
- expect(a.id).toBeTruthy();
956
- expect(b.id).toBeTruthy();
957
- expect(a.id).not.toBe(b.id);
955
+ expect(a.id).toBeUndefined();
956
+ expect(b.id).toBeUndefined();
958
957
  });
959
958
  });
960
959
 
@@ -598,6 +598,14 @@ function processMDASTListItem(item: any, parent: ParentNode, lines: string[]): v
598
598
  }
599
599
  }
600
600
 
601
+ // Script aliases may supply text through an indented ~~~script block.
602
+ // Reject an empty alias only after processing those property blocks.
603
+ if (/^script(?:\s|$)/.test(text) && !(node as any).script?.trim() && !(node as any).on) {
604
+ throw new DslError("script requires text content", {
605
+ line: firstPara.position?.start?.line,
606
+ lineText: text,
607
+ });
608
+ }
601
609
  }
602
610
 
603
611
  /** Apply key/value attrs to a scene node (subset of root attrs). */
package/src/queue-cli.mjs CHANGED
@@ -2,16 +2,23 @@
2
2
  export function shellQuote(value) {
3
3
  return "'" + String(value).replace(/'/g, "'\\''") + "'";
4
4
  }
5
+ import { fileURLToPath } from "node:url";
6
+ import { resolve, dirname } from "node:path";
7
+ const queueWorker = resolve(dirname(fileURLToPath(import.meta.url)), "queue-worker.mjs");
5
8
  export function queueCommand(command, env = process.env) {
6
9
  const template = env.MARKCUT_QUEUE_CLI_TEMPLATE;
7
- if (!template || env.MARKCUT_QUEUE_ACTIVE === "1") return command;
10
+ if (env.MARKCUT_QUEUE_ACTIVE === "1" || env.MARKCUT_QUEUE_ENABLED === "0") return command;
11
+ if (!template) {
12
+ // Default: own SQLite worker, started on demand by the queue runner.
13
+ return `${shellQuote(process.execPath)} ${shellQuote(queueWorker)} run --queue media-ai -- /bin/sh -c ${shellQuote(`MARKCUT_QUEUE_ACTIVE=1 ${command}`)}`;
14
+ }
8
15
  if (!template.includes("{command}")) throw Error("MARKCUT_QUEUE_CLI_TEMPLATE must contain {command}");
9
16
  // The worker runs a shell to execute the original CLI without re-entering the queue.
10
17
  return template.replaceAll("{command}", shellQuote(`MARKCUT_QUEUE_ACTIVE=1 ${command}`));
11
18
  }
12
19
  export function queueArgv(command, argv, env = process.env) {
13
20
  const template = env.MARKCUT_QUEUE_CLI_TEMPLATE;
14
- if (!template || env.MARKCUT_QUEUE_ACTIVE === "1") return { command, argv };
21
+ if (env.MARKCUT_QUEUE_ACTIVE === "1" || env.MARKCUT_QUEUE_ENABLED === "0") return { command, argv };
15
22
  const cmd = [command, ...argv].map(shellQuote).join(" ");
16
23
  return { command: "/bin/sh", argv: ["-c", queueCommand(cmd, env)] };
17
24
  }
@@ -0,0 +1,202 @@
1
+ #!/usr/bin/env node
2
+ import { DatabaseSync } from 'node:sqlite';
3
+ import { spawn } from 'node:child_process';
4
+ import { fileURLToPath } from 'node:url';
5
+ import { randomUUID } from 'node:crypto';
6
+ import { mkdirSync, readFileSync, writeFileSync, rmSync, existsSync, openSync, readSync, closeSync, unlinkSync } from 'node:fs';
7
+ import { join } from 'node:path';
8
+ import { homedir, constants as osConstants } from 'node:os';
9
+
10
+ const root = process.env.MARKCUT_QUEUE_HOME || join(homedir(), '.markcut', 'execution-queue');
11
+ mkdirSync(root, { recursive: true, mode: 0o700 });
12
+ const db = new DatabaseSync(join(root, 'queue.sqlite'));
13
+ db.exec('PRAGMA journal_mode=WAL; PRAGMA busy_timeout=5000; CREATE TABLE IF NOT EXISTS jobs (id TEXT PRIMARY KEY, queue TEXT NOT NULL, status TEXT NOT NULL, command TEXT NOT NULL, cwd TEXT NOT NULL, created INTEGER NOT NULL, started INTEGER, ended INTEGER, pid INTEGER, code INTEGER, signal TEXT, error TEXT, timeout INTEGER NOT NULL DEFAULT 300000, dedupe TEXT); CREATE INDEX IF NOT EXISTS jobs_next ON jobs(status,queue,created); CREATE UNIQUE INDEX IF NOT EXISTS jobs_dedupe ON jobs(queue,dedupe) WHERE dedupe IS NOT NULL AND status IN (\'queued\',\'running\');');
14
+ const columns=db.prepare('PRAGMA table_info(jobs)').all().map(row=>row.name);
15
+ if(!columns.includes('retries')) db.exec('ALTER TABLE jobs ADD COLUMN retries INTEGER NOT NULL DEFAULT 0');
16
+ if(!columns.includes('attempts')) db.exec('ALTER TABLE jobs ADD COLUMN attempts INTEGER NOT NULL DEFAULT 0');
17
+ db.exec('CREATE TABLE IF NOT EXISTS waiters (job TEXT NOT NULL, token TEXT PRIMARY KEY, pid INTEGER NOT NULL)');
18
+ const sleep = ms => new Promise(resolve => setTimeout(resolve, ms));
19
+ const logPath = (id, stream) => join(root, id + '.' + stream);
20
+ const get = id => db.prepare('SELECT * FROM jobs WHERE id=?').get(id);
21
+ const args = process.argv.slice(2);
22
+ // Markcut owns its queue worker. Start it on demand, with no PM2 or Neo dependency.
23
+ async function ensureWorker() {
24
+ const lock = join(root, 'worker.lock', 'pid');
25
+ const current = () => {
26
+ try { return Number(readFileSync(lock, 'utf8')); } catch { return 0; }
27
+ };
28
+ if (current() && alive(current())) return;
29
+ const child = spawn(process.execPath, [fileURLToPath(import.meta.url), 'worker'], {
30
+ detached: true, stdio: 'ignore', env: process.env,
31
+ });
32
+ child.unref();
33
+ for (let n = 0; n < 100; n++) {
34
+ const pid = current();
35
+ if (pid && alive(pid)) return;
36
+ await new Promise(resolve => setTimeout(resolve, 50));
37
+ }
38
+ throw Error('Markcut queue worker did not become ready');
39
+ }
40
+
41
+ function flag(name, fallback) { const i=args.indexOf(name); return i<0 ? fallback : args[i+1]; }
42
+ function enqueue() {
43
+ const cut=args.indexOf('--');
44
+ if(cut<0 || !args[cut+1]) throw Error('Usage: markcut queue run|submit --queue NAME [--timeout MS] [--dedupe KEY] -- COMMAND [ARGS...]');
45
+ const queue=flag('--queue', 'media-ai'), timeout=Number(flag('--timeout','300000')), retries=Number(flag('--retries','0'));
46
+ if(!/^[a-z0-9][\w-]*$/.test(queue) || !Number.isSafeInteger(timeout) || timeout<1 || !Number.isSafeInteger(retries) || retries<0 || retries>10) throw Error('Invalid queue or timeout');
47
+ const id=randomUUID(), command=JSON.stringify(args.slice(cut+1));
48
+ const dedupe=flag('--dedupe',null);
49
+ const insert=db.prepare('INSERT INTO jobs (id,queue,status,command,cwd,created,timeout,dedupe,retries) VALUES (?,?,?,?,?,?,?,?,?)');
50
+ try { insert.run(id,queue,'queued',command,process.cwd(),Date.now(),timeout,dedupe,retries); return id; }
51
+ catch(e) { if(!dedupe) throw e; const old=db.prepare("SELECT id FROM jobs WHERE queue=? AND dedupe=? AND status IN ('queued','running')").get(queue,dedupe); if(!old) throw e; if(get(old.id).command!==command) throw Error('Deduplication key already bound to a different command'); return old.id; }
52
+ }
53
+ function cancel(id) {
54
+ const job=get(id); if(!job) throw Error('Unknown job');
55
+ if(job.status==='queued') db.prepare("UPDATE jobs SET status='cancelled',ended=? WHERE id=? AND status='queued'").run(Date.now(),id);
56
+ else if(job.status==='running') db.prepare("UPDATE jobs SET status='cancelling' WHERE id=? AND status='running'").run(id);
57
+ }
58
+ async function follow(id) {
59
+ let offsets={stdout:0,stderr:0}; let interrupted=false;
60
+ const token=randomUUID();
61
+ db.prepare('INSERT INTO waiters (job,token,pid) VALUES (?,?,?)').run(id,token,process.pid);
62
+ const detach=()=>{db.prepare('DELETE FROM waiters WHERE token=?').run(token);};
63
+ const stop=()=>{
64
+ interrupted=true;detach();
65
+ for(const w of db.prepare('SELECT token,pid FROM waiters WHERE job=?').all(id)) if(!alive(w.pid)) db.prepare('DELETE FROM waiters WHERE token=?').run(w.token);
66
+ if(db.prepare('SELECT count(*) AS n FROM waiters WHERE job=?').get(id).n===0) cancel(id);
67
+ };
68
+ process.once('SIGINT',stop); process.once('SIGTERM',stop);
69
+ for(;;) {
70
+ for(const stream of ['stdout','stderr']) {
71
+ const file=logPath(id,stream);
72
+ if(!existsSync(file)) continue;
73
+ const fd=openSync(file,'r'); const chunks=[]; const buffer=Buffer.alloc(65536);
74
+ try { let n; while((n=readSync(fd,buffer,0,buffer.length,offsets[stream]))>0) { offsets[stream]+=n; chunks.push(Buffer.from(buffer.subarray(0,n))); } }
75
+ finally { closeSync(fd); }
76
+ for(const chunk of chunks) (stream==='stdout'?process.stdout:process.stderr).write(chunk);
77
+ }
78
+ const job=get(id);
79
+ if(['completed','failed','cancelled'].includes(job.status)) {
80
+ detach();process.exitCode=job.code??(job.status==='cancelled'?130:1); return;
81
+ }
82
+ if(interrupted) { process.exitCode=130; return; }
83
+ await sleep(100);
84
+ }
85
+ }
86
+ function alive(pid){try {process.kill(pid,0);return true;}catch{return false;}}
87
+ function groupAlive(pid){try {process.kill(-pid,0);return true;}catch{return false;}}
88
+ async function reap(pid) {
89
+ if(!pid || !Number.isInteger(pid) || pid<=1) return;
90
+ try {process.kill(-pid,'SIGTERM');}catch{}
91
+ for(let i=0;i<20;i++){if(!groupAlive(pid)) return;await sleep(100);}
92
+ try{process.kill(-pid,'SIGKILL');}catch{}
93
+ for(let i=0;i<20;i++){if(!groupAlive(pid)) return;await sleep(100);}
94
+ throw Error('Unreaped child process group '+pid);
95
+ }
96
+ async function executeJob(job) {
97
+ const [program,...argv]=JSON.parse(job.command);
98
+ const out=openSync(logPath(job.id,'stdout'),'w',0o600), err=openSync(logPath(job.id,'stderr'),'w',0o600);
99
+ let child,code=1,signal=null,reason=null;
100
+ try {
101
+ child=spawn(program,argv,{cwd:job.cwd,stdio:['ignore',out,err],detached:true,env:process.env,shell:false});
102
+ await new Promise((resolve,reject)=>{child.once('spawn',resolve);child.once('error',reject);});
103
+ db.prepare('UPDATE jobs SET pid=? WHERE id=?').run(child.pid,job.id);
104
+ const result=await new Promise(resolve=>{
105
+ child.once('close',(c,s)=>resolve({code:c,signal:s}));
106
+ const timer=setInterval(()=>{
107
+ const latest=get(job.id);
108
+ if(latest.status==='cancelling'||Date.now()-latest.started>=job.timeout) {
109
+ clearInterval(timer);
110
+ reason=latest.status==='cancelling'?'cancelled':'timeout';
111
+ try{process.kill(-child.pid,'SIGTERM');}catch{}
112
+ }
113
+ },100);
114
+ child.once('close',()=>clearInterval(timer));
115
+ });
116
+ code=reason==='cancelled'?130:reason==='timeout'?124:(result.code??(result.signal?128+(osConstants.signals[result.signal]??0):1));
117
+ signal=result.signal;
118
+ // Do not release a queue slot while descendants from the prior command survive.
119
+ try { await reap(child.pid); } catch(error) { reason=error.message;code=1; }
120
+ } catch(error){reason=error.message;}
121
+ finally {closeSync(out);closeSync(err);}
122
+ if(code!==0 && !reason && job.attempts<job.retries) {
123
+ db.prepare("UPDATE jobs SET status='queued',pid=NULL,started=NULL WHERE id=?").run(job.id);
124
+ } else {
125
+ db.prepare('UPDATE jobs SET status=?,ended=?,code=?,signal=?,error=? WHERE id=?').run(reason==='cancelled'?'cancelled':code===0?'completed':'failed',Date.now(),code,signal,reason,job.id);
126
+ }
127
+ }
128
+ async function worker() {
129
+ const lock=join(root,'worker.lock');
130
+ try { mkdirSync(lock); }
131
+ catch {
132
+ const prior=Number(existsSync(join(lock,'pid'))?readFileSync(join(lock,'pid'),'utf8'):0);
133
+ if(prior && alive(prior)) throw Error('Queue worker already running');
134
+ rmSync(lock,{recursive:true,force:true});mkdirSync(lock);
135
+ }
136
+ writeFileSync(join(lock,'pid'),String(process.pid));
137
+ process.once('exit',()=>{try{rmSync(lock,{recursive:true});}catch{}});
138
+
139
+ const capacities=JSON.parse(process.env.NEO_QUEUE_CAPACITIES||'{}');
140
+ for(const [name,limit] of Object.entries(capacities)) {
141
+ if(!/^[a-z0-9][\w-]*$/.test(name) || !Number.isInteger(limit) || limit<1 || limit>8 || (name==='media-ai' && limit!==1)) throw Error('Invalid per-queue capacity: '+name);
142
+ }
143
+ const stale=db.prepare("SELECT * FROM jobs WHERE status IN ('running','cancelling')").all();
144
+ for(const job of stale) {
145
+ await reap(job.pid);
146
+ db.prepare("UPDATE jobs SET status='failed',ended=?,code=137,error='worker interrupted; prior process group reaped' WHERE id=?").run(Date.now(),job.id);
147
+ }
148
+ // Retain audit metadata but remove old terminal-job stream files.
149
+ const retentionDays=Number(process.env.NEO_QUEUE_LOG_RETENTION_DAYS??7);
150
+ if(!Number.isInteger(retentionDays)||retentionDays<1||retentionDays>365) throw Error('Invalid log retention days');
151
+ const pruneLogs=()=>{
152
+ const expired=db.prepare("SELECT id FROM jobs WHERE status IN ('completed','failed','cancelled') AND ended<?").all(Date.now()-retentionDays*86400000);
153
+ for(const row of expired) for(const stream of ['stdout','stderr']) {
154
+ try{unlinkSync(logPath(row.id,stream));}catch(error){if(error.code!=='ENOENT') console.error('Log cleanup:',error.message);}
155
+ }
156
+ };
157
+ let lastPrune=0;
158
+ const active=new Map();
159
+ let stopping=false;
160
+ const shutdown=async()=>{
161
+ if(stopping) return;
162
+ stopping=true;
163
+ const running=db.prepare("SELECT id,pid FROM jobs WHERE status IN ('running','cancelling')").all();
164
+ for(const job of running) {
165
+ try { await reap(job.pid); }
166
+ catch(error) {console.error('Unable to terminate child process group:',error.message);process.exitCode=1;}
167
+ db.prepare("UPDATE jobs SET status='failed',ended=?,code=143,error='worker stopped' WHERE id=? AND status IN ('running','cancelling')").run(Date.now(),job.id);
168
+ }
169
+ process.exit(process.exitCode??0);
170
+ };
171
+ process.once('SIGTERM',()=>{void shutdown();});
172
+ process.once('SIGINT',()=>{void shutdown();});
173
+ for(;!stopping;) {
174
+ if(Date.now()-lastPrune>60000){pruneLogs();lastPrune=Date.now();}
175
+ const queued=db.prepare("SELECT * FROM jobs WHERE status='queued' ORDER BY created,id").all();
176
+ for(const candidate of queued) {
177
+ const limit=candidate.queue==='media-ai'?1:(capacities[candidate.queue]??1);
178
+ if((active.get(candidate.queue)??0)>=limit) continue;
179
+ // Only one PM2-owned worker dispatches. This atomic UPDATE protects the claim.
180
+ const now=Date.now();
181
+ const claim=db.prepare("UPDATE jobs SET status='running',started=?,attempts=attempts+1 WHERE id=? AND status='queued'").run(now,candidate.id);
182
+ if(!claim.changes) continue;
183
+ const job={...candidate,started:now};
184
+ active.set(job.queue,(active.get(job.queue)??0)+1);
185
+ void executeJob(job).catch(error=>{
186
+ db.prepare("UPDATE jobs SET status='failed',ended=?,code=1,error=? WHERE id=?").run(Date.now(),String(error),job.id);
187
+ }).finally(()=>active.set(job.queue,(active.get(job.queue)??1)-1));
188
+ }
189
+ await sleep(100);
190
+ }
191
+ }
192
+
193
+ try {
194
+ if(args[0]==='worker') await worker();
195
+ else if(args[0]==='run' || args[0]==='submit') {
196
+ await ensureWorker();
197
+ const id=enqueue();if(args[0]==='submit') console.log(id);else await follow(id);}
198
+ else if(args[0]==='status') console.log(JSON.stringify(db.prepare('SELECT queue,status,count(*) AS count FROM jobs GROUP BY queue,status').all(),null,2));
199
+ else if(args[0]==='list') console.log(JSON.stringify(db.prepare('SELECT id,queue,status,created,started,ended,code,error FROM jobs ORDER BY created DESC LIMIT 30').all(),null,2));
200
+ else if(args[0]==='cancel') { if(!args[1]) throw Error('cancel ID');cancel(args[1]);}
201
+ else throw Error('Commands: worker | run | submit | status | list | cancel ID');
202
+ } catch(e) { console.error(e.message);process.exitCode=1; }
@@ -1,7 +1,10 @@
1
1
  import { describe, expect, it } from "vitest";
2
2
  import { queueCommand, queueArgv } from "../src/queue-cli.mjs";
3
3
  describe("global queue CLI template", () => {
4
- it("is disabled unless global env is set", () => expect(queueCommand("echo one", {})).toBe("echo one"));
4
+ it("queues by default and allows explicit opt-out", () => {
5
+ expect(queueCommand("echo one", {})).toContain("queue-worker.mjs' run --queue media-ai");
6
+ expect(queueCommand("echo one", {MARKCUT_QUEUE_ENABLED:"0"})).toBe("echo one");
7
+ });
5
8
  it("wraps a shell command with a recursion guard", () => {
6
9
  const env = { MARKCUT_QUEUE_CLI_TEMPLATE: "node queue.mjs run --queue media-ai -- /bin/sh -c {command}" };
7
10
  const result = queueCommand('echo "a b"', env);
@@ -14,4 +17,9 @@ describe("global queue CLI template", () => {
14
17
  const r=queueArgv("python",["file with spaces", "quoted'word"],{MARKCUT_QUEUE_CLI_TEMPLATE:"queue run -- /bin/sh -c {command}"});
15
18
  expect(r.command).toBe("/bin/sh");expect(r.argv[1]).toContain("MARKCUT_QUEUE_ACTIVE");
16
19
  });
20
+ it("queues argv by default", () => {
21
+ const r = queueArgv("/bin/echo", ["one two"], {});
22
+ expect(r.command).toBe("/bin/sh");
23
+ expect(r.argv[1]).toContain("queue-worker.mjs");
24
+ });
17
25
  });
@@ -0,0 +1,22 @@
1
+ import { defineConfig } from "vitest/config";
2
+
3
+ // Publish gating runs deterministic tests that do not require local media,
4
+ // ffmpeg/ffprobe, live vision services, or a media HTTP server.
5
+ // Full coverage remains available with `npm test` and `npm run test:integration`.
6
+ export default defineConfig({
7
+ test: {
8
+ exclude: [
9
+ "**/node_modules/**",
10
+ "tests/render.test.ts",
11
+ "tests/vision.test.ts",
12
+ "tests/vision-candidate.test.ts",
13
+ "tests/mcp-remote-assets.test.ts",
14
+ ],
15
+ testTimeout: 120_000,
16
+ hookTimeout: 120_000,
17
+ pool: "forks",
18
+ fileParallelism: false,
19
+ reporters: ["verbose"],
20
+ env: { CI: "true" },
21
+ },
22
+ });