@suluk/cockpit - v0.2.0
    Preparing search index...

    Function previewHtml

    @suluk/cockpit — the PURE cockpit core: the cycle model, the builder model, codegen, deploy planning, and the validate/audit/preview helpers. No host API. Two shells consume this exact core: the vscode extension (suluk-vscode) and the web admin panel (@suluk/admin, served under /superadmin). One brain, two faces. CANDIDATE tooling — NOT official OAS.

    • Build a self-contained preview page (Scalar or Swagger) for a v4 source. Returns html + downgrade diagnostics.

      Parameters

      • text: string
      • ui: "scalar" | "swagger"

      Returns { html: string; diagnostics: { message: string }[] }