UNPKG

@hasna/projects

Version:

High-level project management CLI, MCP server, SDK, and AI SDK agent loop for coding agents

24 lines • 1.4 kB
import { Database } from "bun:sqlite"; export declare const PROJECTS_DB_PATH_ENV = "HASNA_PROJECTS_DB_PATH"; export declare const LEGACY_WORKSPACES_DB_PATH_ENV = "HASNA_WORKSPACES_DB_PATH"; export declare function getDbPath(): string; /** Refuse every on-box SQLite open for the rest of this process. */ export declare function refuseLocalStore(message: string): void; /** Lift a refusal installed by {@link refuseLocalStore}. Test seam (`__resetProjectStore`). */ export declare function allowLocalStore(): void; /** True while {@link refuseLocalStore} is in force for this process. */ export declare function isLocalStoreRefused(): boolean; /** The typed refusal: `REMOTE_COMMAND_UNSUPPORTED`, same code the hosted store uses for local-only verbs. */ export declare class LocalStoreRefusedError extends Error { readonly code = "REMOTE_COMMAND_UNSUPPORTED"; constructor(message: string); } /** Throw the installed refusal, if any. Called by every on-box SQLite opener. */ export declare function assertLocalStoreAllowed(): void; export declare function getDb(): Database; export declare function getDatabase(path?: string): Database; export declare function closeDatabase(): void; export declare function now(): string; export declare function uuid(): string; export declare function resolvePartialId(partial: string, db?: Database): string | null; //# sourceMappingURL=database.d.ts.map