mirror of
https://ghproxy.cflmy.top/https://github.com/deepseek-ai/deepseek-harness.git
synced 2026-11-28 16:19:52 +08:00
RuntimeResolution, RuntimeResolutionEntry, RuntimeResolutionOptions, and createRuntimeResolution replace the generation-named table types; installRuntimeInterception returns a RuntimeInterception; PluginPackages takes { resolution }; Worker environment data carries { resolution }; routes are native, interception, and native-after-interception. replace() keeps its successor-generation wording.
13 lines
478 B
TypeScript
13 lines
478 B
TypeScript
/** Install the inherited runtime resolution in one Harness-owned Worker. */
|
|
|
|
import { getEnvironmentData } from 'node:worker_threads'
|
|
import { installRuntimeInterception } from './resolver.ts'
|
|
import type { RuntimeResolution } from '../profile.ts'
|
|
|
|
const registration = getEnvironmentData(
|
|
'@deepseek-ai/dsh-app-boot/profile-resolution',
|
|
) as {
|
|
resolution: RuntimeResolution
|
|
} | undefined
|
|
if (registration !== undefined) installRuntimeInterception(registration.resolution)
|