fix(sandbox): 文案标点

Co-Authored-By: Claude Opus 5.5 <[email protected]>
This commit is contained in:
rootandClaude Opus 5.5 committed 2026-10-03 01:54:10 +08:00
1 parent eeec91e892
commit a3cdcc7796
2 files changed
+4 -4

No files matched your search

+1 -1
View File
@@ -21,7 +21,7 @@ export async function sandboxWorkerMain(): Promise<void> {
try {
const req = JSON.parse(await new Response(Deno.stdin.readable).text()) as { job: string; input: unknown };
const fn = (SANDBOX_JOBS as Record<string, (i: unknown) => unknown>)[req.job];
if (!fn) throw new Error(`没有这个沙箱任务:${req.job}`);
if (!fn) throw new Error(`没有这个沙箱任务:${req.job}`);
out = { ok: true, result: await fn(req.input) };
} catch (e) {
out = { ok: false, error: `${(e as Error).name}: ${(e as Error).message}`.slice(0, 2000) };