Skip to content

Releases

v0.4.12

Choose a tag to compare

@github-actions github-actions released this 29 Nov 02:56

Prebuilt standalone Microsoft OneNote binary (onenote) — CLI, TUI, HTTP API, and MCP server.

What's Changed

MCP Modularization + 2025 Annotations, HTTP Contract Tests & Zero-Node Installers

  • MCP 2025 Tool Definitions & Modularization: Split monolithic src/mcp.rs into src/mcp/{mod,catalog,args,read,write}.rs and added full MCP 2025 annotations + strict additionalProperties: false across all 20 tools.
  • HTTP API Contract Tests & Cycle Cuts: Added 5 live-loopback HTTP contract tests in src/serve.rs (auth, offline SQLite reads, Origin/Host guards, 404), broke storage/onenote -> storage/mod and daemon -> cli/runtime cycles, pruned dead helpers, and added .dockerignore (352 passing tests).
  • Zero-Node Distribution: Documented Homebrew (brew install bitefoundry/tap/onenote), SHA256-verified shell (curl -fsSL https://bitefoundry.dev/i | sh -s onenote), and PowerShell (bitefoundry.dev/w) install methods.

Full Changelog: v0.4.11...v0.4.12

v0.4.11

Choose a tag to compare

@github-actions github-actions released this 27 Nov 10:17

Prebuilt standalone Microsoft OneNote binary (onenote) — CLI, TUI, HTTP API, and MCP server.

What's Changed

Performance Optimization Suite (SQLite/FTS5, Async Concurrency, TUI Cache & Pixel Pipeline)

  • SQLite/FTS5 & Async Pipeline: Migrated onenote_fts to rowid-indexed deletes (O(N²) → O(log N)), wired prepare_cached across 60 storage statements, offloaded blocking storage calls in serve.rs/sync.rs to spawn_blocking, and replaced chunked join_all HoL barriers in graph/onenote.rs with bounded buffer_unordered streams.
  • Parser & TUI: Promoted Selector::parse to LazyLock, rewrote unescape_basic_xml_entities to single-pass Cow, eliminated per-frame deep clones of OnenotePageDetail and RenderedTerminalImage with a generation-keyed CanvasRenderCache, fixed 2-pass html_preview cache thrashing, and deferred viewport_pixel_payload in tui.rs.
  • Pixel Engine: Upgraded Sixel quantization to flat 32K histogram + 5-5-5 LUT + 2-row i16 dithering + fast ASCII RLE, switched PNG encoding to Fast/NoFilter (fdeflate), and enabled opt-level = 3 for codec/pixel crates.

Full Changelog: v0.4.10...v0.4.11

v0.4.10

Choose a tag to compare

@github-actions github-actions released this 27 Nov 09:04

Prebuilt standalone Microsoft OneNote binary (onenote) — CLI, TUI, HTTP API, and MCP server.

What's Changed

Modular Architecture, Cycle Cuts & Terminal Safety

  • Terminal & Agent Safe-Output (src/safe_text.rs): Sanitized untrusted OneNote notebook/section/page titles, bodies, and search snippets rendered to CLI terminal output against ANSI/VT100 escape sequences (CSI/OSC/DCS/C1), C0/C1 control characters, Unicode Bidi overrides, and invisible Unicode Tag characters (U+E0000..=U+E007F), while preserving raw --json and --format xhtml output.
  • Supply Chain & Packaging: Added [package.metadata.binstall] for cargo-binstall, deny.toml + .github/workflows/audit.yml (cargo-deny CI), and refs/tags/v tag guards on publish/release jobs.
  • Codebase Modularization: Decomposed src/cli.rs, src/ui/app.rs (handle_ui_msg 347L → 138L), and E2E suites (mock_graph_e2e, contract_e2e) into domain submodules and cut 2 ui/overlays → AppState cycles (context_menu, attachments).

Full Changelog: v0.4.9...v0.4.10

v0.4.9

Choose a tag to compare

@github-actions github-actions released this 27 Nov 01:50

Prebuilt standalone Microsoft OneNote binary (onenote) — CLI, TUI, HTTP API, and MCP server.

What's Changed

Binary Size, Build Diet & Rendering Consistency

  • Smaller Release Binaries: Enabled opt-level = "s" and panic = "abort" in [profile.release], cutting release binary sizes by ~40% with zero feature loss.
  • Parser / UI Consistency & Hardening: Unified drifted spans_to_markdown rendering onto the canonical parser implementation, hoisted Selector::parse("body") to a LazyLock, boxed oversized enum variants (Overlay, PageResolution), hardened production unwrap() sites, removed dead legacy code, and resolved all Clippy warnings (-D warnings clean).
  • Dependency & Packaging Diet: Upgraded ratatui to 0.29, dirs to 6, and trimmed bitefoundry-html resvg features; removed unused crossterm/event-stream, futures, hex, and uuid, moved tempfile to dev-dependencies, and added optional Cargo feature gates (html-js, svg-graphics, desktop-notify) for lightweight headless builds.
  • Externalized assets/demo.gif to bitefoundry.dev to keep repository clones lean.

Full Changelog: v0.4.8...v0.4.9

v0.4.8

Choose a tag to compare

@github-actions github-actions released this 26 Nov 07:47

Prebuilt standalone Microsoft OneNote binary (onenote) — CLI, TUI, HTTP API, and MCP server.

What's Changed

Per-Section Page Hierarchy, Section Groups Ribbon & Cursor Paging

  • Scoped pagelevel 400 fallback per section (pagelevel_unsupported_sections) instead of globally, preserving cached subpage level/page_order when fetching without pagelevel.
  • Kept scope_complete false whenever /sections or sectionGroups traversal errors or hits `MAX_SECTION_GROUP_TRAVERSAL\

Full Changelog: v0.4.7...v0.4.8

v0.4.7

Choose a tag to compare

@github-actions github-actions released this 25 Nov 16:12

Prebuilt standalone Microsoft OneNote binary (onenote) — CLI, TUI, HTTP API, and MCP server.

What's Changed

WYSIWYG Rendered Default Editing & 3-Mode Toggle (Ctrl+M)

  • Added full WYSIWYG Rendered editing (EditorMode::Rendered, pill [Render]) as the new default mode: the active cursor line stays cleanly rendered while typing with exact ASCII + Korean/CJK hardware cursor projection onto rendered glyphs.
  • Added Ctrl+M / clickable header pill cycling across [Render] → [Live] → [Src].
  • Added WYSIWYG cursor ergonomics in [Render] mode: ←/→ skip hidden Markdown delimiters, Home lands on visible content start, Backspace unwraps block prefixes in one atomic undoable edit, and emptying inline formatting cleans up empty orphan delimiter pairs (****, ~~~~, ``).

0ms Optimistic Block Updates & Esc Visibility Fixes

  • Added 0ms optimistic local preview updates for InlineEditTarget::Block (pages with embedded images/multi-div regions) so edits no longer disappear on Esc while Microsoft Graph sync completes.
  • Synced onenote_selected_block and onenote_follow_selection on Esc so edited text stays in view, and prevented bare # headings from turning invisible on inactive lines.

Full Changelog: v0.4.6...v0.4.7

v0.4.6

Choose a tag to compare

@github-actions github-actions released this 25 Nov 14:18

Prebuilt standalone Microsoft OneNote binary (onenote) — CLI, TUI, HTTP API, and MCP server.

What's Changed

OneNote Line Live Preview Direct Canvas Editor

  • Upgraded OnenoteInlineEditor to Line Live Preview mode by default (EditorMode::LivePreview, toggleable with Ctrl+M or the clickable [Live]/[Src] header pill): inactive lines render styled Markdown (headings, ☐/☑ tasks with completed strikethrough, bullet/numbered lists, quote bars, horizontal dividers, fenced code blocks, bold/italic/code/strike, and styled links) while the active cursor line expands to raw syntax-highlighted Markdown with exact ASCII + Korean/CJK hardware cursor positioning.
  • Clicking any rendered line in Live Preview maps the visual position accurately to the logical line and byte offset, expanding the clicked line and collapsing the previous line immediately while preserving 0ms optimistic UI writes and 1.5s debounced background Graph autosave.

Full Changelog: v0.4.5...v0.4.6

v0.4.5

Choose a tag to compare

@github-actions github-actions released this 25 Nov 13:46

Prebuilt standalone Microsoft OneNote binary (onenote) — CLI, TUI, HTTP API, and MCP server.

What's Changed

Native-Terminal Input Latency & Event Loop Fix

  • Replaced crossterm::event::EventStream and .now_or_never() polling with a dedicated lock-free TerminalEventReader (OS reader thread + Tokio mpsc::unbounded_channel), eliminating both noop_waker poisoning (up to 200ms timer-tick stalls) and Windows INTERNAL_EVENT_READER mutex blocking on every keystroke.
  • Wrapped terminal output in a 64 KiB BufWriter<Stdout> and moved cursor positioning inside terminal.draw() (with queued BeginSynchronizedUpdate), removing redundant per-keystroke Hide/Show cursor flicker and multiple stdout flushes.
  • Paused and resumed the dedicated reader cleanly around external $EDITOR handoff and Windows Resize VT probing.

Direct In-Place Canvas Editor & 0ms Optimistic Writes

  • Added a direct in-place Markdown canvas editor (src/ui/inline_editor.rs) backed by ComposerState with 2D cursor navigation, Korean IME hardware cursor placement, Undo/Redo, clipboard paste, Ctrl+E external $EDITOR handoff, click-to-edit on canvas/blocks, and 1.5s debounced background Graph autosave.
  • Applied 0ms optimistic UI updates for inline saves, quick appends, and To-Do toggles so edits reflect immediately without waiting for Graph round-trips.

Full Changelog: v0.4.4...v0.4.5

v0.4.4

Choose a tag to compare

@github-actions github-actions released this 25 Nov 11:55

Prebuilt standalone Microsoft OneNote binary (onenote) — CLI, TUI, HTTP API, and MCP server.

What's Changed

Sync & Graph Latency Optimization

  • Added list_all_accessible_hierarchy_scoped to fetch personal /me/onenote/notebooks, /me/onenote/sections, and /me/onenote/sectionGroups concurrently in a single parallel round-trip (and overlapped /me/joinedTeams on org accounts).
  • Parallelized get_me, focused section pages, and focused page hydration via tokio::join! inside run_full_refresh, cutting TUI startup active-view load time in half.
  • Memoized pagelevel=true HTTP 400 fallback per GraphClient instance via Arc<AtomicBool> to skip repeated failing probes.

Write Path & TUI Perceived Latency

  • Updated append_onenote_page_helper to reuse cached primary_div_id from SQLite first (skipping a redundant 3.5s remote pre-fetch) with automatic single refresh-and-retry on stale target errors (400/404/410).
  • Rendered locally compiled XHTML previews immediately on UiMsg::PageCreated while background HydratePage upgrades Graph data-id attributes.
  • Added bounded, budgeted background prefetching of up to 4 uncached sibling pages in the active section so j/k page switching renders instantly from SQLite.

Test Hardening

  • Guarded unit-test config and draft persistence from mutating the host user config directory (#[cfg(test)]).

Full Changelog: v0.4.3...v0.4.4

v0.4.3

Choose a tag to compare

@github-actions github-actions released this 25 Nov 08:30

Prebuilt standalone Microsoft OneNote binary (onenote) — CLI, TUI, HTTP API, and MCP server.

What's Changed

Terminal Image Preview Quality & Protocol Detection

  • Replaced fixed low-resolution downsampling and stretched aspect-ratio math with terminal cell-geometry sizing and unified protocol detection across Kitty, iTerm2, Sixel, and half-block renderers.

Native HTML/SVG/Canvas & Embedded Graphics Rendering

  • Eliminated raw HTML/SVG/script source leaks in OneNote page/attachment rendering via pure-Rust bitefoundry-html (resvg 0.50 + tiny-skia + base64) for inline <svg>, <canvas>, and data:image/* graphics, with an explicit [o: Browser] banner for external <script src> content.

Unified Markdown Rendering & .md Preview

  • Standardized Markdown parsing on pulldown-cmark 0.13 via bitefoundry-html::markdown and enabled in-TUI .md previewing.

Width-Aware Text Wrapping & Full Table Cell Preservation

  • Removed the 4-line table cell truncation (.take(4)) in onenote_view and migrated page bodies, callouts, code blocks, tables, and form overlays to display-width-aware styled wrapping so all rows, columns, and lines remain visible at any terminal width.

TUI Modal Isolation, Ribbon Mouse & Mutation Sync Guards

  • Isolated modal backdrops, fixed form/ribbon mouse handling, added mutation sync guards, and added Docker / MCP Registry (server.json) packaging.

Full Changelog: v0.4.2...v0.4.3