Skip to content

Releases

v2.0.0

Choose a tag to compare

@alejandroqh alejandroqh released this 12 Oct 07:12
v2.0.0
a018250

Added

  • browser39 browse an elinks-style terminal viewer for reading pages as markdown. Opens in reader mode (main content), with numbered links you follow by Tab/Enter or by number, back/forward history, find (/), a table of contents (t), and copying the current section (y), whole page (Y) or a URL (c) to the clipboard (pbcopy on macOS, the Windows clipboard API, wl-copy/xclip/xsel on Linux, or OSC 52 over SSH). --section opens at (or prints only) a section, --full shows the whole page, and output is plain markdown when piped or with --print. Copied/printed markdown ends with [n]: url reference definitions so links survive pasting.
  • Mouse support in browse: click a link to follow it, hover to highlight it and see its URL, scroll with the wheel, and click in the contents list to jump; right- or middle-click copies the section under the pointer (or a contents entry's section). m toggles mouse capture so the terminal's own text selection works.
  • Tables in browse are drawn as aligned grids sized to the terminal width, with cells wrapping inside their columns; copies and piped output keep the original markdown.
  • Copying in browse briefly highlights what was copied: the section's rows (y, also from the contents list), the whole screen (Y), the link (c), or the title bar for the page URL.
  • BrowserService::render_current re-renders the current page with different options without refetching.

Changed

  • Breaking (library): FetchOptions has two new public fields, keep_repeated_links and main_content, used by the viewer. They default to false and are not part of the JSONL or MCP protocol, but code that builds FetchOptions with a struct literal must add them or use ..Default::default().

Fixed

  • HTML→ markdown no longer glues words to the preceding inline element: <b>Artemis II</b> (April gave **Artemis II**(April and <a>flyby</a> of gave [flyby](…)of. Whitespace at the edges of <b>/<em>/<a> now sits outside the markers and brackets (to<a> Home </a>now gave to[Home](…)now).
  • Table cells no longer include the text of inline <style>/<script> elements (Wikipedia infoboxes leaked CSS), and <br>, list items, paragraphs, headings and other blocks inside a cell are separated by spaces instead of running together.
  • RSS/Atom feeds honour compact_links: items render as ## [title][n] with numbering that matches the returned links list.
  • Links inside <blockquote> follow compact_links and link dedup like the rest of the page; in compact mode they were emitted inline and missing from the links list.
  • A very large max_tokens or offset no longer overflows when computing the truncation point.

v1.9.0

Choose a tag to compare

@alejandroqh alejandroqh released this 11 Oct 18:18
v1.9.0
2a43ecb

Thanks to @viirak for reporting the server/discover crash.

Fixed

  • MCP stdio server no longer exits on requests sent before initialize (#3). Clients on the official Go SDK >= 1.7 (e.g. Charm Crush) probe with server/discover first; browser39 now replies -32601 Method not found so they fall back to initialize, instead of exiting with rc=1. Other unknown methods get the same reply, known methods get -32600 Server not initialized, and stray notifications are ignored until the handshake completes.
  • A client closing stdin before initializing is now a clean shutdown (rc=0) rather than an MCP server error.

Changed

  • rmcp bumped from 1.3 to 1.8 (minimum now 1.8). Tool input schemas no longer carry a top-level title (e.g. "ClickParams"); properties, types, and required fields are unchanged.
  • #[tool_handler] now points at the stored tool_router field, since rmcp-macros 1.8 otherwise rebuilds the router on every tools/list and tools/call.

v1.8.0

Choose a tag to compare

@alejandroqh alejandroqh released this 20 May 20:03
c264ae4

Thanks to @janpauldahlke for proposing the library target.

Added

  • Rust library target browser39 now ships as a library crate in addition to the CLI binary and MCP server. Downstream Rust projects can depend on it with browser39 = "1.8"
    and drive a headless session programmatically via BrowserService. The crate root re-exports the common entry points: BrowserService, Config, PersistenceMode,
    FetchOptions, HttpMethod, SessionStore, InMemoryStore, and create_session_store.
  • src/lib.rs exposing cli, core, mcp, and service as public modules for callers that need finer-grained access (custom session stores, alternate MCP transports, direct
    page rendering).

Changed

  • src/main.rs consumes the new lib crate instead of redeclaring its modules, so the bin and lib targets share a single compilation of core/service/cli/mcp rather than
    building each module twice.

Fixed

  • 11 clippy::collapsible_if warnings across core::dom_script::ops and core::feed_to_md, plus a clippy::new_without_default warning on core::http_client::CookieJar — cargo clippy --lib --bin browser39 is now clean.

v1.7.1

Choose a tag to compare

@alejandroqh alejandroqh released this 07 May 08:59
7576c14

Added

  • browser39 search <query> CLI command — one-shot web search using the configured search engine, output as markdown (default) or JSON via --output json. Mirrors the ergonomics of browser39 fetch so agents can pipe search results into a shell pipeline without spinning up an MCP session.

Changed

  • One-shot CLI plumbing factored into shared make_one_shot_service and fetch_and_print helpers so fetch and search share session setup, output formatting, and error handling.

v1.7.0

Choose a tag to compare

@alejandroqh alejandroqh released this 29 Apr 20:51
adf8ecb

Added

  • Decision-grade MCP tool descriptions — every browser39_* tool now ships a structured description (purpose / USE WHEN / NOT WHEN / Effect class / Common failures with repair moves) so agents can pick the right tool before inspecting parameters and self-correct on errors. Effect classes follow a read | local-mutate | external-mutate | irreversible taxonomy.
  • Selector reference doc (docs/selectors.md) — canonical CSS3-only cheat sheet, stable-vs-fragile guidance, and pitfalls (no XPath, no :contains()); every selector field doc-comment now points to it.
  • MCP tool schema snapshot test (src/mcp/snapshots/tool_schema.snap) — locks the rendered tool list so unintended description or schema changes surface as a reviewable diff. Update intentionally with UPDATE_SNAPSHOTS=1 cargo test tool_schema_snapshot.

Changed

  • Param-level doc comments rewritten across FetchParams, ClickParams, DomQueryParams, FillParams, FillFieldParam, SubmitParams: secret-handle hints on credential values, index/text disambiguation on click, value/outerHTML/textContent added to documented attr options, AUTH_PROFILE_DOMAIN_MISMATCH wired into auth_profile docs.
  • docs/jsonl-protocol.md and docs/install-cli.md: replaced stale boa_engine references with deno_core (V8) and added a top-level pointer to the selectors doc.

Fixed

  • Documentation drift: JSONL protocol doc previously described a pure-Rust JS engine surface; now reflects the actual deno_core sandbox capabilities (full DOM API, events, console capture).

v1.6.3

Choose a tag to compare

@alejandroqh alejandroqh released this 25 Apr 19:51
bcb2570

Added

  • RSS / Atom / RDF feed rendering — XML feeds (RSS 2.0, RSS 1.0/RDF, Atom 1.0) are now detected by Content-Type (with body sniff fallback for mislabeled servers) and converted to clean, token-optimized markdown instead of the previous run-on-text result. Each item renders as ## [title](link) followed by a date · category meta line and the description; the channel/feed title becomes the H1.
  • New src/core/feed_to_md.rs module with 12 unit tests covering all three feed formats, namespace prefixes (dc:, rdf:), CDATA-wrapped HTML descriptions, Atom rel="alternate" link routing, and graceful partial-parse on malformed XML.
  • New dependency: quick-xml = "0.37".

Changed

  • Feed dispatch runs before the meta-refresh redirect loop — XML feeds skip the wasted scan since they never carry HTML meta-refresh.
  • estimate_tokens, truncate_markdown, and collapse_inline_whitespace in html_to_md are now pub(crate) so the feed module can reuse them.

Fixed

  • core::config::tests::test_load_full_config no longer hardcodes a stale user-agent version that broke on every release bump — the test now exercises the default-user-agent path it was always meant to cover.

v1.6.1

Choose a tag to compare

@alejandroqh alejandroqh released this 12 Apr 16:21
7192105

Added

  • npm distribution — npm install @aquintanar/browser39 installs the correct platform binary automatically. Supports macOS (arm64, x64), Linux (x64, arm64), and Windows (x64).

Fixed

  • Removed unused SEL_HEAD static (dead code warning)
  • Updated yanked fastrand v2.4.0 to v2.4.1

v1.6.0

Choose a tag to compare

@alejandroqh alejandroqh released this 05 Apr 10:48
ca01c8c

Changed

  • JavaScript engine migrated from boa_engine to deno_core (V8) — full ECMAScript compliance, JIT compilation, and the foundation for SPA support (React/Vue/Angular)
  • DOM shim architecture redesigned: Rust #[op2] ops for data access + JS bootstrap for object wrappers (replaced 3,650 lines of boa closures with ~970 lines of ops + ~300 lines of JS)
  • Event handler and setTimeout errors are now logged to console_output instead of silently swallowed
  • serde_v8 used for V8-to-JSON conversion (replaces hand-rolled converter)

v1.5.0

Choose a tag to compare

@alejandroqh alejandroqh released this 04 Apr 21:37
v1.5.0
6a84055

Added

  • Full JavaScript DOM API — massively expanded the JS sandbox beyond basic querySelector:
    • DOM traversal: parentElement, parentNode, children, childNodes, childElementCount, firstChild, lastChild, firstElementChild, lastElementChild, nextSibling, previousSibling, nextElementSibling, previousElementSibling
    • DOM lookup: getElementById, getElementsByClassName, getElementsByTagName, getElementsByName, document.forms, document.links
    • DOM mutation: createElement, createTextNode, appendChild, removeChild, insertBefore, element.remove(), setAttribute, removeAttribute, textContent setter, innerHTML setter
    • Element properties: matches(selector), closest(selector), contains(node), hasAttribute, classList (contains/length/item), dataset (data-* to camelCase), nodeType, nodeName, disabled, checked, hidden, type, name, src, alt, placeholder
    • Event system: addEventListener, removeEventListener, dispatchEvent with listener storage; new Event, new CustomEvent, new MouseEvent, new KeyboardEvent, new InputEvent, new FocusEvent constructors
    • Console: console.log/warn/error/info/debug — output captured and returned in console_output field
    • Timers: setTimeout (synchronous execution), setInterval/clearInterval (no-op), requestAnimationFrame (synchronous)
    • Utilities: atob/btoa (base64), getComputedStyle (stub), MutationObserver (no-op stub)
  • --version CLI flag — browser39 --version prints the version
  • Config version tracking — config.toml now includes a version field; auto-updated on load when the binary version changes

Changed

  • JS sandbox internals refactored from single file (dom_script.rs) into dom_script/ submodule (mod, element, document, window, events, convert) for maintainability
  • DOM backing migrated from Rc<Html> to Rc<RefCell<Html>> to support mutation
  • Mutated DOM is serialized back and stored in session state after script execution
  • Default user-agent now matches binary version (browser39/1.5.0 instead of browser39/0.1)
  • MCP tool descriptions expanded to document JS capabilities for LLMs
  • DomQueryParams.script field doc now lists every available DOM API
  • Plugin manifests updated to 1.5.0

v1.1.0

Choose a tag to compare

@alejandroqh alejandroqh released this 04 Apr 17:30
v1.1.0
d6e958b

Added

  • 10 MCP config management tools — agents can now manage browser39's configuration directly via MCP:
    • browser39_config_show — view config with sensitive values masked (never exposes raw file)
    • browser39_config_set — set scalar settings (search engine, timeouts, session defaults)
    • browser39_config_auth_set / browser39_config_auth_delete — manage auth profiles (credentials stored securely, never returned via MCP)
    • browser39_config_cookie_set / browser39_config_cookie_delete — manage preloaded cookies
    • browser39_config_storage_set / browser39_config_storage_delete — manage preloaded storage entries
    • browser39_config_header_set / browser39_config_header_delete — manage default header rules
  • Config changes are saved to disk atomically and take effect immediately (live reload)
  • Security config changes (redaction patterns, sensitive cookie names) are applied to the running redaction engine without restart

Changed

  • Release binaries now use versionless names (browser39-macos-arm64 instead of browser39-v1.0.0-macos-arm64) for stable download URLs
  • Install prompts simplified — direct binary download from GitHub releases, no Rust toolchain required
  • Config structs now implement Serialize for TOML round-tripping
  • Config::resolve() is now public for use after config mutations

Fixed

  • build.sh restored (accidentally deleted in v1.0.0)
⌂ 换网址