Skip to content

legends-astro v0.3.0

Choose a tag to compare

@avalonreset avalonreset released this 25 Nov 03:24
· 7 commits to main since this release

legends-astro v0.3.0

Release date: 2026-11-24
Commit: e4a2d414fcd87494746eb133bcc3726524a3fdc8

Highlights

  • Upgraded Astro baseline and canary lock to astro@7.4.13 (engines.node >=22.23.4, sharp ^0.35.5, undici ^8.13.1), refreshed all 24 existing withastro/docs MDX guides to commit 87c37b156627418328b8d3d4671320ca20487c79, and added 21 new official Astro v7.4 MDX guides (45 MDX guides / 48 manifest files total: Fonts API, Font Provider Reference, @astrojs/sitemap, @astrojs/cloudflare, Cloudflare deploy, @astrojs/node, astro:assets, Routing Reference, Vite Plugin Astro, plus every official migrate-to-astro/ guide covering Create React App, Docusaurus, Eleventy, Gatsby, GitBook, Gridsome, Hugo, Jekyll, NuxtJS, Pelican, SvelteKit, and VuePress).
  • Added multi-framework static repository auditor (legends_astro/framework_audit.py wired into source-audit): read-only static auto-detection for Next.js (App Router, Pages Router, hybrid), Nuxt, Gatsby, Vite/CRA (React, Vue, Svelte, Preact, Solid), Docusaurus, Hugo, Jekyll, Eleventy, and SvelteKit emitting frameworkMigration (routes, API routes, static redirects from vercel.json/netlify.toml/_redirects/next.config.*/nuxt.config.*, interactive islands vs static .astro candidates, PUBLIC_* env var renames, framework import/syntax traps, Markdown/MDX content collections, and exact vendored docs-lookup IDs) while preserving precedence for raw-capture, Firecrawl, WordPress, and HTML trees.
  • Added smart optional legends-firecrawl ecosystem integration: capture detects WAF/bot challenges (HTTP 403/429/503, cf-mitigated, Cloudflare/Turnstile/Akamai/PerimeterX/DataDome) and empty JS SPA shells (#root, #__next, #app, #__nuxt) and emits firecrawlFallback handoff guidance; doctor emits a read-only, non-blocking ecosystem block reporting optional legends-firecrawl and Playwright availability.
  • Refreshed outlined Legends Font r1 SVG architecture, three-pillars, plain-english chains, and comparison cards (scripts/render_cards.py) with evergreen copy (zero hardcoded version numbers or doc counts).
  • Added @astrojs/cloudflare to live ecosystem probes (docs_nav.py) and hardened TLS CA verification via strict ssl.SSLContext + optional certifi bundle loading without weakening certificate checks.
  • Added shared network and filesystem safety module (legends_astro/net_safety.py): CWE-918 SSRF and DNS-rebinding IP pinning, explicit --allow-host allowlisting, https:// default (--allow-http opt-in), manual redirect hop validation (max 5 hops), bounded streaming reads, CWE-59 symlink refusal, Windows Controlled Folder Access refusal, CWE-22 path containment, O_CREAT | O_EXCL writes, and CWE-776 XXE-safe XML parsing.
  • Added capture command (legends_astro/capture.py): live recursive sitemap / bounded BFS crawl and local legends-firecrawl archive/directory normalizer (response.data, legends-firecrawl-evidence/v1, top-level data) with __-delimited collision-safe slugs and deterministic Migration Triage reporting (platform, page builders, [shortcodes], forms/Turnstile/reCAPTCHA, WooCommerce, Cloudflare email obfuscation, trackers, external CDNs).
  • Added vendor-assets command (legends_astro/vendor.py): two-pass HTML + recursive CSS @import/url(...) asset localizer handling srcset, data-poster-url, data-video-urls, inline background-image, and dynamic_css.php -> .css, writing public/ + asset-map.json, plus longest-URL-first rewriter and local SRI integrity=/crossorigin= cleanup.
  • Added scaffold command (legends_astro/scaffold.py, --mode clone|editorial): preview-first (planSha256 -> --apply --confirm-plan) Astro v7.4.13 project generator with <Fragment set:html={...} /> exact-DOM clone layout, Cloudflare XOR hex email decoder (--decode-cf-email), live tracker stripping (--strip-trackers), and Triple-Lock staging (--staging-lock).
  • Added twin and twin-diff commands (scripts/twin.mjs + legends_astro/twin.py): optional runtime Playwright Visual + Computed-Style Digital Twin capture for live --url (SSRF + page.route guarded) or local --dist (ephemeral in-process 127.0.0.1:0 read-only static server closed in finally) plus pure offline twin-diff regression gate.
  • Upgraded source-audit and verify-build (legends_astro/auditor.py): Yoast/RankMath title precedence, WordPress attachment -> _thumbnail_id featured images, Custom Post Types/taxonomies/authors, Markdown <table>/<figure>/<iframe> conversion, Firecrawl directory unwrapping, plus verify-build --forbid-host, --env staging|production, CSS url()/@import resolution, local SRI check, canonical/OG/JSON-LD/H1/Webflow data-wf-page parity, trailingSlash shape verification, XXE-safe sitemap verification, _redirects loop/target validation, and /cdn-cgi/ + [shortcode] leak checks.

Release Artifacts

  • legends_astro-0.3.0-py3-none-any.whl
  • legends_astro-0.3.0.tar.gz
  • SHA256SUMS.txt