Skip to content

fix(og-image): enable social cards and honor silent deploys - #505

Merged
gitfromwildan merged 2 commits into
mainfrom
chore/flame-plugin-setup
Nov 7, 2026
Merged

gitfromwildan merged 2 commits into
mainfrom
chore/flame-plugin-setup

Conversation

@gitfromwildan

@gitfromwildan gitfromwildan commented Nov 7, 2026 •

Copy link
Copy Markdown
Member

Summary

Update Flame's documentation site to Algolia 0.1.3 and enable OG Image 0.1.0 so documentation pages receive generated social preview cards. Fix OG Image logging so flame deploy --silent produces no output on Node and Deno.

Changes

  • Update the Algolia npm alias from ^0.1.2 to ^0.1.3; add the OG Image npm alias and register it in packages/flame/docu.json.
  • Resolve OG Image's Flame peer to the local workspace and refresh the lockfile.
  • Keep the temporary release-age exception limited to Algolia 0.1.3, published 2026-11-07 at 15:55 UTC; remove it after the 24-hour window.
  • Make OG Image's default logger honor debug/info/warn/error levels, including filtering warnings at error level.
  • Add regression coverage for logging during fresh and cached card generation and a patch changeset for the next OG Image release.
  • Apply the same fix to the installed npm 0.1.0 package using a version-specific pnpm patch. The source fix alone would not change the package this site consumes. Remove this temporary patch when upgrading the alias to the published release containing the fix.

Verification

  • Frozen-lockfile installation with the dependency patch passed.
  • OG Image suite: 143 tests passed; typecheck, formatting, and lint passed.
  • Isolated temporary projects on Node 22, Deno 2.9.6, and Bun: cold and cached deploy --silent --force exited 0 with exactly 0 stdout/stderr bytes. Ordinary builds still logged their card summaries.
  • All three runtimes produced 41 absolute OG image URLs pointing to valid 1200×630 PNGs.
  • Browser smoke passed all 5 pages on both the Node- and Deno-built sites, including interactive Accordion, Tabs, and Mermaid.
  • Pre-push workspace lint, all 7 build tasks, and commitlint passed.
  • GitHub CI passed all 7 jobs, including runtime-smoke on Node and Deno; Commitlint also passed.

Agent Context

  • owner/repo: DocuBook/docubook
  • branch: chore/flame-plugin-setup | base: main
  • created-by: Codex
  • commits: f4917e3, 049b363
  • evidence-ref: local logs /tmp/og-image-silent-tests.log, /tmp/og-silent-frozen-install.log, /tmp/og-image-silent-node.log, /tmp/og-image-silent-deno.log, /tmp/og-image-silent-bun.log, /tmp/og-image-silent-browser-node.log, /tmp/og-image-silent-browser-deno.log, /tmp/og-image-silent-push.log

@vercel

vercel Bot commented Nov 7, 2026 •

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

1 Skipped Deployment
Project Deployment Actions Updated
docu Ignored Ignored Preview Nov 7, 2026 4:25pm UTC

@gitfromwildan gitfromwildan self-assigned this Nov 7, 2026

@pullfrog pullfrog Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Important

Enabling @docubook/plugin-og-image in flame's docu.json turns runtime-smoke (node) and runtime-smoke (deno) red: the plugin prints during flame deploy --silent, and that output is exactly what the smoke step forbids.

Reviewed changes

Mode: standard. I reviewed the plugin dependency bump, the new plugin registration, the workspace override and release-age exclusion, and the regenerated lockfile.

  • Algolia ^0.1.3 — this bumps the flame devDep alias. pnpm install --frozen-lockfile --lockfile-only passes the supply-chain policy check with the new minimumReleaseAgeExclude entry. 0.1.3 was published 2026-11-07T15:55:22Z, so the entry can be dropped after 2026-11-08T15:55Z.
  • OG Image enabled — this adds the ^0.1.0 npm alias and registers the plugin with default options in packages/flame/docu.json. Every flame build now renders cards.
  • Peer override — @docubook/plugin-og-image>@docubook/flame: workspace:* mirrors the existing Algolia override. One side effect: the plugins/og-image importer's specifier in the lockfile changes from workspace:^ to workspace:*. This only affects the lockfile, and the published manifest is unchanged.

Top priorities: (1) make the og-image logger respect LOG_LEVEL, release it, and bump the alias here; (2) after 2026-11-08T15:55Z, remove the Algolia release-age exclusion in a follow-up, as the PR body already plans.

Pullfrog  | Fix all ➔ | Fix 👍s ➔ | View workflow run | Using claude-opus-5-5 | 𝕏

Comment thread packages/flame/docu.json Resolved
@gitfromwildan gitfromwildan changed the title chore(flame): update algolia and enable og image plugin fix(og-image): enable social cards and honor silent deploys Nov 7, 2026

@pullfrog pullfrog Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

✅ No new issues found. The silent-deploy blocker from the previous review is fixed, and runtime-smoke (node) is green on 049b363. runtime-smoke (deno) and ci (test) were still running when this review was submitted.

Reviewed changes

Mode: standard. I reviewed the one commit since the last review (049b363). It fixes the OG Image logger and applies a temporary patch to the installed npm package.

  • Log-level filtering — consoleLogger in plugins/og-image/src/index.ts now checks LOG_LEVEL before printing. It uses the same level table and info fallback as flame's logger.ts, so flame deploy --silent (which sets error) hides both card summaries and warnings. Flame doesn't pass a logger to plugins, so a small local copy of the level table is justified.
  • Regression coverage — a table-driven test covers each LOG_LEVEL value, including unset and unknown values. It runs a cold build and then a cached build. afterEach now resets stubbed env vars and mocks.
  • Temporary dist patch — patches/@[email protected] applies the same logic to the published dist/index.js. It is pinned to 0.1.0 in patchedDependencies, so bumping the alias should make pnpm report it as unused and force its removal.
  • Changeset — this adds a patch bump for the unlinked @docubook/plugin-og-image.

Remaining follow-ups, already listed in the PR body: drop the Algolia minimumReleaseAgeExclude entry after 2026-11-08T15:55Z. Then, once the og-image fix is published, bump the alias and delete the pnpm patch.

Pullfrog  | View workflow run | Using claude-opus-5-5 | 𝕏

@pullfrog pullfrog Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

✅ No new issues found. No commits have landed since the last review, and its one finding is resolved. All CI checks are now green on 049b363, including runtime-smoke (deno) and ci (test), which were still running at the last review.

Reviewed changes

Mode: standard. This run re-checked the PR at the same head as the last review (049b363). The net diff is unchanged.

  • Silent deploy fix confirmed — runtime-smoke (node) and runtime-smoke (deno) both pass, so OG Image no longer prints during flame deploy --silent.

Remaining follow-ups, already listed in the PR body:

  • Remove the Algolia minimumReleaseAgeExclude entry after 2026-11-08T15:55Z.
  • Once the OG Image fix is published, bump the alias and delete the pnpm patch.

Pullfrog  | View workflow run | Using claude-opus-5-5 | 𝕏

@gitfromwildan
gitfromwildan merged commit 719c46f into main Nov 7, 2026
15 checks passed
@gitfromwildan
gitfromwildan deleted the chore/flame-plugin-setup branch November 7, 2026 16:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant