Skip to content

v0.2.0 — Yantra Console + Canvas Preview Fix

Choose a tag to compare

@YashManek1 YashManek1 released this 31 May 17:34

What's new in v0.2.0

Canvas preview fixed

yantra canvas <url> now renders the cloned page in the editor preview pane.
Root cause: the pipeline only wrote .tsx files and the iframe had nothing to load.
A new HTML serializer generates a self-contained index.html with data-yantra-id markers (click-to-inspect), inlined CSS, and local copies of images/fonts.

Yantra Console (yantra start)

Replaces the old stub REPL with a unified full-screen terminal app:

  • Conversation pane — stream ask answers (CRG-grounded Q&A); send run, index, night, canvas, observe, doctor, help
  • Live graph side panel — CRG stats + communities + hub symbols, auto-refreshes every 5 s and after index/run
  • Live telemetry footer — cost gauge, spans/min, error rate from .yantra/traces.sqlite

Under the hood

  • Shared commands/metrics.rs — no duplication between graph/observe/console
  • Shared commands/ask.rs — one streaming ask pipeline for both CLI and Console
  • ADR-005 documents the suspend/resume design for terminal-owning subcommands

Installation (Windows)

Download yantra.exe below, place it on your PATH, then:

yantra index .
yantra start