Skip to content

legends-astro v0.4.0

Latest

Choose a tag to compare

@avalonreset avalonreset released this 25 Nov 21:00

legends-astro v0.4.0

Full agency Astro v7 lifecycle release: Day-1 greenfield starter scaffolding, Day-2 article publishing with 301-safe slug renames, manifest regression gating, scheduled post leak verification, refreshed withastro/docs snapshot (56 verified files), and an expanded 12-file attachable Empire knowledge pack.

Highlights

  • Day-1 greenfield agency starter (legends-astro init and scaffold --mode starter):
    • Supports --preset agency|blog|local-business, --trailing-slash always|never|ignore, --site, --with-sitemap / --no-sitemap, --staging-lock, and preview-first planSha256 confirmation.
    • Generates src/content.config.ts (glob() + astro/zod), isPublished draft and scheduled future-pubDate production filtering, zero-dependency RSS 2.0 src/pages/rss.xml.ts, BaseLayout + BlogPostLayout with Organization/LocalBusiness + BlogPosting + BreadcrumbList JSON-LD, and repo-local ASTRO-BUILD-GUIDELINES.md.
  • Day-2 article-to-live publishing (legends-astro post):
    • Read-only --list, preview-first create (--input or --title + --body-file, --hero / --hero-alt, --draft / --publish; defaults to draft: true on create), --update preserving pubDate and unknown custom frontmatter keys while auto-stamping updatedDate, and --rename-from appending deduplicated, chain-flattened, cycle-checked 301 rules to public/_redirects.
    • Enforces strict slugs, magic-byte + XML-parsed SVG XSS image localization into public/images/<collection>/<slug>/, static read-only src/content.config.* detection, and editorial SEO preflight linting.
  • Day-2 regression manifest gate and scheduled post verification (legends-astro verify-build):
    • Added --write-manifest, --baseline, --overwrite, and --allow-canonical-change emitting fail-closed legends.astro-site-manifest/v1 (never written on failure) with baseline_route_missing (honoring valid redirects), canonical, title, description, H1, and JSON-LD type checks plus baselineDiff.
    • Added scheduled future-pubDate leak verification (scheduledEntriesChecked, scheduled_post_route_leaked, scheduled_post_body_leaked, scheduled_post_in_sitemap) and fail-closed dist/rss.xml XML/XXE validation (rss_invalid_xml).
  • Docs snapshot and knowledge pack expansion:
    • Refreshed vendor/astro-docs/ to withastro/docs@7f32508fbe63450b15ff4503a7062c847e1cd0e5 (2026-11-25T13:19:10Z) adding 8 official English MDX guides (53 MDX guides / 56 manifest entries total).
    • Added agency runbooks wiki/agency-starter-guidelines.md and wiki/publishing-and-content-ops.md and expanded the attachable Empire knowledge pack (knowledge/astro/pack.json 0.4.0) to 12 SHA-256 verified files.

Verification

  • Verified across 103 unit and adversarial tests (unittest), scripts/check_release.py, node ./scripts/verify-sources.mjs, node ./scripts/test-doctor.mjs, knowledge-pack --check --json, and verify_knowledge_attachment.py.
  • Release artifacts include wheel, sdist, and SHA256SUMS.txt.