24 lines
732 B
TypeScript
24 lines
732 B
TypeScript
/**
|
|
* Public surface of the `dsh-facet/guard` row — the half mounted inside the
|
|
* `facet` agent preset.
|
|
*/
|
|
|
|
import type { Context } from '@deepseek-ai/cordis'
|
|
import type z from '@deepseek-ai/schemastery'
|
|
|
|
/** Plugin name. */
|
|
export declare const name = 'facet-guard'
|
|
|
|
/** Services the guard cannot work without; it stays pending until all are present. */
|
|
export declare const inject: readonly ['facetPolicy', 'tools', 'systemPrompt', 'fs']
|
|
|
|
/** Configuration for the preset-scoped half. */
|
|
export interface Config {
|
|
/** Register the `facet` tool. Defaults to `true`; the guard works without it. */
|
|
tool?: boolean
|
|
}
|
|
|
|
export declare const Config: z<Config>
|
|
|
|
export declare function apply(ctx: Context, config: Config): void
|