import { Static, Type } from "typebox"; import { Context } from "@deepseek-ai/cordis"; //#region src/schemas/help.d.ts /** Provider-owned Cordis service for the live Help catalog. */ export declare const DOOM_HELP_SERVICE = "doom/help"; export declare const DOOM_HELP_MAX_CONTRIBUTORS = 32; export declare const DOOM_HELP_MAX_SKILLS = 64; export declare const DOOM_HELP_MAX_DIAGNOSTICS = 64; export declare const DOOM_HELP_MAX_DESCRIPTION_LENGTH = 512; export declare const DOOM_HELP_MAX_DIAGNOSTIC_LENGTH = 512; export declare const DOOM_HELP_ERROR_CODE: { readonly contributorLimit: 'HELP_CONTRIBUTOR_LIMIT'; readonly disposed: 'HELP_DISPOSED'; readonly duplicateSkill: 'HELP_DUPLICATE_SKILL'; readonly inactiveSnapshot: 'HELP_INACTIVE_SNAPSHOT'; readonly invalidContribution: 'HELP_INVALID_CONTRIBUTION'; readonly invalidGeneration: 'HELP_INVALID_GENERATION'; readonly invalidSnapshot: 'HELP_INVALID_SNAPSHOT'; }; export type DoomHelpErrorCode = (typeof DOOM_HELP_ERROR_CODE)[keyof typeof DOOM_HELP_ERROR_CODE]; export declare class DoomHelpError extends Error { readonly code: DoomHelpErrorCode; constructor(code: DoomHelpErrorCode, message: string); } export declare const DoomHelpSourceSchema: Type.TString; export declare const DoomHelpSkillNameSchema: Type.TString; export declare const DoomHelpSkillDescriptorSchema: Type.TObject<{ name: Type.TString; description: Type.TString; }>; export type DoomHelpSkillDescriptor = Static; export declare const DoomHelpContributionSchema: Type.TObject<{ source: Type.TString; moduleUrl: Type.TString; skills: Type.TArray>; }>; export type DoomHelpContribution = Static; export declare const DoomHelpActivationSchema: Type.TUnion<[Type.TLiteral<"inactive">, Type.TLiteral<"activating">, Type.TLiteral<"active">, Type.TLiteral<"degraded">]>; export type DoomHelpActivation = Static; export declare const DoomHelpSkillSchema: Type.TObject<{ source: Type.TString; name: Type.TString; description: Type.TString; filePath: Type.TString; baseDir: Type.TString; }>; export type DoomHelpSkill = Static; export declare const DoomHelpDiagnosticSchema: Type.TObject<{ source: Type.TOptional; code: Type.TString; message: Type.TString; }>; export type DoomHelpDiagnostic = Static; export declare const DoomHelpSnapshotSchema: Type.TObject<{ hostGeneration: Type.TString; revision: Type.TInteger; activation: Type.TUnion<[Type.TLiteral<"inactive">, Type.TLiteral<"activating">, Type.TLiteral<"active">, Type.TLiteral<"degraded">]>; skills: Type.TArray>; diagnostics: Type.TArray; code: Type.TString; message: Type.TString; }>>; }>; export type DoomHelpSnapshot = Static; export interface DoomHelpSnapshotDraft { readonly activation: DoomHelpActivation; readonly skills: readonly DoomHelpSkill[]; readonly diagnostics: readonly DoomHelpDiagnostic[]; } export interface DoomHelpContributionHandle { readonly source: string; readonly generation: string; dispose(): void; } /** Direct, session-local registrar and query surface owned by doompi-help. */ export interface DoomHelpService { readonly generation: string; register(contribution: DoomHelpContribution): DoomHelpContributionHandle; listContributions(): readonly DoomHelpContribution[]; subscribeContributions(listener: (contributions: readonly DoomHelpContribution[]) => void): () => void; getSnapshot(): DoomHelpSnapshot; publish(snapshot: DoomHelpSnapshotDraft): DoomHelpSnapshot; subscribeSnapshot(listener: (snapshot: DoomHelpSnapshot) => void): () => void; dispose(): void; } declare module '@deepseek-ai/cordis' { interface Context { 'doom/help': DoomHelpService; } } /** Creates the provider-owned Help service value for one Cordis session. */ export declare function createDoomHelpService(generation: string): DoomHelpService; export declare function readDoomHelpService(context: Context): DoomHelpService | undefined; export declare function requireDoomHelpService(context: Context): DoomHelpService; //#endregion //# sourceMappingURL=help.d.cts.map