Files
deepseek-harness/packages/boot/app-boot/src/profile-resolution/worker-bootstrap.ts
T
imccyu 15e07d2721 refactor(boot): rename the profile resolution generation to the runtime resolution
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.
2026-09-19 17:06:34 +08:00

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)