//#region src/invariant.ts
const PACKAGE_NAME = "@deepseek-ai/dsh-auto-chess";
/** Cordis companion plugin name. */
const name = "auto-chess-invariant";
/** Service required before the companion can reserve package ownership. */
const inject = ["invariants"];
/**
* No runtime invariant: the auto-chess plugin owns no cross-plugin mutable
* state and emits no cordis events — the action routes validate every
* untrusted input at the HTTP boundary (and the game rules themselves at
* apply time), and behavior is asserted by this package's engine/route
* tests.
*/
const install = () => {};
/**
* Register this package's invariant companion.
* @param ctx - Cordis context carrying the invariant service.
* @returns the installed registration's disposer after setup succeeds.
*/
const apply = (ctx) => Promise.resolve(ctx.invariants.register(PACKAGE_NAME, install));
//#endregion
export { apply, inject, name };
