| 12345678910111213141516171819202122232425262728293031 |
- /**
- * 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 '@deepseek-ai/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 */
|