mirror of
https://github.com/deepseek-ai/deepseek-harness
synced 2026-08-15 21:04:50 +00:00
32 lines
1.0 KiB
TypeScript
32 lines
1.0 KiB
TypeScript
/**
|
|
* Package-owned invariant companion for
|
|
* `@deepseek-ai/dsh-subagent-claude-code`.
|
|
* @module @deepseek-ai/dsh-subagent-claude-code/invariant
|
|
*/
|
|
|
|
/* jscpd:ignore-start */
|
|
import type { Context } from 'cordis'
|
|
import type { InvariantInstaller } from '@deepseek-ai/dsh-invariants'
|
|
|
|
const PACKAGE_NAME = '@deepseek-ai/dsh-subagent-claude-code'
|
|
|
|
/** Cordis companion plugin name. */
|
|
export const name = 'subagent-claude-code-invariant'
|
|
/** Service required before the companion can reserve package ownership. */
|
|
export const inject = ['invariants']
|
|
|
|
/**
|
|
* No runtime invariant: lifecycle pairing belongs to the shared subagent
|
|
* service and process-tree ownership belongs to the subprocess service.
|
|
*/
|
|
const install: InvariantInstaller = () => {}
|
|
|
|
/**
|
|
* Register this package's invariant companion.
|
|
* @param ctx - plugin context carrying the invariant registry.
|
|
* @returns the installed registration's disposer.
|
|
*/
|
|
export const apply = (ctx: Context): Promise<() => void> =>
|
|
Promise.resolve(ctx.invariants.register(PACKAGE_NAME, install))
|
|
/* jscpd:ignore-end */
|