mirror of
https://github.com/deepseek-ai/deepseek-harness.git
synced 2026-11-09 20:07:43 +08:00
23 lines
846 B
TypeScript
23 lines
846 B
TypeScript
/** Package-owned invariant companion for the experimental Inspector. */
|
|
|
|
import type { Context } from '@deepseek-ai/cordis'
|
|
import type { InvariantInstaller } from '@deepseek-ai/dsh-invariants'
|
|
|
|
const PACKAGE_NAME = '@deepseek-ai/dsh-experimental-inspector'
|
|
|
|
/** Cordis companion plugin name. */
|
|
export const name = 'experimental-inspector-invariant'
|
|
|
|
/** Service required before the companion can reserve package ownership. */
|
|
export const inject = ['invariants']
|
|
|
|
/**
|
|
* No runtime invariant: wire parsing, generations, Worker lifecycle, and CDP
|
|
* sessions reject invalid relationships in their owning operations.
|
|
*/
|
|
const install: InvariantInstaller = () => {}
|
|
|
|
/** Register this package's invariant companion. */
|
|
export const apply = (ctx: Context): Promise<() => void> =>
|
|
Promise.resolve(ctx.invariants.register(PACKAGE_NAME, install))
|