21 lines
795 B
TypeScript
21 lines
795 B
TypeScript
/** Package-owned invariant companion for `@deepseek-ai/dsh-code-runtime-e2b`. */
|
|
|
|
/* jscpd:ignore-start */
|
|
import type { Context } from 'cordis'
|
|
import type { InvariantInstaller } from '@deepseek-ai/dsh-invariants'
|
|
|
|
const PACKAGE_NAME = '@deepseek-ai/dsh-code-runtime-e2b'
|
|
|
|
/** Cordis companion plugin name. */
|
|
export const name = 'code-runtime-e2b-invariant'
|
|
/** Service required before the companion can reserve package ownership. */
|
|
export const inject = ['invariants']
|
|
|
|
/** No runtime invariant: the service owns every one-shot remote run. */
|
|
const install: InvariantInstaller = () => {}
|
|
|
|
/** Register this package's invariant companion. */
|
|
export const apply = (ctx: Context): Promise<() => void> =>
|
|
Promise.resolve(ctx.invariants.register(PACKAGE_NAME, install))
|
|
/* jscpd:ignore-end */
|