Skip to content

feat: show a drop in a doc with ::embed, which comark-lint already knows - #173

Merged
vite-hub[bot] merged 5 commits into
mainfrom
feat/embed-drops
Nov 11, 2026
Merged

vite-hub[bot] merged 5 commits into
mainfrom
feat/embed-drops

Conversation

@onmax

@onmax onmax commented Nov 11, 2026 •

Copy link
Copy Markdown
Member

A doc that shows another drop with ::drop{link=…} fails comark-lint with comark/unknown-component, because ::drop exists only in Drop. The comark-ui skills tell agents to lint before they publish, so every interactive drop sent them looking for a config file.

This draws drops with ::embed, which comark-lint already knows. onmax/comark-ui#403 gives ::embed a player option and a height prop, and Drop passes a player for /d/<link> pages on any host, the same way ::drop read its links. So

::embed{url="https://drop.vitehub.dev/d/k7f2q9m4x8wd" height=420 title="How a rebuild uses the snapshots"}
::

renders the same box as before inside Drop, and a link card to the drop in comark-lint, a local render, or any other host. ::drop still renders and publishes, since published docs never change, but the skill, the Markdown reference, and the features page now teach ::embed.

comark-ui, comark-comments, and comark-linter now use the published 0.11.0 release, which includes onmax/comark-ui#403's player and height support. The preview overrides are removed, and @vite-hub/content keeps its comark-ui 0.9.

The new ::embed cases in test/skills/markdown.test.mjs and test/viewer/drop-embed-browser.test.mjs fail on main and pass here. The full suite (579 tests), vp check, and nuxt typecheck pass on this branch.

Follow-up to #172, whose comark-lint.config.mjs line this removes: ::embed lints clean without it.

@chatgpt-codex-connector

Copy link
Copy Markdown
Codex Review Summary: ❌ Failed

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ❌ Failed 2026-11-11T07:17:57.556451Z
We couldn’t complete this review. Comment @codex review to try again.
e3aacb9 PR opened
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@chatgpt-codex-connector

Copy link
Copy Markdown

You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard.

…knows

`::embed{url="https://drop.vitehub.dev/d/<link>" height=420}` draws the same box `::drop` did, through comark-embed's `player` option. comark-lint and any other host read the same link as a card, so an agent's doc lints clean with no config. `::drop` still renders and publishes, since published docs never change.
@vite-hub

vite-hub Bot commented Nov 11, 2026 •

Copy link
Copy Markdown
Contributor
Session Status Started Duration
Pending Completed Not started —
View session Waiting 2026-11-11T09:55:13.574Z 5m 5s
View session Completed 2026-11-11T07:58:22.633Z 11m 55s
View session Waiting 2026-11-11T07:37:58.800Z 8m 25s
View session Completed 2026-11-11T07:31:05.692Z 6m 18s

Latest result

Pull request merged.

Final answers

Session

Pull request merged.

Session

Waiting for GitHub merge request b2347f6c-b528-490c-97d1-77cdc24be4b4.

View session

Ready. Historical Pullfrog P1 cache invalidation and HTTP fallback findings remain fixed; current review has no findings. Published 0.11.0 fulfills the release prerequisite. Focused pnpm test run checks passed: 22 tests, including Chromium after installing its missing executable. Focused vp lint and git diff --check passed; hosted checks are green. Postinstall generated types, though automatic Git-hook setup failed against protected .git/config. No source changes or push needed.

View session

Pushed fa5714a: replaced comark preview overrides with published 0.11.0, fulfilling the release prerequisite. Content remains on 0.9.1. Frozen dependency refresh, 64 focused tests including Chromium, focused vp lint, vp fmt --check, and git diff --check passed. Pullfrog: no valid findings on the starting HEAD. Awaiting hosted CI.

View session

Pushed 81665c5 and resolved both Pullfrog P1 findings: stale renderer cache and HTTP publishing guidance. The cache regression failed before the fix; afterward, all 22 focused tests passed, including the browser test. Focused vp lint, vp fmt --check, and git diff --check passed. The required comark-ui release remains outstanding.

View session

Focused vp test passed all 15 tests; focused vp lint and git diff --check passed. Hosted checks passed, with no actionable review findings or source changes needed. Verified and reported the outstanding comark-ui release prerequisite.

@pullfrog pullfrog Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Important

Existing cached documents do not pick up the new player, and the replacement syntax fails with URLs returned by a local HTTP Drop.

Reviewed changes — Reviewed the ::embed integration, legacy compatibility, dependency overrides, documentation, and tests; the full suite passed with 579 tests passing and 3 skipped, and nuxt typecheck passed.

  • Drop player: Recognizes Drop page URLs and renders the existing reader-authorized HTML sandbox, while preserving ordinary embed providers and link cards.
  • Legacy compatibility: Keeps ::drop rendering and publishing through a separate legacy catalog and shared box renderer.
  • Dependencies: Uses scoped comark-ui preview overrides for the player and height options without moving the content module's older preset.
  • Documentation and coverage: Teaches ::embed across the skill and feature references, removes the local lint configuration workaround, and exercises renderer output and sandbox execution.

Pullfrog  | Fix all ➔ | Fix 👍s ➔ | View workflow run | Using gpt-6.1-sol(xhigh) | 𝕏

Comment thread server/utils/markdown-document.ts Resolved
@vite-hub

vite-hub Bot commented Nov 11, 2026

Copy link
Copy Markdown
Contributor

The PR body's before-merge release prerequisite is still unmet. npm view comark-ui version dist-tags --json reports latest 0.10.1; inspecting the published [email protected] tarball confirms its plugin takes no options and its embed attributes have no height. This HEAD still uses the three scoped pkg.pr.new overrides. Please publish a comark-ui release containing onmax/comark-ui#403 and comment here when it is available, so the overrides can be replaced and the lockfile updated before merge.

@pullfrog pullfrog Bot left a comment

Copy link
Copy Markdown

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 P0 or P1 findings remain.

Reviewed changes — Reviewed 81665c5 since the previous review at ea19c82; all 38 focused cache, Markdown, and quiz tests passed.

  • Bumped cache integrity: Advanced the Drop renderer revision to drop.19, refreshing previously cached embed cards on their next read.
  • Documented the HTTP fallback: Updated the skill, Markdown reference, and features page to use legacy ::drop on HTTP deployments, including its standalone lint configuration.
  • Added regression coverage: Verified that an old cached card is refreshed and then reused, and that the documented local HTTP fallback renders through the configured parser and renderer.

Pullfrog  | View workflow run | Using gpt-6.1-sol(xhigh) | 𝕏

@pullfrog pullfrog Bot left a comment

Copy link
Copy Markdown

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 P0 or P1 findings remain.

Reviewed changes — Reviewed fa5714a since the previous review at 81665c5. The full suite passed with 581 tests passing and 3 skipped; pnpm check and pnpm exec nuxt typecheck also passed.

  • Upgraded published packages: Pinned comark-ui, comark-comments, and comark-linter to 0.11.0, retaining the reviewed player and height integration.
  • Removed preview overrides: Switched the lockfile to published packages while preserving @vite-hub/content on [email protected].
  • Extended release-age exceptions: Added version-scoped 0.11.0 entries for the upgraded Comark packages.

Pullfrog  | View workflow run | Using gpt-6.1-sol(xhigh) | 𝕏

@vite-hub
vite-hub Bot merged commit 2b37566 into main Nov 11, 2026
2 checks passed
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