Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
refactor(harness): name the image resize worker reply after Photon
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
  • Loading branch information
sanchitrk and claude committed Oct 10, 2026
commit 0a7f9e2c5462ffc4feeca9dec3eab84889aa9c16
1 change: 0 additions & 1 deletion packages/harness/src/tool/image/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@ export type Inline =
| { readonly ok: true; readonly data: string; readonly mimeType: string; readonly hints: ReadonlyArray<string> }
| { readonly ok: false; readonly message: string };

/** Formats every provider takes inline; anything else (BMP) is converted to PNG first. */
const INLINE = new Set(["image/png", "image/jpeg", "image/gif", "image/webp"]);

const toPng = (bytes: Uint8Array) =>
Expand Down
2 changes: 1 addition & 1 deletion packages/harness/src/tool/image/resize.ts
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ export const defaults: ResizeOptions = {
};

/** Tags worker replies: Node posts its own messages on the worker channel too (e.g. under `--watch`). */
export const REPLY = "codework:image-resize";
export const REPLY = "codework:photon-image-resize";

export type Reply = { type: typeof REPLY; result: Resized | null } | { type: typeof REPLY; error: string };

Expand Down
3 changes: 1 addition & 2 deletions packages/harness/vite.config.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { fileURLToPath } from "node:url";
import { recommended } from "@effect/tsgo/oxlint-presets";
import { fileURLToPath } from "node:url";
import { defineConfig } from "vite-plus";
import { configDefaults } from "vite-plus/test/config";

Expand Down Expand Up @@ -50,7 +50,6 @@ export default defineConfig({
"src/sandbox.ts",
"src/sandboxes/daytona/index.ts",
"src/sandboxes/vercel/index.ts",
// Spawned by path from the image resizer, never imported, so it needs its own entry.
"src/tool/image/worker.ts",
],
format: ["esm"],
Expand Down