/** * Host half of the snapshot bar bundle: registers the plugin's Session * projection, whose bounded view the Web Client reads by the same key. The * plugin owns no Session state of its own and never writes to the log. * * @module dsh-context-snapshot-bar */ import type { Context } from '@deepseek-ai/cordis'; export { PROJECTION_KEY } from './projection/index.js'; export { resolveConfig, type Config } from './shared/config.js'; export type { AttemptPhase, BarState, BarView, ChangeView, CompressionView, NodeKind, NodeView, SectionView, SnapshotStatus, SnapshotView, SurfaceEntry, ToolCallView, } from './shared/types.js'; /** Cordis plugin name used in loader diagnostics. */ export declare const name = "context-snapshot-bar"; /** * Register the projection for this deployment's configuration. * * The registration is bound softly and its failures are swallowed: `dsh` refuses * to start on a loader entry whose module cannot be resolved, whose activation * rejects, or that stays pending on an unavailable service. A context card must * never cost a user the harness, so an absent `sessionProjections` service, an * unusable configuration, or a changed projection API leaves this plugin * inactive with one diagnostic instead of a dead `dsh`. The registered fold and * view are total for the same reason: the registry drives them without a guard * of its own, inside the Session append that committed the event. The snapshot * digest binds on its own soft path, so its own dependencies cannot disable the * cards. * * @param ctx - the plugin's Cordis context. * @param config - untrusted configuration from the composition; validated here at load. */ export declare function apply(ctx: Context, config: unknown): void; //# sourceMappingURL=index.d.ts.map