Skip to content

refactor!: migrate Drop to portable Sandbox package projects - #1

Merged
onmax merged 9 commits into
mainfrom
codex/provider-matrix
Jul 22, 2026
Merged

onmax merged 9 commits into
mainfrom
codex/provider-matrix

Conversation

@onmax

@onmax onmax commented Jul 20, 2026 •

Copy link
Copy Markdown
Member

Moves Drop image optimization into the canonical nested npm Sandbox project shape. server/sandboxes/image-optimizer/index.ts is ordinary top-level ESM that reads the invocation sidecar, performs the Sharp transform, and default-exports JSON; its timeout lives beside the project in package.json#vitehub.sandbox.timeout.

Pins the single vite-hub facade edge to immutable preview bec25c9 (full commit bec25c9da8645165f9ec15202dc6357659010b87). The unified graph includes the merged upstream work in #774, #776, #788, #790, and #791. Drop has no direct @vite-hub/* dependency, package override, provider SDK, local package path, pnpm patch, custom provider runner, or Docker requirement.

Local proof covers a clean frozen install, standalone nested npm install, generated typecheck, Node/Deno/Netlify/Vercel/Cloudflare builds and deployment contracts, Node upload/optimization/stats/rate-limit E2E (23,501 to 9,484 bytes), Deno GNU x64 native Sharp execution plus ARM64 staging, all three Netlify artifacts, isolated Vercel private Blob/Queue/Sandbox closure, exact Cloudflare resource identities, negative provider reachability, and sequential Vercel-to-Cloudflare output ownership.

Hosted proof is green from exact Drop head f72055d on Vercel deployment dpl_CLY11LHzLLisF3vYgDqng1t6qdyo and Netlify deployment 6a5fc7c02c19588972820f4e. Both reused the existing project resources and optimize 23,501 to 9,484 bytes through storage, Queue, top-level Sandbox TypeScript execution, retrieval, and stats without runtime errors.

The same unified preview is hosted green on Deno revision cp5nhk6mq79g and Cloudflare Worker version 893b2317-f5cc-4b23-8f50-655ee73fae0c at vitehub-drop-pm-20260719. Cloudflare reused the existing Worker, R2, Queue, Container, and Durable Object resources and deployed without Docker via --containers-rollout=none.

The remaining red Workers Builds check is the pre-existing Cloudflare Git integration failing before a build stage; exact local Cloudflare output and the manual hosted deployment are green.

@cloudflare-workers-and-pages

cloudflare-workers-and-pages Bot commented Jul 20, 2026 •

Copy link
Copy Markdown

Deploying with  Cloudflare Workers  Cloudflare Workers

The latest updates on your project. Learn more about integrating Git with Workers.

Status Name Latest Commit Updated (UTC)
❌ Deployment failed
View logs
vitehub-drop f72055d Jul 21 2026, 07:19 PM

@onmax onmax changed the title fix: make provider deployments portable feat!: migrate Drop to nested sandbox projects and prove provider portability Jul 20, 2026
@onmax
onmax force-pushed the codex/provider-matrix branch from c42ec50 to 7cdbe74 Compare July 20, 2026 21:34
@onmax onmax changed the title feat!: migrate Drop to nested sandbox projects and prove provider portability refactor!: migrate Drop to portable Sandbox package projects Jul 21, 2026
@onmax
onmax marked this pull request as ready for review July 21, 2026 19:31
@onmax
onmax merged commit f72055d into main Jul 22, 2026
1 check failed
@onmax
onmax deleted the codex/provider-matrix branch July 22, 2026 05:34
onmax added a commit that referenced this pull request Oct 30, 2026
… a warning icon, the fix in one line, quoted Markdown as code, ::question #1 for the block's ordinal, and the doc's sans instead of mono
vite-hub Bot pushed a commit that referenced this pull request Nov 18, 2026
…'s thread card, relative times, shared copy buttons, a doc header that copies at once, who dropped it, the folder's drops, and comark's side outline (#228)

* chore(deps): run on ViteHub main 69dde88 and comark-ui main af08c87, with the open fixes as patches

ViteHub's main renamed the backend keys, so the D1 database and the Cloudflare and memory Realtime use `driver: "cloudflare"` / `"memory"`, and Vercel Blob is `driver: "vercel"`. The fixes still open upstream ride along as patches built from their heads on the pinned main: vite-hub/vitehub#4785 and #4788 in @vite-hub/ui, #4794 in @vite-hub/comments, onmax/comark-ui#453 in comark-time and comark-properties. ViteHub Content now renders with the same comark-ui as Drop, so one copy carries the patches.

* fix(viewer): one frame around a new comment, ViteHub's sm thread card, a crisp +, and each person once in the toolbar

The new-comment bubble is the box's frame, so the box passes `frame="none"` and the bubble shows the focus: the bordered one takes the accented border, the shadow-ring one a 22% ring (Drop comment #14). The dock's box and thread pass `size="sm"`, which brings the reply field, the 14px rows and the image shape from ViteHub, so the copies of those styles go (Drop comments #2, #7). The + of the pill is an inline SVG snapped to whole pixels while closed (Drop comment #13). The comments toolbar on Drop's own pages leaves out its faces and cursors, since the review dock already shows who's here (Drop comment #11). The frame's pop-out timing comes from ViteHub's `commentLeaveMs`.

* feat: times and copy buttons come from ViteHub, and the doc's Updated row reads relative

`TimeAgo` goes for ViteHub's `RelativeTime`: relative under 3 weeks, then the date, with the full date in a tooltip, short words in the lists. app.vue gives it Drop's one clock, so the words and Drop's countdowns move together (Drop comment #10). The copy buttons are ViteHub's `CopyButton`, whose icons cross-fade both ways, on Drop's 1.4 s (`DropCopyButton`); Drop's `icon-in` animation goes (Drop comments #6, #12).

The Updated row writes the version's full instant in comark-time's markup, and a box that had no date of its own now gets the relative-dates script too. The CSP allows comark-properties' `scripts` as they are, and the markdown cache integrity moves to drop.24.

* fix: load the icon swap with every copy button, keep the Updated row's render stable, and follow ViteHub's renamed drivers in tests

The parts' stylesheet loads only with the viewer, so DropCopyButton brings @vite-hub/ui/icon-swap.css itself. The Updated row's tooltip id comes from the version's time instead of a random one, so a warm render matches a cold one. The blob and rate limit tests use the `cloudflare` and `memory` drivers, and the area test checks ViteHub's grey saved areas (Drop comment #1).

* chore(deps): move to ViteHub main 20ab822, where #4788 and #4794 landed, and comark-ui main a410d81

vite-hub/vitehub#4788 (the 130 ms pop-out and commentLeaveMs) and #4794 (overlay presence: false, one face per person) merged, so their patches go and @vite-hub/comments runs unpatched. The @vite-hub/ui patch now carries #4785 alone, built on 20ab822. comark-properties' patch follows #453's latest head. comark-ui's pin is #456's head, the same tree as its main.

* test(viewer): give the guest lookup composer test 30 s, as its siblings have, since it starts two Vite servers and a browser

* chore(deps): move to comark-ui 5ed5886, where #453, #456 and #457 landed, and drop the comark-time and comark-properties patches

5ed5886 is #458's head, the newest commit pkg.pr.new published; its packages match main 1ef8c09, since pkg.pr.new skips pushes to main.

* fix(viewer): comments reach Comark's zoom, now a modal dialog, and an Escape a popover takes stays in the page

comark-ui#457 opens the zoom with showModal(), which made Drop's comment layer inert: no pin could land on a zoomed screenshot. The layer moves into the dialog while it's open, hides the page's own marks there, and returns on close.

* feat(doc): Copy writes from the doc's frame, Dropped by shows the person and their agent, and the folder opens a list of its drops

The header's Copy is built once and toggles data-copied and data-pending with ViteHub's icon swap, so a press is never lost to a rebuild. Its Markdown loads once per version when the pointer or focus reaches it (doc-intent), and the click writes it in the frame; it says Markdown copied, or Couldn't copy in the frame, and reports a refusal to the client-error log. The shortcut and menus copy the same text, and show on the button too.

Dropped by reads [avatar] Max · [logo] Claude Code, with what it came through, the model and the reasoning level on hover (dropDetail now carries owner). Signed-in readers get the folder's newest drops in a popover (GET /api/drops?folder=&limit=). The save menu and the folder list are native popovers placed with anchor positioning.

* test(nodes): a folder lists its newest few with limit, and a drop's detail says whose it is

* fix(doc): Dropped by's pictures and the folder button keep the facts' row height

* chore(doc): keep the folder row's type private, as knip asks

* chore(deps): RelativeTime's length prop is format, from vite-hub/vitehub#4785 at 4aab7d9c

style would be the native attribute in a template, so style="short" never reached the prop. The patch takes the rename (prop, RelativeTimeFormat) and Drop's lists pass format="short".

* ci: install Playwright's Firefox for the Firefox browser tests

* test(doc): wait for the popovers' toggle event before reading aria-expanded and focus

* fix(ui): textareas grow with field-sizing: content, so the Nuxt UI autoresize patch goes

* feat(doc): the outline is comark-outline's side outline, which follows the section being read and reaches the bottom (Drop comment #5)

* fix(drops): Yesterday and This week start at midnight on a day with a daylight-saving change

* fix(review): review.js writes thread times with Intl.RelativeTimeFormat

* docs(agents): the browser support floor and the native-first rule

* chore(deps): move to ViteHub main ccf6574, where #4785 landed, and drop the @vite-hub/ui patch

* fix: the doc header's folder list follows a moved doc, and Marker ink drawn on a zoom stays visible while the comment is written

* fix: Marker ink kept on a zoom shows only on the screenshot it was drawn on

* fix: kept Marker ink comes back with its own screenshot in the zoom, keyed by the zoomed element

* fix: only signed-in readers see whose doc it is; a public link doesn't name the person who shared it

* fix: Copy prompt uses Drop's copy button, so its check animates like every other copy
vite-hub Bot added a commit that referenced this pull request Nov 21, 2026
* chore(deps): run on ViteHub main 69dde88 and comark-ui main af08c87, with the open fixes as patches

ViteHub's main renamed the backend keys, so the D1 database and the Cloudflare and memory Realtime use `driver: "cloudflare"` / `"memory"`, and Vercel Blob is `driver: "vercel"`. The fixes still open upstream ride along as patches built from their heads on the pinned main: vite-hub/vitehub#4785 and #4788 in @vite-hub/ui, #4794 in @vite-hub/comments, onmax/comark-ui#453 in comark-time and comark-properties. ViteHub Content now renders with the same comark-ui as Drop, so one copy carries the patches.

* fix(viewer): one frame around a new comment, ViteHub's sm thread card, a crisp +, and each person once in the toolbar

The new-comment bubble is the box's frame, so the box passes `frame="none"` and the bubble shows the focus: the bordered one takes the accented border, the shadow-ring one a 22% ring (Drop comment #14). The dock's box and thread pass `size="sm"`, which brings the reply field, the 14px rows and the image shape from ViteHub, so the copies of those styles go (Drop comments #2, #7). The + of the pill is an inline SVG snapped to whole pixels while closed (Drop comment #13). The comments toolbar on Drop's own pages leaves out its faces and cursors, since the review dock already shows who's here (Drop comment #11). The frame's pop-out timing comes from ViteHub's `commentLeaveMs`.

* feat: times and copy buttons come from ViteHub, and the doc's Updated row reads relative

`TimeAgo` goes for ViteHub's `RelativeTime`: relative under 3 weeks, then the date, with the full date in a tooltip, short words in the lists. app.vue gives it Drop's one clock, so the words and Drop's countdowns move together (Drop comment #10). The copy buttons are ViteHub's `CopyButton`, whose icons cross-fade both ways, on Drop's 1.4 s (`DropCopyButton`); Drop's `icon-in` animation goes (Drop comments #6, #12).

The Updated row writes the version's full instant in comark-time's markup, and a box that had no date of its own now gets the relative-dates script too. The CSP allows comark-properties' `scripts` as they are, and the markdown cache integrity moves to drop.24.

* fix: load the icon swap with every copy button, keep the Updated row's render stable, and follow ViteHub's renamed drivers in tests

The parts' stylesheet loads only with the viewer, so DropCopyButton brings @vite-hub/ui/icon-swap.css itself. The Updated row's tooltip id comes from the version's time instead of a random one, so a warm render matches a cold one. The blob and rate limit tests use the `cloudflare` and `memory` drivers, and the area test checks ViteHub's grey saved areas (Drop comment #1).

* chore(deps): move to ViteHub main 20ab822, where #4788 and #4794 landed, and comark-ui main a410d81

vite-hub/vitehub#4788 (the 130 ms pop-out and commentLeaveMs) and #4794 (overlay presence: false, one face per person) merged, so their patches go and @vite-hub/comments runs unpatched. The @vite-hub/ui patch now carries #4785 alone, built on 20ab822. comark-properties' patch follows #453's latest head. comark-ui's pin is #456's head, the same tree as its main.

* test(viewer): give the guest lookup composer test 30 s, as its siblings have, since it starts two Vite servers and a browser

* chore(deps): move to comark-ui 5ed5886, where #453, #456 and #457 landed, and drop the comark-time and comark-properties patches

5ed5886 is #458's head, the newest commit pkg.pr.new published; its packages match main 1ef8c09, since pkg.pr.new skips pushes to main.

* fix(viewer): comments reach Comark's zoom, now a modal dialog, and an Escape a popover takes stays in the page

comark-ui#457 opens the zoom with showModal(), which made Drop's comment layer inert: no pin could land on a zoomed screenshot. The layer moves into the dialog while it's open, hides the page's own marks there, and returns on close.

* feat(doc): Copy writes from the doc's frame, Dropped by shows the person and their agent, and the folder opens a list of its drops

The header's Copy is built once and toggles data-copied and data-pending with ViteHub's icon swap, so a press is never lost to a rebuild. Its Markdown loads once per version when the pointer or focus reaches it (doc-intent), and the click writes it in the frame; it says Markdown copied, or Couldn't copy in the frame, and reports a refusal to the client-error log. The shortcut and menus copy the same text, and show on the button too.

Dropped by reads [avatar] Max · [logo] Claude Code, with what it came through, the model and the reasoning level on hover (dropDetail now carries owner). Signed-in readers get the folder's newest drops in a popover (GET /api/drops?folder=&limit=). The save menu and the folder list are native popovers placed with anchor positioning.

* test(nodes): a folder lists its newest few with limit, and a drop's detail says whose it is

* fix(doc): Dropped by's pictures and the folder button keep the facts' row height

* chore(doc): keep the folder row's type private, as knip asks

* chore(deps): RelativeTime's length prop is format, from vite-hub/vitehub#4785 at 4aab7d9c

style would be the native attribute in a template, so style="short" never reached the prop. The patch takes the rename (prop, RelativeTimeFormat) and Drop's lists pass format="short".

* ci: install Playwright's Firefox for the Firefox browser tests

* test(doc): wait for the popovers' toggle event before reading aria-expanded and focus

* fix(ui): textareas grow with field-sizing: content, so the Nuxt UI autoresize patch goes

* feat(doc): the outline is comark-outline's side outline, which follows the section being read and reaches the bottom (Drop comment #5)

* fix(drops): Yesterday and This week start at midnight on a day with a daylight-saving change

* fix(review): review.js writes thread times with Intl.RelativeTimeFormat

* docs(agents): the browser support floor and the native-first rule

* chore(deps): move to ViteHub main ccf6574, where #4785 landed, and drop the @vite-hub/ui patch

* fix: the doc header's folder list follows a moved doc, and Marker ink drawn on a zoom stays visible while the comment is written

* fix: Marker ink kept on a zoom shows only on the screenshot it was drawn on

* fix: kept Marker ink comes back with its own screenshot in the zoom, keyed by the zoomed element

* fix: swap the copy icons without @vite-hub/ui/icon-swap.css

vite-hub/vitehub#4917 removes icon-swap.css. DropCopyButton keeps vite-hub/ui's
CopyButton, which swaps its icon with SwapIcon, and the doc header frame draws its
own cross-fade. Pins every @vite-hub package to that branch's preview.

* Fix formatting for the copy icon swap

* Load the real copy icon stylesheet in viewer tests

---------

Co-authored-by: vite-hub[bot] <320448255+vite-hub[bot]@users.noreply.github.com>
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