UNPKG

@hasna/projects

Version:

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

33 lines • 1.71 kB
export * from "./client.js"; import type { KeychainTierOptions } from "../types/client-types.js"; import { ProjectsClient, type ProjectsClientOptions } from "./client.js"; /** The app slug the shared client seam resolves credentials and authority for. */ export declare const PROJECTS_APP_NAME: "projects"; type ClientEnv = Record<string, string | undefined>; /** Options accepted on top of the resolved transport. */ export interface CreateProjectsClientOptions extends Partial<ProjectsClientOptions> { /** Tier-1 identity selection (`--profile`), passed through to the seam. */ profile?: string; /** * Tier-3 controls: a `security` runner for tests, or an opt-out on a CI Mac. * Production callers pass nothing — the tier is ambient for `process.env` * and off for a caller-built env. */ keychain?: KeychainTierOptions; } /** The SDK's refusal for an explicit authority without an explicit key (#1794). */ export declare const PROJECTS_SDK_AUTHORITY_PIN_MESSAGE: string; /** * Build a ProjectsClient whose credential and base URL come from the shared * @hasna/contracts resolver. * * - explicit `baseUrl` + `apiKey` → a deliberate pin, used verbatim; the * ambient chain is never consulted (hasna/apps#1794). * - explicit `baseUrl` without `apiKey` → throws, before any tier is read. * - otherwise the chain resolves credential and authority together. * * Throws when no credential resolves from any tier — the SDK never falls back * to an unauthenticated client or to local data. */ export declare function createProjectsClientFromEnv(env?: ClientEnv, overrides?: CreateProjectsClientOptions): ProjectsClient; //# sourceMappingURL=index.d.ts.map