The ultimate harness for coding agents and beyond. All your agents. All your machines. One command center. Start with code, then follow your curiosity and build across disciplines: CAD, circuits, robots, games and music.
TypeScript 3d-modelingagent-frameworkagent-harnessai-agentscadclaude-codecodexcoding-agentsdeveloper-toolsesp32game-developmentmcp-servermulti-agentopen-hardwareopencodeopenharnesspcbroboticsterminaltmux
feat(jev-browser): the pane takes the job, and it starts by itself (#140)
Dee1ce607c13be9
diff --git a/store/agents/jev-browser/AGENTS.md b/store/agents/jev-browser/AGENTS.mdindex 7f6c8d1d6..c438a5238 100644--- a/store/agents/jev-browser/AGENTS.md+++ b/store/agents/jev-browser/AGENTS.md@@ -15,14 +15,25 @@ recipe. The viewer watches it and reloads on every save.`$JEV_DSH` below is the harness's own folder. The workspace sets it for you; `echo $JEV_DSH` showsit. If it is empty, you are not in a Jev Browser workspace: say so rather than guessing a path.+**The person can do the simple version without you.** The pane has a form: a start address, what+one thing is, and the columns. Point at it when that is all they need. You are for the rest: a+messy site, a tricky column, reading what came back, and saying what it means.+## Your job, in this order-1. **Find out what they want, and from where.** A start address, what one "thing" is, and the- columns they want. If they paste a page, open it yourself first (see "Look before you write the- job") so the field asks match the words really on it.-2. **Write `browse.json`.** Validate with `node "$JEV_DSH/toolchain/check.mjs"`.-3. **Ask them to press Start.** The pane owns the browser and you do not have its address, so you- cannot press it. Then watch `.harness/verdict.json` (see "While it runs").+**Do not open a browser to plan. Write the job; the pane runs it.** The pane has the browser open+in front of the person, and a run starts by itself the moment `browse.json` changes. Anything you+do with Chrome yourself is slower, invisible to them, and doubles the work. Write the file first,+let it run, and look at a page only if something comes back wrong.++1. **Take what they said and turn it into a job.** A start address, what one "thing" is, and the+ columns. Guess sensibly from their words: "the best fencing gloves on a shop" means a product+ listing page, one thing is a glove for sale, and the columns are name, price, rating, reviews.+ Do not interview them. Write something, watch it, then fix it.+2. **Write `browse.json`** and validate with `node "$JEV_DSH/toolchain/check.mjs"`. Saving it starts+ the run: the browser opens in the pane and rows begin landing within a few seconds.+3. **Watch `.harness/verdict.json`** (see "While it runs"). Say one short line about what is+ happening; do not narrate every page.4. **Read `results.csv`.** Its columns are `item`, `page title`, `address`, then each of yourfields with a confidence column beside it. The address is the page each row came off, so everynumber can be checked: say that when you report. Derive whatever you like with a script (a sort@@ -39,6 +50,7 @@ it. If it is empty, you are not in a Jev Browser workspace: say so rather than g{"task": "Every flat for rent in the search results, with rent and address","start": "https://example.com/search?area=leeds", // the page to begin on. "demo" is the made-up job board this harness serves itself+ "search": "", // optional: words to type into the site's own search box first"item": "a flat for rent", // one of the things. Used in every question, so make it concrete"fields": [{ "id": "address", "name": "Address", "ask": "the street address" },@@ -53,7 +65,8 @@ it. If it is empty, you are not in a Jev Browser workspace: say so rather than g"maxPages": 25, // how far down the list to walk (page 2, page 3…)"sameSiteOnly": true, // stay on the site the start address is on"alsoVisit": [], // other hosts it may reach, if the things live elsewhere- "show": true // a window the person can watch and take over+ "show": true, // a window the person can watch and take over+ "autoStart": true // saving the file starts the run. false to make them press Start}```@@ -76,9 +89,11 @@ One Jev call per page, and that call holds everything worth asking about it.It opens the things it found, then asks for the next list page, until `maxItems` or `maxPages`.-## Look before you write the job+## Looking at a page yourself-Open the page yourself and see what the reader sees, so your asks match the page's words:+Only when something came back wrong: a column is thin, the rows are the wrong things, or the site+served a wall. Never as a first step, and never to plan a job you have not tried. It costs the+person half a minute of waiting and shows them nothing.```shnode --input-type=module -e "@@ -134,6 +149,9 @@ The refusals live in `toolchain/chrome.mjs`, next to the only code that touchessigns in themselves in the window; the profile is kept in the workspace, so next time it isalready signed in.- **It stays on the sites the job names**, and only on http and https. Downloads are refused.+- **A search box is the one exception**, because searching asks a site a question rather than+ buying, sending or deleting. Put what to search for in `"search"` and the harness types it into+ the site's own search box.Never tell a person you can work around these, and never ask them for a password.@@ -142,6 +160,11 @@ Never tell a person you can work around these, and never ask them for a password- A site may say in its terms that it does not want to be read this way, and some sites charge foran API that gives the same data. Say so once, and let the person decide. Do not go around ablock, a login wall, a rate limit or a robots rule.+- **Big shops and social sites usually block an automated browser.** The verdict says so plainly+ (`run.walled`), the pane says so, and that is the end of that site. Do not retry it, do not try+ another address on it, and do not pretend it half worked. Offer a site that does allow reading,+ and say what it will give them instead. A specialist shop often has better columns than a+ marketplace anyway.- Take what is asked for and no more. `maxItems` is a page load each, so it costs the site morethan it costs you: set it to what the person actually needs, not to the maximum.- The rows are what the page said on the day it was read. If that matters, say when it was read.diff --git a/store/agents/jev-browser/README.md b/store/agents/jev-browser/README.mdindex 4efd9e32c..af604e063 100644--- a/store/agents/jev-browser/README.md+++ b/store/agents/jev-browser/README.md@@ -1,8 +1,27 @@# Jev Browser-**Point it at a web page. Get a spreadsheet.** Say what one "thing" is on that page and which-columns you want, and a real Chrome walks the site: it opens every thing, pulls out your columns,-and writes `results.csv` while you watch. No code, no selectors, no copy and paste.+**Point it at a web page. Get a spreadsheet.** Type an address, say what one "thing" on it is, and+list the columns you want. A real Chrome opens, walks the site, and writes `results.csv` while you+watch. No code, no selectors, no copy and paste.++## How you use it++The pane asks you three questions and then goes. There is nothing to press afterwards.++| | |+|---|---|+| **Start on** | `books.toscrape.com/catalogue/category/books/travel_2/index.html` |+| **Search for** | leave it empty, or put words to type into the site's own search box |+| **Each one is** | `a book for sale` |+| **Columns** | `the title` · `the price` · `how many copies are available` · `Is it in stock?` |++Press **Go**. The browser opens, the rows land, and `results.csv` is in your project folder. A line+that reads like a question ("Is it in stock?") becomes a yes-or-no column; everything else is taken+off the page word for word.++The agent on the right is for the rest: a site that fights back, a column that comes back empty,+and reading what you collected. You do not need it to run a job. Ask it in plain words and it+writes the same job file the form does, and that starts on its own too.**Every value is text taken off the page.** Jev, TypeSafe's System One model, never writes words. Itis shown the numbered pieces of text that really are on the page and it picks one. So a cell holds@@ -34,17 +53,17 @@ The refusals sit next to the only code that can touch a page, so nothing above tin yourself in the window. The profile is kept in your project folder, so the next run is alreadysigned in.- **It stays on the sites your job names**, on http and https only, and downloads are refused.+- **A search box is the one control it will ever use**, because searching asks a site a question+ rather than buying, sending or deleting anything.Some sites say in their terms that they do not want to be read this way, and some sell an API forthe same data. That is your call to make, and the harness will not go around a block or a login.## Try it in ten seconds-The harness serves its own small job board on your machine, so there is something honest to walk-before you point it anywhere real. Press **Start**. Only the content of that site is made up: the-HTTP, the links, the pagination and the browser are all real.--Then change `start` in `browse.json` to a real address.+Press **Try the practice site**. The harness serves its own small job board on your machine, with+real HTTP, real links, real pagination and a real browser. Only the content of that site is made+up. It even has a search box, so you can try the "search for" line on it.## The job, which is also the recipe@@ -63,7 +82,9 @@ Then change `start` in `browse.json` to a real address.}```-Run it again next month and you get next month's answer. That file is the whole recipe.+Run it again next month and you get next month's answer. That file is the whole recipe. Saving it+starts a run, so the agent writing it for you has the same effect as pressing Go. Set+`"autoStart": false` if you would rather press the button yourself.## What you get@@ -91,6 +112,15 @@ about being a stand-in, but its rows are not worth acting on. Paste an OpenRouteinto the **Jev · live mind** panel in the pane. It is saved on your machine in`~/.config/typesafe/credentials` and checked with one tiny call.+## When a site says no++Big shops, marketplaces and social sites mostly block an automated browser. What comes back is a+wall: "Sorry, something went wrong", a captcha, or a near-empty page. The harness recognises that,+says which site did it, and stops. It will not work around a block, and neither should the agent.++A specialist shop, a maker's own site or a public dataset usually reads perfectly, and its pages+often print the fields a marketplace hides.+## The honest limitThe limit is the page, not the model. A site that prints its values as text reads perfectly. A sitediff --git a/store/agents/jev-browser/skills/browser/SKILL.md b/store/agents/jev-browser/skills/browser/SKILL.mdindex 019aefc24..126e7e9fa 100644--- a/store/agents/jev-browser/skills/browser/SKILL.md+++ b/store/agents/jev-browser/skills/browser/SKILL.md@@ -19,6 +19,9 @@ a LIST page → links to each thing, and a link to the next list pagea THING page → the details of one thing```+A search page is a list page, so "search this site for X" is the same job: put the words in+`"search"` and the harness types them into the site's own search box, then reads the results.+Point `start` at the list. If you point it at one thing's page, that one row is collected and therun ends. If the things have no page of their own (everything is on the list), say so to the person:this harness collects one row per page, so a list-only site gives one row for the whole list.@@ -80,6 +83,16 @@ them behind a click, or loads them after a scroll gives blanks, and the blanks scolumn rather than as a wrong answer. That is the tool telling the truth: it would rather leave acell empty than write something the page never said.+## When a site says no++Big shops, marketplaces and social sites mostly block an automated browser. What comes back is a+wall page: "Sorry, something went wrong", a captcha, or a near-empty page. The harness names it and+stops, and the verdict carries `run.walled`. That is not a bug to work around, and trying another+address on the same site is the same wall.++Say it plainly and move: a specialist shop, a maker's own site, a public dataset or an official API.+Those pages are usually better anyway, because they print the fields a marketplace hides.+## Never- Never go around a login wall, a block, a rate limit or a robots rule. Never ask for a password.diff --git a/store/agents/jev-browser/store.json b/store/agents/jev-browser/store.jsonindex 748d7c1ad..cc4bd8c0e 100644--- a/store/agents/jev-browser/store.json+++ b/store/agents/jev-browser/store.json@@ -2,7 +2,7 @@"homepage": "https://typesafe.ai","upstream": "https://typesafe.ai","license": "MIT",- "tagline": "Point it at a web page, say what you want, get a spreadsheet",+ "tagline": "Say what you want off a web page, and get a spreadsheet","examples": [{"prompt": "Here is the search results page for two-bedroom flats in my area. Get me every listing with its address, monthly rent, how many bedrooms, and whether it says pets are allowed. Then tell me which five are the best value.",@@ -11,7 +11,8 @@},{"prompt": "Read every product in this category and put the name, price, stock count and product code in a spreadsheet. Stop after 40. Then tell me which ones are out of stock.",- "caption": "Every value is text taken off the page, with the confidence Jev had in it"+ "image": "https://raw.githubusercontent.com/autonomous-ai/openharness/main/store/showcase/jev-browser/say-what-you-want.jpg",+ "caption": "Three boxes and a list of columns. No code, no selectors, and nothing to press after Go"},{"prompt": "I have to check these 60 supplier pages every month for their lead times and minimum order. Write me a job I can run again, then run it and tell me what changed.",diff --git a/store/agents/jev-browser/test/viewer.test.mjs b/store/agents/jev-browser/test/viewer.test.mjsindex effd7e9de..080db2bf0 100644--- a/store/agents/jev-browser/test/viewer.test.mjs+++ b/store/agents/jev-browser/test/viewer.test.mjs@@ -8,7 +8,7 @@ import { connect } from 'node:net'import { join, dirname } from 'node:path'import { fileURLToPath } from 'node:url'import { normalizeJob, listQuestions, itemQuestions, rowFrom, pickLinks, LIMITS } from '../viewer/crawl.mjs'-import { readPage, blockOptions, blockText, canonical, pageState } from '../viewer/page.mjs'+import { readPage, blockOptions, blockText, canonical, pageState, wallReason, findSearchBox } from '../viewer/page.mjs'import { openChrome, findChrome, checkUrl, Refused } from '../toolchain/chrome.mjs'import { startDemoSite } from '../viewer/demosite.mjs'import { startBrowserViewer } from '../viewer/viewer.mjs'@@ -269,3 +269,99 @@ test('a label keeps its value, and a number in a sentence is offered on its own'assert.ok(Object.keys(blockOptions(again)).length <= 250)} finally { await chrome.close(); await site.close() }})++test('the pane takes the job itself, writes browse.json, and starts', { skip: noChrome }, async () => {+ // Dee's screenshot: the pane said "Press Start" and showed nothing while something else thought.+ // A job set in the pane, or written by the agent, now runs without anyone pressing anything.+ process.env.JEV_OFFLINE = '1'+ const site = await startDemoSite()+ const ws = mkdtempSync(join(tmpdir(), 'jev-browser-front-'))+ writeFileSync(join(ws, 'browse.json'), '{}\n')+ const v = await startBrowserViewer({ workspace: ws, port: 0 })+ const ctl = async (cmd, body = {}) => (await fetch(`${v.url}/control`, { method: 'POST', headers: { 'content-type': 'application/json' }, body: JSON.stringify({ cmd, ...body }) })).json()+ const state = async () => (await fetch(`${v.url}/state`)).json()+ const until = async (pred, ms = 40000) => { const end = Date.now() + ms; for (;;) { const s = await state(); if (pred(s)) return s; if (Date.now() > end) assert.fail(`timed out: ${s.phase} ${s.rows.length} rows`); await new Promise((r) => setTimeout(r, 120)) } }+ try {+ assert.equal((await state()).fields.length, 0, 'it opens with no job')+ const set = await ctl('setJob', { start: site.url, item: 'a job posting', columns: 'the job title\nthe pay or salary range\nCan it be done remotely?', maxItems: 3 })+ assert.equal(set.ok, true)+ assert.equal(set.fields, 3)+ // the form's words become the job file, and a question becomes a yes/no column+ const written = JSON.parse(readFileSync(join(ws, 'browse.json'), 'utf8'))+ assert.equal(written.start, site.url)+ assert.deepEqual(written.fields.map((x) => x.type ?? 'pick'), ['pick', 'pick', 'yesno'])+ // nobody pressed Start+ await until((s) => s.phase === 'running' || s.rows.length > 0)+ const done = await until((s) => s.phase === 'done')+ assert.equal(done.rows.length, 3)+ assert.equal(readFileSync(join(ws, 'results.csv'), 'utf8').trim().split('\n').length, 4)+ // a job that only changes its budget does not start all over again+ const calls = done.progress.calls+ await ctl('setJob', { start: site.url, item: 'a job posting', columns: 'the job title\nthe pay or salary range\nCan it be done remotely?', maxItems: 3 })+ await new Promise((r) => setTimeout(r, 1200))+ assert.equal((await state()).progress.calls, calls, 'the same job is not run twice')+ // "autoStart": false gives the button back+ writeFileSync(join(ws, 'browse.json'), JSON.stringify({ ...written, item: 'a role', autoStart: false }))+ await new Promise((r) => setTimeout(r, 1200))+ assert.equal((await state()).phase, 'done', 'it waits to be told')+ } finally { await v.close(); await site.close(); delete process.env.JEV_OFFLINE }+})++test('a search box is the one control it may work, and only a search box', { skip: noChrome }, async () => {+ const site = await startDemoSite()+ const chrome = await browser()+ try {+ await chrome.go(new URL('/login', site.url).toString())+ const page = await readPage(chrome)+ // The site keeps a search box in its header, so it is found even here. What matters is that it+ // is the search box that is found, and never the email or the password beside it.+ const onLogin = findSearchBox(page)+ assert.equal(onLogin?.type, 'search')+ assert.notEqual(onLogin.name, 'email')+ const email = page.controls.find((c) => (c.label || '').toLowerCase().includes('email'))+ await assert.rejects(() => chrome.search(email.css, 'anything'), /does not look like a search box/)+ const password = page.controls.find((c) => c.type === 'password')+ await assert.rejects(() => chrome.search(password.css, 'anything'), Refused)+ const button = page.controls.find((c) => c.tag === 'button')+ await assert.rejects(() => chrome.search(button.css, 'anything'), /only ever types into a search box/)+ // and typing in it really searches the site+ await chrome.go(site.url)+ const list = await readPage(chrome)+ const box = findSearchBox(list)+ assert.ok(box, 'the search box is found on the list page')+ const after = await chrome.search(box.css, 'python')+ assert.match(after.url, /q=python/, 'the words were searched for')+ const results = await readPage(chrome)+ assert.match(results.title + results.text, /python/i)+ assert.ok(results.links.some((l) => /\/job\/\d+/.test(l.path)), 'the results are still a list of things')+ } finally { await chrome.close(); await site.close() }+})++test('a site that serves a wall is named, not silently collected from', { skip: noChrome }, async () => {+ const walls = [+ { title: 'Sorry! Something went wrong!', text: 'Sorry! Something went wrong on our end.', links: [], blocks: [] },+ { title: 'Robot Check', text: 'Enter the characters you see below. Are you a robot?', links: [1, 2], blocks: [1] },+ { title: 'Just a moment', text: 'Checking your browser before accessing the site.', links: [], blocks: [] },+ ]+ for (const w of walls) assert.ok(wallReason(w), w.title)+ assert.equal(wallReason({ title: 'Open roles', text: 'x'.repeat(400), links: [1, 2, 3, 4], blocks: [1, 2, 3, 4, 5] }), null, 'a real page is not a wall')++ // end to end: a site that answers every address with a block page+ process.env.JEV_OFFLINE = '1'+ const { createServer } = await import('node:http')+ const blocker = createServer((_req, res) => { res.writeHead(200, { 'content-type': 'text/html' }); res.end('<html><head><title>Sorry! Something went wrong!</title></head><body><h1>Sorry! Something went wrong!</h1></body></html>') })+ await new Promise((r) => blocker.listen(0, '127.0.0.1', r))+ const ws = mkdtempSync(join(tmpdir(), 'jev-browser-wall-'))+ writeFileSync(join(ws, 'browse.json'), JSON.stringify({ start: `http://127.0.0.1:${blocker.address().port}/list`, item: 'a product', fields: ['the name'], autoStart: false }))+ const v = await startBrowserViewer({ workspace: ws, port: 0 })+ try {+ await (await fetch(`${v.url}/control`, { method: 'POST', headers: { 'content-type': 'application/json' }, body: '{"cmd":"run"}' })).json()+ const s = await (await fetch(`${v.url}/state`)).json()+ assert.equal(s.rows.length, 0)+ assert.match(s.walled, /block page/)+ const verdict = JSON.parse(readFileSync(join(ws, '.harness/verdict.json'), 'utf8'))+ assert.equal(verdict.ready, false)+ assert.ok(verdict.findings.some((f) => f.kind === 'walled' && /refusing an automated browser|block page/.test(f.message)))+ assert.match(verdict.run.walled, /block page/)+ } finally { await v.close(); blocker.close(); delete process.env.JEV_OFFLINE }+})diff --git a/store/agents/jev-browser/toolchain/chrome.mjs b/store/agents/jev-browser/toolchain/chrome.mjsindex 72251810f..99201482c 100644--- a/store/agents/jev-browser/toolchain/chrome.mjs+++ b/store/agents/jev-browser/toolchain/chrome.mjs@@ -174,6 +174,29 @@ export async function openChrome({ profileDir, show = true, allowedHosts = [], wawait settle(8000)return { url: await evaluate('location.href') }},+ /**+ * Search a site: type words into its search box and press Enter. This is the ONLY form control+ * the harness may work: a search asks a question of the site, it does not buy, send or delete.+ * Anything that is not recognisably a search box is refused here as everywhere else.+ */+ async search(cssPath, words) {+ const look = await evaluate(`(() => { const e = document.querySelector(${JSON.stringify(cssPath)}); if (!e) return null+ const t = (e.tagName || '').toLowerCase(), ty = (e.getAttribute('type') || '').toLowerCase()+ if (t !== 'input' && t !== 'textarea') return 'not a field'+ if (ty && !['search', 'text', ''].includes(ty)) return 'not a search box'+ return [ty, [e.getAttribute('name'), e.getAttribute('id'), e.getAttribute('placeholder'), e.getAttribute('aria-label'), e.getAttribute('role')].join(' ')] })()`)+ if (!look) throw new Refused('that search box is not on the page any more')+ if (typeof look === 'string') throw new Refused(`${look}: this harness only ever types into a search box`)+ const [type, about] = look+ if (type !== 'search' && !/search|query|\bq\b|keyword|find|look ?up/i.test(about)) throw new Refused('that field does not look like a search box, so it is left alone')+ if (SECRET_FIELD.test(about)) throw new Refused('that field wants something private')+ await evaluate(`(() => { const e = document.querySelector(${JSON.stringify(cssPath)}); e.focus(); e.value = '' })()`)+ await send('Input.insertText', { text: String(words).slice(0, 200) })+ await evaluate(`(() => { const e = document.querySelector(${JSON.stringify(cssPath)}); e.dispatchEvent(new Event('input', { bubbles: true })) })()`)+ for (const type2 of ['keyDown', 'keyUp']) await send('Input.dispatchKeyEvent', { type: type2, key: 'Enter', code: 'Enter', windowsVirtualKeyCode: 13, nativeVirtualKeyCode: 13, text: type2 === 'keyDown' ? '\r' : undefined })+ await settle(12000)+ return { url: await evaluate('location.href') }+ },/** Type into a field. A field that could hold a secret is refused, whoever asks. */async type(cssPath, text) {const kind = await evaluate(`(() => { const e = document.querySelector(${JSON.stringify(cssPath)}); if (!e) return nulldiff --git a/store/agents/jev-browser/viewer/crawl.mjs b/store/agents/jev-browser/viewer/crawl.mjsindex 9c12cc3f3..56b1059a9 100644--- a/store/agents/jev-browser/viewer/crawl.mjs+++ b/store/agents/jev-browser/viewer/crawl.mjs@@ -8,7 +8,7 @@// On an item page the same single call pulls every field: each field is a choice over the numbered// text blocks the reader found, so the answer IS a piece of text from the page.import { jev } from '../toolchain/jev.mjs'-import { readPage, pageState, blockOptions, blockText, canonical } from './page.mjs'+import { readPage, pageState, blockOptions, blockText, canonical, wallReason, findSearchBox } from './page.mjs'export const LIMITS = { fields: 12, maxPages: 500, maxItems: 2000, linksPerCall: 120 }@@ -44,11 +44,14 @@ export function normalizeJob(raw) {job: {task: short(j.task, 200) || `Collect ${item}`,start, item, fields,+ search: short(j.search, 120),keep: short(j.keep, 300),maxPages: clamp(j.maxPages, 1, LIMITS.maxPages, 25),maxItems: clamp(j.maxItems, 1, LIMITS.maxItems, 60),sameSiteOnly: j.sameSiteOnly !== false,show: j.show !== false,+ // A job that changes starts itself. Nobody should watch an idle screen waiting to press a button.+ autoStart: j.autoStart !== false,hosts: [...new Set(hosts)],},errors,@@ -141,7 +144,24 @@ export async function runJob({ chrome, job, ask, onEvent, stopped = () => falsetry {await chrome.go(listUrl)page = await readPage(chrome)+ // "amazon.com" plus "fencing gloves" is how a person says it. Type it into the site's own box.+ if (listPages === 1 && job.search) {+ const box = findSearchBox(page)+ if (!box) say('trouble', { url: page.url, message: `no search box was found on this page, so "${job.search}" was not searched for. Put the site's own search address in "start" instead.` })+ else {+ say('searching', { words: job.search })+ await chrome.search(box.css, job.search)+ page = await readPage(chrome)+ }+ }} catch (e) { out.errors.push({ url: listUrl, message: String(e.message ?? e) }); say('trouble', { url: listUrl, message: String(e.message ?? e) }); break }+ const wall = wallReason(page)+ if (wall) {+ out.walled = `${new URL(page.url).hostname}: ${wall}`+ out.errors.push({ url: page.url, message: out.walled })+ say('walled', { url: page.url, message: out.walled })+ break+ }out.pagesRead++visited.add(canonical(listUrl))say('read', { url: page.url, title: page.title, links: page.links.length, blocks: page.blocks.length })diff --git a/store/agents/jev-browser/viewer/demosite.mjs b/store/agents/jev-browser/viewer/demosite.mjsindex 9c112c1bd..45e4fe4e7 100644--- a/store/agents/jev-browser/viewer/demosite.mjs+++ b/store/agents/jev-browser/viewer/demosite.mjs@@ -38,7 +38,7 @@ main{max-width:860px;margin:0 auto;padding:24px 28px 60px}.detail dt{color:#5b6676;font-size:13px;margin-top:12px}.detail dd{margin:2px 0 0;font-size:16px;font-weight:600}footer{color:#8a94a2;font-size:12.5px;padding:24px 28px;text-align:center}`const page = (title, body) => `<!doctype html><html lang="en"><head><meta charset="utf-8"><title>${esc(title)}</title><style>${CSS}</style></head><body>-<header><b>Fernhill Jobs</b><a href="/">All roles</a><a href="/about">About</a><a href="/contact">Contact us</a><a href="/login">Sign in</a></header>+<header><b>Fernhill Jobs</b><a href="/">All roles</a><a href="/about">About</a><a href="/contact">Contact us</a><a href="/login">Sign in</a><form action="/" style="margin-left:auto"><input type="search" name="q" placeholder="Search roles" style="padding:6px 10px;border-radius:7px;border:1px solid #2b4257;background:#0f1d2e;color:#fff"></form></header><main>${body}</main><footer>A made-up job board, served on this machine for the Jev Browser harness. None of these roles exist.</footer></body></html>`/** Start the made-up site. Returns { url, close }. */@@ -65,12 +65,16 @@ export async function startDemoSite({ port = 0, perPage = 12, jobs = makeJobs()if (url.pathname === '/login') return send(page('Sign in', '<div class="card"><h2>Sign in</h2><form><p><input name="email" placeholder="Email"></p><p><input type="password" name="password" placeholder="Password"></p><p><button type="submit">Sign in</button></p></form></div>'))if (url.pathname !== '/') return send(page('Not found', '<h1>Not found</h1>'), 404)const p = Math.max(1, Number(url.searchParams.get('page') || 1))- const slice = jobs.slice((p - 1) * perPage, p * perPage)+ // A search is a list page too, so the harness's "search for" can be tried here.+ const q = (url.searchParams.get('q') || '').trim().toLowerCase()+ const found = q ? jobs.filter((j) => `${j.title} ${j.company} ${j.place} ${j.type}`.toLowerCase().includes(q)) : jobs+ const slice = found.slice((p - 1) * perPage, p * perPage)const cards = slice.map((j) => `<div class="card"><h2><a href="/job/${j.id}">${esc(j.title)}</a></h2><p class="meta">${esc(j.company)} · ${esc(j.place)} · ${esc(j.salary)}</p></div>`).join('')- const last = Math.ceil(jobs.length / perPage)- const pager = `<div class="pager">${p > 1 ? `<a href="/?page=${p - 1}">Previous page</a>` : ''}<span class="meta">Page ${p} of ${last}</span>${p < last ? `<a href="/?page=${p + 1}">Next page</a>` : ''}</div>`- send(page(`Fernhill Jobs · page ${p}`, `<h1>Open roles</h1><p class="meta">${jobs.length} made-up roles</p>${cards}${pager}`))+ const last = Math.max(1, Math.ceil(found.length / perPage))+ const q2 = q ? `&q=${encodeURIComponent(q)}` : ''+ const pager = `<div class="pager">${p > 1 ? `<a href="/?page=${p - 1}${q2}">Previous page</a>` : ''}<span class="meta">Page ${p} of ${last}</span>${p < last ? `<a href="/?page=${p + 1}${q2}">Next page</a>` : ''}</div>`+ send(page(`Fernhill Jobs · page ${p}`, `<h1>${q ? `Roles matching “${esc(q)}”` : 'Open roles'}</h1><p class="meta">${found.length} made-up role${found.length === 1 ? '' : 's'}</p>${cards}${pager}`))})await new Promise((r) => server.listen(port, '127.0.0.1', r))return { url: `http://127.0.0.1:${server.address().port}/`, port: server.address().port, jobs, async close() { server.closeAllConnections?.(); await new Promise((r) => server.close(r)) } }diff --git a/store/agents/jev-browser/viewer/index.html b/store/agents/jev-browser/viewer/index.htmlindex 1ce224735..63121a9b3 100644--- a/store/agents/jev-browser/viewer/index.html+++ b/store/agents/jev-browser/viewer/index.html@@ -26,6 +26,7 @@<div class="stat"><label>cost so far</label><span id="sCost">$0</span></div></div><div class="controls">+ <button id="editBtn" title="Change what to collect">Change the job</button><button id="startBtn" class="primary">Start</button><button id="stopBtn" class="hidden">Stop</button><button id="downloadBtn" title="Every row Jev collected, with its confidence">Download results.csv</button>@@ -43,8 +44,30 @@<div id="screenWrap" class="screen"><img id="screen" alt=""><div id="screenIdle" class="screen-idle">- <b>A real Chrome, driven by Jev</b>- <span id="screenIdleSub">Press Start. A browser window opens and Jev reads real pages: one call per page judges every link on it and pulls every field at once.</span>+ <form id="askForm" class="ask">+ <div class="ask-head"><b>What do you want off the web?</b><span>Fill this in and it goes. A real Chrome opens and reads the pages for you.</span></div>+ <label class="ask-row"><span>Start on</span>+ <input id="askStart" type="text" spellcheck="false" autocomplete="off" placeholder="books.toscrape.com/catalogue/category/books/travel_2/index.html">+ </label>+ <label class="ask-row"><span>Search for <i>optional</i></span>+ <input id="askSearch" type="text" spellcheck="false" autocomplete="off" placeholder="leave empty if the address is already the list you want">+ </label>+ <label class="ask-row"><span>Each one is</span>+ <input id="askItem" type="text" spellcheck="false" autocomplete="off" placeholder="a book for sale">+ </label>+ <label class="ask-row tall"><span>Columns<i>one per line</i></span>+ <textarea id="askColumns" spellcheck="false" placeholder="the title the price how many copies are available Is it in stock?"></textarea>+ </label>+ <label class="ask-row"><span>Only keep <i>optional</i></span>+ <input id="askKeep" type="text" spellcheck="false" autocomplete="off" placeholder="only the ones under £30">+ </label>+ <div class="ask-go">+ <label class="ask-n">at most <input id="askMax" type="number" min="1" max="500" value="25"> of them</label>+ <button type="button" id="askDemo" title="Walk the small made-up job board this harness serves on your machine">Try the practice site</button>+ <button type="submit" class="primary" id="askSubmit">Go</button>+ </div>+ <div class="ask-msg" id="askMsg"></div>+ </form><div class="screen-note" id="chromeNote"></div></div></div>diff --git a/store/agents/jev-browser/viewer/page.mjs b/store/agents/jev-browser/viewer/page.mjsindex 04a055734..fb64031a6 100644--- a/store/agents/jev-browser/viewer/page.mjs+++ b/store/agents/jev-browser/viewer/page.mjs@@ -61,7 +61,8 @@ export const READER = `(() => {const type = (e.getAttribute('type') || '').toLowerCase()const label = labelOf(e) || tidy(e.name || e.id, MAX_LABEL)if (!label) continue- controls.push({ n: mark(e), label, tag, type, inForm: !!e.closest('form'), box })+ const attr = (k) => tidy(e.getAttribute(k) || '', 60)+ controls.push({ n: mark(e), label, tag, type, name: attr('name'), placeholder: attr('placeholder'), aria: attr('aria-label'), id: attr('id'), inForm: !!e.closest('form'), box })}// ---- blocks: the text a value could be --------------------------------------------------------@@ -156,6 +157,29 @@ export function blockText(page, pick) {return m[2] === undefined ? block.text : block.parts?.[Number(m[2])] ?? block.text}+const WALL = /sorry[!,. ]{0,3}something went wrong|are you a (robot|human)|unusual traffic|access denied|permission denied|request blocked|captcha|verify (you are|your) human|enable javascript|checking your browser|rate limit|too many requests|403 forbidden|pardon our interruption/i+/**+ * Did the site serve its page, or a wall? A bot wall has almost nothing on it, or says so outright.+ * Worth naming: a run that quietly collects nothing looks like a broken tool, and it is not.+ * @returns {string|null} what to tell the person, or null when the page looks real+ */+export function wallReason(page) {+ const hit = `${page.title} ${page.text.slice(0, 600)}`.match(WALL)+ if (hit) return `the site answered with a block page ("${hit[0]}") instead of its own`+ if (page.links.length < 3 && page.blocks.length < 4) return 'the page came back nearly empty, which usually means the site refused an automated browser or needs a sign-in'+ return null+}++/** The search box a site puts on its pages, or null. */+export function findSearchBox(page) {+ const fields = page.controls.filter((c) => c.tag === 'input' || c.tag === 'textarea')+ const about = (c) => `${c.type} ${c.name} ${c.id} ${c.placeholder} ${c.aria} ${c.label}`+ return fields.find((c) => c.type === 'search')+ ?? fields.find((c) => /search|query|keyword|find/i.test(about(c)) && !/pass|card|email|postcode|zip/i.test(about(c)))+ ?? fields.find((c) => /^q$|^s$|^query$/i.test(c.name))+ ?? null+}+const CLEAN = /(^|[?&])(utm_[^=]+|fbclid|gclid|ref|source)=[^&]*/gi/** One address, tidied, so the same page is not visited twice under two names. */export function canonical(url) {diff --git a/store/agents/jev-browser/viewer/studio.css b/store/agents/jev-browser/viewer/studio.cssindex 06e787fa0..a339e6724 100644--- a/store/agents/jev-browser/viewer/studio.css+++ b/store/agents/jev-browser/viewer/studio.css@@ -88,3 +88,28 @@ td.addr a:hover { color: var(--accent); text-decoration: underline; }.hidden { display: none; }@media (max-width: 1100px) { main { grid-template-columns: 1fr; height: auto; overflow: auto; } #rail { max-height: none; } }++/* ---- the pane's front door ---- */+.ask { width: min(620px, 92%); display: flex; flex-direction: column; gap: 9px; text-align: left; }+.ask-head { display: flex; flex-direction: column; gap: 3px; margin-bottom: 4px; }+.ask-head b { font-size: 19px; color: var(--ink); }+.ask-head span { font-size: 12px; color: var(--dim); }+.ask-row { display: grid; grid-template-columns: 118px 1fr; align-items: center; gap: 10px; }+.ask-row.tall { align-items: start; }+.ask-row > span { font-size: 11.5px; color: var(--dim); text-align: right; line-height: 1.3; }+.ask-row > span i { display: block; font-style: normal; font-size: 9.5px; color: var(--faint); }+.ask-row input, .ask-row textarea { width: 100%; box-sizing: border-box; padding: 8px 10px; border-radius: 9px; border: 1px solid var(--line2); background: #0b0d14; color: var(--ink); font: 12.5px var(--mono); outline: none; }+.ask-row textarea { height: 88px; resize: vertical; line-height: 1.5; }+.ask-row input:focus, .ask-row textarea:focus { border-color: var(--accent); }+.ask-row input::placeholder, .ask-row textarea::placeholder { color: var(--faint); }+.ask-go { display: flex; align-items: center; gap: 10px; margin-left: 128px; margin-top: 2px; }+.ask-n { font-size: 11.5px; color: var(--dim); display: flex; align-items: center; gap: 6px; }+.ask-n input { width: 64px; padding: 6px 8px; border-radius: 8px; border: 1px solid var(--line2); background: #0b0d14; color: var(--ink); font: 12px var(--mono); outline: none; }+.ask-go button { padding: 8px 16px; }+.ask-go .primary { margin-left: auto; }+.ask-msg { margin-left: 128px; min-height: 15px; font-size: 11.5px; color: var(--dim); }+.ask-msg.bad { color: var(--bad); }+.screen.asking { flex: 1 1 100%; }+.screen-idle { overflow: auto; align-items: center; justify-content: flex-start; padding: 22px 30px; }+.ask-row textarea { height: 90px; }+.ask { gap: 8px; }diff --git a/store/agents/jev-browser/viewer/studio.js b/store/agents/jev-browser/viewer/studio.jsindex 4df0428b3..6ec9efc01 100644--- a/store/agents/jev-browser/viewer/studio.js+++ b/store/agents/jev-browser/viewer/studio.js@@ -26,6 +26,7 @@ function toast(msg, bad) {function renderJob() {const box = $('jobBody')box.textContent = ''+ if (!S.fields.length) { box.append(h('div', 'job-task', 'No job yet.'), h('div', 'job-line dim', 'Say what you want in the form on the left, or ask the agent on the right.')); return }box.append(h('div', 'job-task', S.task))const start = h('div', 'job-line')start.append(h('b', '', 'starts at '), h('span', 'mono', S.demoUrl && S.start === S.demoUrl ? 'a made-up job board on this machine' : S.start || 'nowhere yet'))@@ -112,7 +113,7 @@ function renderFeed() {row.append(h('span', 'feed-dot'), h('span', 'feed-text', e.text))box.append(row)}- if (!S.feed.length) box.append(h('div', 'dim small', 'Press Start.'))+ if (!S.feed.length) box.append(h('div', 'dim small', S.fields.length ? 'Press Start.' : 'Fill in the form on the left and it goes.'))}// ---- the top bar and the state -------------------------------------------------------------------------@@ -129,17 +130,20 @@ function applyState(s) {const first = !Sconst sameFields = S && S.fields.length === s.fields.length && S.fields.every((f, i) => f.id === s.fields[i].id && f.name === s.fields[i].name)S = s- $('taskLine').textContent = s.task- $('cfgError').classList.toggle('hidden', !(s.error || s.jevError))- $('cfgError').textContent = s.error || (s.jevError ? `Jev: ${s.jevError}` : '')+ $('taskLine').textContent = !s.fields.length ? 'no job yet — say what you want below' : s.task+ const noJobYet = !s.fields.length && !s.rows.length+ const problem = (noJobYet ? '' : s.error) || (s.jevError ? `Jev: ${s.jevError}` : '')+ $('cfgError').classList.toggle('hidden', !problem)+ $('cfgError').textContent = problemif (!sameFields) { renderHead(); shownRows = 0; $('resultsBody').textContent = '' }renderJob(); renderRows(); renderLinks(); renderFeed(); renderTop()- const idle = !s.here.url && !s.rows.length- $('screenIdle').classList.toggle('hidden', !idle)- $('chromeNote').textContent = !s.chrome.found+ if (first) showAsk(!s.rows.length && s.phase === 'idle')+ else if (askOpen && s.phase === 'running') showAsk(false)+ $('chromeNote').textContent = s.walled ? s.walled + '. This harness does not work around a block. Try a site that allows reading, or open the page yourself in the window and see what it wants.'+ : !s.chrome.found? 'Google Chrome was not found on this machine. Install it, or set CHROME_PATH to where it is.': s.client === 'mock' ? 'No Jev key yet, so an offline stand-in will answer. It only matches words: good enough to watch, not good enough to act on. Paste a key in the panel on the right.' : ''- $('chromeNote').className = 'screen-note' + (!s.chrome.found ? ' bad' : s.client === 'mock' ? ' warn' : '')+ $('chromeNote').className = 'screen-note' + (!s.chrome.found || s.walled ? ' bad' : s.client === 'mock' ? ' warn' : '')if (document.activeElement !== $('urlInput')) $('urlInput').value = s.here.url || ''$('urlInput').placeholder = s.chrome.open ? 'where the browser is' : 'the browser is not open yet'if (first) $('screen').classList.toggle('hidden', true)@@ -158,6 +162,50 @@ function step() {requestAnimationFrame(step)}+// ---- the front door -----------------------------------------------------------------------------------------+// The pane takes the job itself. Before this the only way in was the agent or the JSON file, and a+// person looking at the pane could not tell what to do.+let askOpen = false+function showAsk(on) {+ askOpen = on+ $('screenIdle').classList.toggle('hidden', !on)+ $('screenWrap').classList.toggle('asking', on)+ document.querySelector('.results-head').classList.toggle('hidden', on && !(S?.rows.length))+ document.querySelector('.table-wrap').classList.toggle('hidden', on && !(S?.rows.length))+ if (on) {+ $('askStart').value = S?.demoUrl && S.start === S.demoUrl ? '' : (S?.start ?? '')+ $('askSearch').value = S?.search ?? ''+ $('askItem').value = S?.item && S.item !== 'one of the things to collect' ? S.item : ''+ $('askColumns').value = (S?.fields ?? []).map((f) => f.ask).join('\n')+ $('askKeep').value = S?.keep ?? ''+ $('askMax').value = S?.fields.length ? S.maxItems : 25+ $('askMsg').textContent = ''+ setTimeout(() => $('askStart').focus(), 30)+ }+}+async function sendJob(over = {}) {+ const body = {+ start: $('askStart').value.trim(), search: $('askSearch').value.trim(), item: $('askItem').value.trim(),+ columns: $('askColumns').value, keep: $('askKeep').value.trim(), maxItems: Number($('askMax').value) || 25,+ ...over,+ }+ $('askMsg').className = 'ask-msg'+ $('askMsg').textContent = 'Setting the job…'+ $('askSubmit').disabled = true+ const r = await post('setJob', body)+ $('askSubmit').disabled = false+ if (!r.ok) { $('askMsg').className = 'ask-msg bad'; $('askMsg').textContent = r.error || 'that did not work'; return }+ showAsk(false)+ toast('Off it goes. The browser is opening.')+}+$('askForm').addEventListener('submit', (e) => { e.preventDefault(); sendJob() })+$('askDemo').addEventListener('click', () => sendJob({+ start: 'demo', search: '', item: 'a job posting',+ columns: 'the job title\nthe name of the company hiring\nthe pay or salary range\nwhere the job is based\nCan this job be done fully remotely?',+ keep: '',+}))+$('editBtn').addEventListener('click', () => showAsk(!askOpen))+// ---- controls ---------------------------------------------------------------------------------------------$('startBtn').addEventListener('click', async () => {$('startBtn').disabled = true@@ -191,7 +239,7 @@ es.addEventListener('shot', (e) => {const img = $('screen')img.src = `data:image/jpeg;base64,${s.jpegBase64}`img.classList.remove('hidden')- $('screenIdle').classList.add('hidden')+ if (!askOpen) $('screenIdle').classList.add('hidden') // a live page must not shove the form away mid-typing})window.addEventListener('jev-connected', () => toast('Connected. The next page is read by the real model.'))requestAnimationFrame(step)diff --git a/store/agents/jev-browser/viewer/viewer.mjs b/store/agents/jev-browser/viewer/viewer.mjsindex 98c486780..fb2743afb 100644--- a/store/agents/jev-browser/viewer/viewer.mjs+++ b/store/agents/jev-browser/viewer/viewer.mjs@@ -32,7 +32,8 @@ export async function startBrowserViewer({ workspace, port = 0, show = null } =// ---- what the pane sees ---------------------------------------------------------------------const view = () => ({- task: job.task, item: job.item, start: job.start, fields: job.fields.map((f) => ({ id: f.id, name: f.name, ask: f.ask, type: f.type })),+ task: job.task, item: job.item, start: job.start, search: job.search, fields: job.fields.map((f) => ({ id: f.id, name: f.name, ask: f.ask, type: f.type })),+ walled: lastRun?.walled ?? null,keep: job.keep, maxItems: job.maxItems, maxPages: job.maxPages, limits: LIMITS,error: configError, jevError, client: liveRoute() ?? 'mock', jevSays: describeCredentials(),chrome: { found: !!chromePath, open: !!chrome?.alive },@@ -77,6 +78,7 @@ export async function startBrowserViewer({ workspace, port = 0, show = null } =if (configError) findings.push({ severity: 'error', kind: 'job', ref: MARKER, message: configError })if (jevError) findings.push({ severity: 'warning', kind: 'jev', message: jevError })if (!chromePath) findings.push({ severity: 'error', kind: 'chrome', message: 'Google Chrome was not found on this machine. Install it, or set CHROME_PATH.' })+ if (lastRun?.walled) findings.push({ severity: 'error', kind: 'walled', message: `${lastRun.walled}. This is the site refusing an automated browser, not a fault here. Do not retry it: pick a site that allows reading.` })if (liveRoute() === null && rows.length) findings.push({ severity: 'warning', kind: 'jev', message: 'These rows came from the offline stand-in, not from Jev. They are not good enough to act on.' })for (const f of filled) if (f.thin) findings.push({ severity: 'warning', kind: 'field', ref: f.id, message: `"${f.name}" was found on only ${f.found} of ${f.of} pages. Reword what it asks for, or the value may not be on those pages.` })for (const e of (lastRun?.errors ?? []).slice(0, 3)) findings.push({ severity: 'warning', kind: 'page', ref: e.url, message: clean(e.message) })@@ -93,6 +95,7 @@ export async function startBrowserViewer({ workspace, port = 0, show = null } =],run: {client: liveRoute() ?? 'mock', task: job.task, start: job.start, item: job.item,+ walled: lastRun?.walled ?? null,rows: rows.length, pages: counters.pages, linksJudged: counters.links, calls: counters.calls,questions: counters.questions, costUsd: Math.round(counters.costUsd * 1e6) / 1e6,elapsedMs: startedAt ? (finishedAt || Date.now()) - startedAt : 0, fields: filled,@@ -218,6 +221,33 @@ export async function startBrowserViewer({ workspace, port = 0, show = null } =return { phase }}case 'export': { saveResults(); return { file: RESULTS, rows: rows.length } }+ // The pane's own form. It writes browse.json exactly as the agent would, so the file stays+ // the one place a job lives, and the recipe is the same however it was made.+ case 'setJob': {+ const columns = String(body.columns ?? '').split('\n').map((l) => l.trim()).filter(Boolean).slice(0, LIMITS.fields)+ if (!columns.length) return { ok: false, error: 'Say what you want for each one, one per line.' }+ const start = String(body.start ?? '').trim()+ if (!start) return { ok: false, error: 'Put in the address of the page to start on.' }+ const next = {+ task: String(body.task ?? '').trim() || `${columns[0]} for every ${String(body.item ?? 'thing').trim()}`,+ start: /^[a-z]+:\/\//i.test(start) || /^demo$/i.test(start) ? start : `https://${start}`,+ search: String(body.search ?? '').trim(),+ item: String(body.item ?? '').trim() || 'one of the things on this page',+ fields: columns.map((ask) => (/^(is|are|does|do|can|has|have|will|should|was|were)\b/i.test(ask) || ask.endsWith('?')+ ? { ask, type: 'yesno', name: ask.replace(/\?$/, '').slice(0, 40) }+ : { ask, name: ask.slice(0, 40) })),+ keep: String(body.keep ?? '').trim(),+ maxItems: Math.max(1, Math.min(LIMITS.maxItems, Math.floor(Number(body.maxItems) || 25))),+ maxPages: Math.max(1, Math.min(LIMITS.maxPages, Math.floor(Number(body.maxPages) || 5))),+ sameSiteOnly: true, show: true,+ }+ const { errors } = normalizeJob(next)+ if (errors.length) return { ok: false, error: errors.join('; ') }+ const f = join(workspace, MARKER)+ writeFileSync(f + '.tmp', JSON.stringify(next, null, 2) + '\n'); renameSync(f + '.tmp', f)+ applyJob(next) // this starts it+ return { ok: true, start: next.start, fields: next.fields.length }+ }case 'openHere': {// The person asks the browser to go somewhere, from the pane. Same rules as everything else.if (!chrome?.alive) { const o = await openBrowser(); if (o.ok === false) return o }@@ -229,13 +259,26 @@ export async function startBrowserViewer({ workspace, port = 0, show = null } =}// ---- the job file --------------------------------------------------------------------------------+ // What makes a job a different job. A changed title or budget is not worth a new run.+ const jobPrint = (j) => JSON.stringify([j.start, j.search, j.item, j.keep, j.fields.map((f) => [f.id, f.ask, f.type, f.levels])])+ let lastPrint = null, autoTimer = null+function applyJob(raw, fresh = false) {const { job: next, errors } = normalizeJob(raw)configError = errors.length ? `${MARKER}: ${errors.join('; ')}` : nullif (!configError || fresh || !job.fields.length) job = nextif (demo && /^demo$/i.test(job.start)) job = { ...job, start: demo.url, hosts: [...new Set([...job.hosts, '127.0.0.1', 'localhost'])] }if (chrome) chrome.allowedHosts = job.sameSiteOnly ? [...job.hosts, ...(demo ? ['127.0.0.1', 'localhost'] : [])] : []+ const print = jobPrint(job)+ const changed = lastPrint !== null && print !== lastPrint+ lastPrint = printpush(); verdictSoon()+ // Somebody just asked for something different. Go and get it, rather than waiting to be told+ // twice: the person who typed it, or the agent that wrote the file for them, has already said so.+ if (changed && !configError && job.autoStart && !running) {+ clearTimeout(autoTimer)+ autoTimer = setTimeout(() => { if (!running && !configError) start().catch(() => {}) }, 400)+ }}mkdirSync(join(workspace, '.harness'), { recursive: true })@@ -258,7 +301,7 @@ export async function startBrowserViewer({ workspace, port = 0, show = null } =async close() {stopFlag = trueawait running- stopShots(); clearTimeout(verdictTimer)+ stopShots(); clearTimeout(verdictTimer); clearTimeout(autoTimer)watcher.close()await closeBrowser()await demo?.close()diff --git a/store/showcase/jev-browser/say-what-you-want.jpg b/store/showcase/jev-browser/say-what-you-want.jpgnew file mode 100644index 000000000..36f762f47Binary files /dev/null and b/store/showcase/jev-browser/say-what-you-want.jpg differ