mirror of
https://github.com/deepseek-ai/deepseek-harness.git
synced 2026-11-09 20:07:43 +08:00
Read configured plugin market indexes on the Host, search them with fuzzy multilingual matching, and install a chosen version from the Plugins page. - dsh-plugin-market-index validates format-1 indexes and builds install arguments; inline icons are capped at 32 KiB. - The pluginMarket service fetches configured http(s) URLs, parses bodies in a Worker Thread, caches documents, and pages filtered, ordered results with installation status and engines.dsh compatibility. - Discover is an opt-in experimental bundle; the Plugins page gains a plugins.tab slot and confirmed installs. - The plugin_market tool lists indexes, plugins, and versions for Creator mode. - Plugin compatibility reads engines.dsh before DSH peer dependencies.
8 lines
491 B
TypeScript
8 lines
491 B
TypeScript
/** Worker Thread entry that parses one fetched index body and posts the result to its parent. */
|
|
import { parentPort, workerData } from 'node:worker_threads'
|
|
import { parseIndexBody, type IndexParseRequest } from './parse.ts'
|
|
|
|
const request = workerData as Partial<IndexParseRequest> | null
|
|
if (!(request?.body instanceof Uint8Array) || typeof request.url !== 'string') throw new Error('index parser request is malformed')
|
|
parentPort?.postMessage(parseIndexBody(request.body, request.url))
|