mirror of
https://github.com/deepseek-ai/deepseek-harness.git
synced 2026-08-30 04:40:37 +00:00
15 lines
721 B
TypeScript
15 lines
721 B
TypeScript
/**
|
|
* Worker-preview bootstrap: the one module preview.html adds ahead of the
|
|
* stock entry tag. The runtime's optional source stage owns the pre-Cordis
|
|
* chooser; the unchanged Host connector then owns the Worker handshake.
|
|
* Everything after those calls is the served startup chain verbatim.
|
|
*/
|
|
import DshWorker from '@deepseek-ai/dsh-experimental-webworker-runtime/worker?worker'
|
|
import {
|
|
chooseWorkerHostSource, connectWorkerHost, IMAGE_FILE_NAME,
|
|
} from '@deepseek-ai/dsh-experimental-webworker-runtime/client'
|
|
|
|
const image = `preview/${IMAGE_FILE_NAME}`
|
|
const source = await chooseWorkerHostSource({ image })
|
|
await connectWorkerHost(new DshWorker({ name: 'dsh-host' }), { image, overlays: source.overlays })
|