@hasna/projects
Version:
High-level project management CLI, MCP server, SDK, and AI SDK agent loop for coding agents
25 lines • 1.58 kB
TypeScript
/** The deliberate unhosted opt-in, canonical name first. */
export declare const PROJECTS_LOCAL_OPT_IN_ENV_KEYS: readonly ["HASNA_PROJECTS_LOCAL", "PROJECTS_LOCAL"];
export type ProjectsLocalOptInEnv = Record<string, string | undefined>;
/** True when the operator deliberately asked for the unhosted local store. */
export declare function isProjectsLocalOptIn(env?: ProjectsLocalOptInEnv): boolean;
/** Every env name that can configure a Projects authority or credential, resolver-derived. */
export declare function projectsAuthorityEnvKeys(): string[];
/**
* Does the ENVIRONMENT itself configure a Projects authority or credential?
*
* Deliberately narrower than "does a credential resolve": answering it must not
* touch the Keychain or the filesystem, because doing so would defeat the
* isolation the opt-in short-circuit exists to provide. It reads the env
* dictionary and nothing else.
*
* A DECLARED-BUT-BLANK variable counts as absent HERE — a blank has always been
* this package's spelling for "not configured", and helpers in the wild blank
* rather than delete. It is NOT absent once we do go hosted: the resolver
* refuses a blank loudly rather than falling through to another identity, which
* is the behaviour that matters at that point.
*/
export declare function hasProjectsEnvAuthorityIntent(env?: ProjectsLocalOptInEnv): boolean;
/** True when this environment should be served by the on-box SQLite store. */
export declare function selectsProjectsLocalStore(env?: ProjectsLocalOptInEnv): boolean;
//# sourceMappingURL=local-opt-in.d.ts.map