@code-yeongyu/senpi
Version:
Coding agent CLI with read, bash, edit, write tools and session management
13 lines • 950 B
TypeScript
import type { Settings, SettingsStorage } from "./settings-manager.ts";
export declare const STATE_KEYS: ReadonlySet<keyof Settings>;
export declare function logStateError(storage: SettingsStorage, error: unknown): void;
/** State is disposable bookkeeping: malformed bytes never disable config loading or saving. */
export declare function parseStateSettings(storage: SettingsStorage, content: string | undefined): Record<string, unknown>;
/**
* Move raw global bookkeeping only after its state write succeeds. Re-read both files under
* their locks, preserving existing state keys and every unrelated config key's value/order.
*/
export declare function migrateSettingsState(storage: SettingsStorage): void;
/** Only the six bookkeeping keys overlay config; arbitrary state-file keys are never settings. */
export declare function readSettingsState(storage: SettingsStorage): Record<string, unknown>;
//# sourceMappingURL=settings-state.d.ts.map